This is one of the strictest bars in California malpractice law, and it applies regardless of how egregious the alleged misconduct was.
The rule
Coscia v. McKenna & Cuneo, 25 Cal.4th 1194 (2001) and Wiley v. County of San Diego, 19 Cal.4th 532 (1998) hold that a criminal defendant who pled guilty or no contest cannot maintain a legal malpractice action against their defense attorney without alleging actual innocence and having already obtained postconviction relief on that basis. Arguments like "my lawyer messed up" or "I would have gotten a better deal" do not meet that bar. Actual innocence must already be established through the criminal system itself before the civil malpractice claim can even proceed.
Case No. 25CV481555 (Santa Clara County Superior Court) shows how far this bar reaches: a client accused his criminal defense attorney of referring him to an undisclosed relative as a paid "life coach," and disclosing confidential information to that relative. Serious allegations. The demurrer to the malpractice claim was still sustained on the actual-innocence bar, because there was no postconviction relief in place, and the alleged misconduct never got evaluated on its own terms.
The one thing worth doing differently
In that same case, the breach-of-fiduciary-duty and intentional-infliction-of-emotional-distress claims pled alongside the malpractice claim survived, because neither of them required the actual-innocence showing. The malpractice bar reaches only the malpractice claim itself, not every possible theory against the same lawyer for the same conduct.
The bottom line
If your malpractice claim grows out of a criminal case where you pled guilty or no contest, confirm you have postconviction relief establishing your innocence before pursuing a malpractice theory. Plead every other viable theory (breach of fiduciary duty, IIED, whatever the facts support) alongside it, not instead of it. The other theories may survive even when malpractice itself cannot.
Methodology note: illustrated by one real California trial-court ruling (Case No. 25CV481555, Santa Clara County Superior Court), a non-precedential tentative you can look up on the county docket, cited here for its own binding authority (Coscia v. McKenna & Cuneo; Wiley v. County of San Diego), which is the published, citable law. This is a statement of established doctrine, not a corpus-frequency claim. Nothing here is legal advice.