Demi Lovato ''could have died'' from her overdose.

The 25-year-old singer was rushed to hospital earlier this week after suffering from an alleged overdose and friends of the star say the paramedics arrived just in time to save her life.

A source told TMZ: ''She could have died.''

Demi was found unconscious at her home following a night of partying and paramedics were swiftly called before rushing her to hospital.

She is expected to enter rehab after she leaves hospital.

The 'Sorry Not Sorry' singer had been sober for six years at the start of this year, but revealed last month through a song entitled 'Sober' that she had broken that sobriety.

On the track, she sings: ''Momma, I'm so sorry, I'm not sober anymore / And daddy, please forgive me for the drinks spilled on the floor.

''To the ones who never left me, we've been down this road before / I'm so sorry, I'm not sober anymore.''

And following her alleged overdose, sources claim the star is determined to get back on the right track once again.

Another insider said: ''Demi opened up to her friends and family that she was no longer sober, but was working on her ongoing addiction. However, Demi lost control. The overdose has been a wakeup call to Demi that she needs to get more serious about her sobriety and is telling friends and family she will do everything it takes to get back to the amazing place she was in before she slipped.

''Demi feels like she has let a lot of people down, including herself, but she's confident she won't let her addiction win, she will come out on top.''