put your foot in it
definition
to say something inappropriate that causes embarrassment or offense
example
She put her foot in it by mentioning his ex-girlfriend in front of his new partner.
word origin — A British 19th-century expression — putting one's foot into something muddy or unpleasant by accident.