If you are caught between a rock and a hard place, you are in a bad situation. Both of your choices are bad. You might have two or more choices, but both of your choices are bad.
Example:
I hate my job, but if I quit, I won’t be able to pay my bills. I’m really stuck between a rock and a hard place.