hang by a thread
To depend on a very small thing; be in doubt.
For three days Tom was so sick that his life hung by a thread.
As Joe got ready to kick a field goal, the result of the game hung by a hair.
Compare: HANG IN THE BALANCE.