The most common solution is to install a corner leak guard from the bathtub connecting the shower wall. A corner leak guard will block water from leaking into that space between the bathtub and vanity cabinet.