Security650 words3 min decode

RISC Zero patches critical zkVM proof-forgery flaw in 3.1.0

RISC Zero’s 3.1.0 patch replaces vulnerable circuits, requires regenerated proofs and new verifiers, and prompted a temporary Anoma service disruption; no exploitation has been reported.

RISC Zero Patch Fixes Critical Proof-Forgery Flaw
WitnessRISC Zero Patch Fixes Critical Proof-Forgery FlawSurprising_Media / pixabay

Outputs

  1. RISC Zero released the 3.1.0 patch on Nov. 10 and rated the proof-forgery flaw Critical.

  2. Affected packages include risc0-zkvm below 3.1.0, risc0-circuit-recursion below 4.1.0, risc0-groth16 below 3.0.6 and Zirgen below 3.1.0.

  3. RISC Zero says old receipts fail under 3.1.0, new receipts fail under older versions and no workaround exists.

  4. AnomaPay deposits remained secure during the Nov. 11 verifier halt, and Anoma restored full account access on Nov. 25.

  5. Neither the release notes nor the three linked advisories report exploitation.

RISC Zero patched a critical proof-forgery flaw in its Nov. 10 release, telling users of its zero-knowledge computing software to upgrade to version 3.1.0 and regenerate the proofs their applications rely on, according to the release notes.

The main zkVM advisory rates the flaw Critical and carries a Nov. 11 date, as does the Ethereum verifier advisory. The related Zirgen circuit-generation advisory is dated Nov. 10. RISC Zero describes the other issues fixed in the release as ranging from high to minor severity.

RISC Zero’s zkVM lets developers prove that a program ran correctly without revealing its private inputs. It packages those proofs as receipts. The release notes say the most critical flaw “lets an attacker who holds one valid Groth16 receipt have an arbitrary claim accepted.” That could include substituting the program identifier, output or exit code accepted by the verifier.

The defect lay in insufficient constraints in the underlying recursion and Groth16 wrapper circuits. The Ethereum advisory said the verifier contract itself was correct for the circuit it was built to check. Exposure was not limited to onchain verification: composite, succinct, Groth16 and onchain receipt formats were each affected by at least one issue.

The release also fixes:

  • A defective hashing step.
  • A flaw that could combine two program executions to bypass checks such as signature validation.
  • Missing constraints on data supplied by the proving host.
  • A randomness defect that weakened privacy guarantees for succinct and Groth16 receipts but did not affect soundness, the guarantee against accepting false claims.

What must developers change after the patch?

The advisories identify four affected software ranges:

  • risc0-zkvm below 3.1.0.
  • risc0-circuit-recursion below 4.1.0.
  • risc0-groth16 below 3.0.6.
  • Zirgen below 3.1.0.

RISC Zero’s onchain Groth16 verifiers before 3.1.0 are also affected. The patch replaces the proving circuits and Groth16 verifying key, making receipt generations incompatible in both directions. Old receipts do not verify under 3.1.0, while new receipts do not verify under older versions.

Developers must also update the r0vm proving runtime to 3.1.0 because an older runtime still produces proofs using the old circuits. RISC Zero says there is no workaround. The operational requirement therefore extends beyond upgrading the verifier: applications must regenerate receipts and replace the components that produce or trust them.

On supported networks, RISC Zero has deployed the replacement verifier through its routers, except on Katana mainnet, where the router has no working Groth16 verifier. RISC Zero emergency-stopped earlier verifiers, but those stops cover calls through the routers or emergency-stop contracts, not every direct call. Where the replacement is deployed, applications using the router for Groth16 verification need no contract change; direct Groth16 callers must switch to the new verifier.

Set aggregation is deprecated, with no set verifier for zkVM 3.1. Applications calling RiscZeroSetVerifier 0.9.0 directly must stop accepting proofs against previously cached roots. RISC Zero does not re-verify those roots, meaning a forged root could remain trusted.

Neither the release notes nor the three linked advisories report exploitation. The defensive response nevertheless disrupted a downstream application. Anoma said on Nov. 11 that it had halted its RISC Zero verifiers; AnomaPay deposits remained secure but temporarily inaccessible. On Nov. 25, Anoma said it had restored full account access.

Kaspa merged an SDK change on Nov. 23 that updates its Groth16 SDK to the patched release but preserves the older native STARK circuit for consensus compatibility. The change calls the retained circuit “unsound” and says native STARK is deprecated for new deployments. Kaspa’s generic BN254 Groth16 verifier operates independently of RISC Zero and remains unaffected, according to the change.

The next implementation checkpoint is whether Katana mainnet gains a working Groth16 verifier, while direct callers and cached-root users remain responsible for moving to the patched circuits and verifiers.

via cryptonews.net (Source)

More from Nathan Brooks

Nathan Brooks

Show full bio

Market editor covering money, funding and market shifts around crypto and web3 industry at Mempool Brief.

1,906 articles