Out of the frying pan into the fire
fɔm reːɡən ɪn diː tɾaʊfə kɔmən
In German Vom Regen in die Traufe kommen
This idiom describes escaping one bad situation only to find oneself in another, equally bad one.
Example
"Er kam vom Regen in die Traufe, als er den Job wechselte."