What would cause a lump on the left side flank of a dog behind the ribcage?

a tumor, or your dog bumped into something, or has a cut infection.