CVE-2025-52484
JSON

2.7low

RISC Zero zkVM Underconstrained Vulnerability

Severity
2.7low CVSS:4.0 by GitHub_M
Exploit likelihood
0.29% (higher than 22% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-g3qg-6746-3mg9

Description

RISC Zero is a general computing platform based on zk-STARKs and the RISC-V microarchitecture. Due to a missing constraint in the rv32im circuit, any 3-register RISC-V instruction (including remu and divu) in risc0-zkvm 2.0.0, 2.0.1, and 2.0.2 are vulnerable to an attack by a malicious prover. The main idea for the attack is to confuse the RISC-V virtual machine into treating the value of the rs1 register as the same as the rs2 register due to a lack of constraints in the rv32im circuit. Rust applications using the risc0-zkvm crate at versions 2.0.0, 2.0.1, and 2.0.2 should upgrade to version 2.1.0. Smart contract applications using the official RISC Zero Verifier Router do not need to take any action: zkVM version 2.1 is active on all official routers, and version 2.0 has been disabled. Smart contract applications not using the verifier router should update their contracts to send verification calls to the 2.1 version of the verifier.

Affected

Product or packageVersionsReported by
risc0 risc0>= 2.0.0, < 2.1.0CVE List
risc0-zkvm (crates.io)from 2.0.0 before 2.1.0GitHub Advisory Database
risc0-circuit-rv32im (crates.io)from 2.0.0 before 2.0.4GitHub Advisory Database

All scores

GitHub_M2.7low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U

Classification

CWE-345

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

RISC Zero is a general computing platform based on zk-STARKs and the RISC-V microarchitecture. Due to a missing constraint in the rv32im circuit, any 3-register RISC-V instruction (including remu and divu) in risc0-zkvm 2.0.0, 2.0.1, and 2.0.2 are vulnerable to an attack by a malicious prover. The main idea for the attack is to confuse the RISC-V virtual machine into treating the value of the rs1 register as the same as the rs2 register due to a lack of constraints in the rv32im circuit. Rust applications using the risc0-zkvm crate at versions 2.0.0, 2.0.1, and 2.0.2 should upgrade to version 2.1.0. Smart contract applications using the official RISC Zero Verifier Router do not need to take any action: zkVM version 2.1 is active on all official routers, and version 2.0 has been disabled. Smart contract applications not using the verifier router should update their contracts to send verification calls to the 2.1 version of the verifier.

GitHub Advisory Database

Due to a missing constraint in the rv32im circuit, any 3-register RISC-V instruction (including remu and divu) in risc0-zkvm 2.0.0, 2.0.1, and 2.0.2 are vulnerable to an attack by a malicious prover. The main idea for the attack is to confuse the RISC-V virtual machine into treating the value of the rs1 register as the same as the rs2 register due to a lack of constraints in the rv32im circuit.

This vulnerability was reported by Christoph Hochrainer via our Hackenproof bug bounty. We have evaluated the severity of the vulnerability as “Critical,” and paid a bounty.

The fix for the circuit was implemented in zirgen/pull/238, and the update to risc0 was implemented in risc0/pull/3181. Impacted on-chain verifiers have already been disabled via the estop mechanism outlined in the Verifier Management Design.

Mitigation

We recommend all impacted users upgrade as soon as possible.

Rust applications using the risc0-zkvm crate at versions 2.0.0, 2.0.1, and 2.0.2 should upgrade to version 2.1.0.

Smart contract applications using the official RISC Zero Verifier Router do not need to take any action: zkVM version 2.1 is active on all official routers, and version 2.0 has been disabled.

Smart contract applications not using the verifier router should update their contracts to send verification calls to the 2.1 version of the verifier.

NVD (es)

RISC Zero es una plataforma informática general basada en zk-STARKs y la microarquitectura RISC-V. Debido a la ausencia de una restricción en el circuito rv32im, cualquier instrucción RISC-V de 3 registros (incluyendo remu y divu) en risc0-zkvm 2.0.0, 2.0.1 y 2.0.2 es vulnerable a un ataque de un probador malicioso. El objetivo principal del ataque es confundir a la máquina virtual RISC-V para que trate el valor del registro rs1 como el del registro rs2 debido a la ausencia de restricciones en el circuito rv32im. Las aplicaciones Rust que utilizan el crate risc0-zkvm en las versiones 2.0.0, 2.0.1 y 2.0.2 deben actualizarse a la versión 2.1.0. Las aplicaciones de contratos inteligentes que utilizan el enrutador verificador RISC Zero no necesitan realizar ninguna acción: la versión 2.1 de zkVM está activa en todos los enrutadores oficiales y la versión 2.0 se ha deshabilitado. Las aplicaciones de contratos inteligentes que no utilizan el enrutador verificador deben actualizar sus contratos para enviar llamadas de verificación a la versión 2.1 del verificador.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-52484 changed 2025-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-g3qg-6746-3mg9 changed 2025-06-27CC-BY-4.0
NVDCVE-2025-52484 changed 2026-06-17Public domain