stick one's foot in it

From Wiktionary, the free dictionary