Red lights are flashing on Wall Street about Tesla's ability to pay back a pile of debt.

Tesla's (TSLA) turbulent stock price — and even more volatile CEO — steal the headlines. But the real story may be the steep decline in the value of the electric car maker's bonds.

$1.8 billion of Tesla bonds due in August 2025 plunged to a record low on Friday. The bonds traded for just 84 cents on the dollar, down from 98 cents a year ago. The yield, which moves opposite price, almost doubled over that span to 8.6%.

The action in the bond market signals mounting worry about the high-wire act at Tesla. Elon Musk is scrambling to ramp up Model 3 production fast enough to turn a profit — and use that money for looming debt payments.

"Tesla is in a cash pinch," Cowen & Co. analyst Jeffrey Osborne said in an interview. "The primary concern — above and beyond doing drugs and whatnot on podcasts — continues to be the ability of the company to generate cash."

Tesla loaded up on debt to speed the company's rapid rise in the auto world. That strategy paid off as Tesla built a huge lead in the electric car race, although that position is under assault from intense competition by rival manufacturers such as Mercedes-Benz and Ford (F).

More than $9 billion of Tesla's debt is scheduled to mature before 2025, including a total of $2.7 billion this year and next, according to a Goldman Sachs research report that called the company's balance sheet "concerning."

"Tesla is extremely leveraged. They have a gun to their heads dictated by the timing of the debt payments," said Cowen's Osborne, who has an "underperform" rating on the stock.

'Erratic behavior'

The good news is that Tesla is rapidly ramping up Model 3 production, which could take financial pressure off the company. Optimism about Tesla's Model 3 progress led analysts at research firm Baird to publish a note on Monday urging investors to "buy even with the drama."

However, other analysts are skeptical that Tesla can accelerate or even maintain this production pace long enough to be profitable.

The financial challenge has been exacerbated by Musk's shenanigans. On Joe Rogan's podcast last week, the billionaire wielded a flamethrower, unsheathed a Samurai sword and took a puff of what Rogan said was a joint of marijuana and tobacco.

"There's been concern about Elon Musk's erratic behavior," Osborne said.

The podcast stunt follows a tumultuous August in which Musk tweeted that funding had been "secured" to take Tesla private at $420 a share. Less than three weeks later, Musk abandoned the go-private plan after what he described as a shareholder revolt. The fiasco reportedly sparked an SEC investigation into the accuracy of Musk's "funding secured" tweet.

Despite rebounding 6% on Monday, Tesla's share price has plunged 29% from the peak of $389.61 on the day Musk tweeted the go-private plan.

Executive exodus

Tesla's decline has been driven by accelerating "management credibility issues," Needham & Co. analyst Rajvindra Gill wrote in a report on Monday. Gill has an "underperform" rating on Tesla.

Tesla stock tumbled again last week after the company's chief accounting officer suddenly resigned after less than a month on the job.

Gill is "concerned" about the rapid turnover of senior executives at Tesla, which he estimates has lost 23 executives over the past two years alone.

A Tesla spokesperson referred to previous comments in which Musk said Tesla expects to turn a profit in the third and fourth quarters.

On August 1, Musk told analysts that Tesla plans to pay off its debt instead of refinancing it. Musk has also shot down speculation that Tesla will need to raise cash by selling more stock.

"We could raise money, but I think we don't need to, and I think it's better to just not," Musk said.

It may no longer be up to Musk. Analysts say Tesla may struggle to raise cash until the dark cloud of an SEC investigation is lifted.