idiom
put one's foot in one's mouth
Meaning
to say something embarrassing or inappropriate
Example
He really **put his foot in his mouth** when he mentioned her ex-boyfriend.