claw your way out of something/to something/back etc.
1
to reach a particular place, situation, or state, as a result of great effort or despite great difficulties or oppositionThe Rams had clawed their way back into the game.
Synonyms and related words
To get out of a situation