The dying man known as the “Broadway Bandit” has a second chance at compassionate release — if he lives long enough to plead guilty.

Serial bank robber Jamie Frierson’s Stage 4 colorectal cancer has now metastasized to his liver and lungs, and doctors believe he could be dead in as little as eight months, his lawyer Christopher Flood told a Manhattan federal judge Wednesday.

“He’s in very, very terrible shape,” the defense attorney told Judge Paul Gardephe of his client, who was not in court. “I don’t think Mr. Frierson is going to be alive to see a trial date.”

The sickly stickup artist grabbed headlines earlier this year when he was sentenced to time served for a string of five bank robberies along Broadway — and then allegedly managed to rob two more banks within 15 days of his release.

“He’s an obvious candidate for compassionate release, but we can’t even get to that stage,” said Flood, who’s had difficulty visiting his client at Kingsbrook Jewish Medical Center, where he’s receiving cancer treatment under the watchful eye of the US Marshals Service.

Flood said he’d been discussing a guilty plea with his client — since a conviction would be required for compassionate release — but needs more time with him.

“For a man who needs more legal care than most, I have less access to him,” the lawyer said.

Gardephe told the parties to return to court on Oct. 31 for more discussion.