stuck one's foot in one's mouth

From Wiktionary, the free dictionary