out of the frying pan and into the fire
Meaning
Leave a bad situation and enter an even worse one.
Tone & use
Informal and usually negative. It can also describe two difficult options, not only a clear improvement followed by disaster.
Example
“The rushed software migration took the team out of the frying pan and into the fire when it disrupted payroll.”
