Out of the frying pan and into the fire

Going from one problem to another (maybe more serious) problem, from something bad to something worse.

When the man changed jobs he jumped out of the frying pan and into the fire. His new job is much worse.