To put your foot in it / To make a blunder
Literally 'to put the paw in it'. Used when someone says or does something embarrassing or wrong. Very common in everyday speech.
I put my foot in it by asking about his ex.
—Did you say something? —Yes, I put my foot in it quite badly.
He always puts his foot in it when he's nervous.