Speak mistakingly. Blunder. Accidentally say something embarrassing. Faux pas.
“The mayor had to apologize for his new tax plan after he put his foot in his mouth by saying it was to help his wealthy constituents.”