{"id":"CVE-2025-52484","published":"2025-06-20T17:21:28Z","modified":"2025-06-23T15:28:43Z","title":"RISC Zero zkVM Underconstrained Vulnerability","vendor":"risc0","product":"risc0","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.7,"severity":"LOW","version":"4.0","vector":"CVSS: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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00457,"percentile":0.31571,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/risc0/risc0/security/advisories/GHSA-g3qg-6746-3mg9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/risc0/risc0/pull/3181","tags":["x_refsource_MISC"]},{"url":"https://github.com/risc0/zirgen/pull/238","tags":["x_refsource_MISC"]},{"url":"https://github.com/risc0/risc0/commit/006d86c363b16d2b2ac42d32d832a209ff8ab4c9","tags":["x_refsource_MISC"]},{"url":"https://github.com/risc0/risc0/commit/1873bbb8a56793edd1f6195242d184cf6cc5175d","tags":["x_refsource_MISC"]},{"url":"https://github.com/risc0/risc0/commit/67f2d81c638bff5f4fcfe11a084ebb34799b7a89","tags":["x_refsource_MISC"]},{"url":"https://github.com/risc0/zirgen/commit/e0e2918302c93e956f73ca2e44aef2b861d8c3ae","tags":["x_refsource_MISC"]}],"priority":{"score":8.2,"factors":[{"name":"EPSS percentile","points":6.31},{"name":"CVSS severity","points":1.89}]},"vendorSlug":"risc0","affectedVersions":[{"vendor":"risc0","product":"risc0","versions":[">= 2.0.0, < 2.1.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-06-23T15:28:36.306490Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"risc0-zkvm","vulnerableRanges":[">=2.0.0, <2.1.0"],"patched":["2.1.0"],"from":["GHSA-g3qg-6746-3mg9"],"provenance":"source"},{"ecosystem":"crates.io","package":"risc0-circuit-rv32im","vulnerableRanges":[">=2.0.0, <2.0.4"],"patched":["2.0.4"],"from":["GHSA-g3qg-6746-3mg9"],"provenance":"source"}],"summary":{"text":"The flaw is a missing constraint in the rv32im circuit of the RISC Zero zkVM (risc0-zkvm), which causes three-register RISC-V instructions such as remu and divu to be vulnerable in versions 2.0.0, 2.0.1 and 2.0.2. A malicious prover can exploit it to make the virtual machine treat the rs1 register as equal to rs2, and the attack requires no privileges or user interaction and can be mounted remotely by anyone able to submit proofs for verification.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:28Z"},"euvd":{"id":"EUVD-2025-28438","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-risc0-cve-2025-52484","children":[{"from":"CVE-2025-52484","to":"CVE-2025-61588","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["risc0/build/src/docker.rs"],"commits":["https://github.com/risc0/risc0/commit/006d86c363b16d2b2ac42d32d832a209ff8ab4c9","https://github.com/risc0/risc0/commit/1873bbb8a56793edd1f6195242d184cf6cc5175d","https://github.com/risc0/risc0/commit/3f00e1fa0159599c1601e788021f2169d1f0a4dc"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-52484","published":"2025-06-20","fixed":"2.1.0","kev":false},{"cve":"CVE-2025-54873","published":"2025-08-05","fixed":"2.2.0","kev":false,"link":{"from":"CVE-2025-52484","to":"CVE-2025-54873","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:risc0-zkvm","fromFixed":"2.1.0","toFixed":"2.2.0","daysApart":46}]}},{"cve":"CVE-2025-61588","published":"2025-10-01","fixed":"3.0.3","kev":false}],"package":"crates.io:risc0-zkvm"}}