{"id":"CVE-2025-54873","aliases":["CVE-2025-54873","GHSA-f6rc-24x4-ppxp"],"related":[],"kind":"vulnerability","state":"published","title":"RISC Zero Underconstrained Vulnerability: Division","summary":"RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture. RISC packages risc0-zkvm versions 2.0.0 through 2.1.0 and risc0-circuit-rv32im and risc0-circuit-rv32im-sys versions 2.0.0 through 2.0.4 contain vulnerabilities where signed integer division allows multiple outputs for certain inputs with only one being valid, and division by zero results are underconstrained. This issue is fixed in risc0-zkvm version 2.2.0 and version 3.0.0 for the  risc0-circuit-rv32im and risc0-circuit-rv32im-sys packages.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture. RISC packages risc0-zkvm versions 2.0.0 through 2.1.0 and risc0-circuit-rv32im and risc0-circuit-rv32im-sys versions 2.0.0 through 2.0.4 contain vulnerabilities where signed integer division allows multiple outputs for certain inputs with only one being valid, and division by zero results are underconstrained. This issue is fixed in risc0-zkvm version 2.2.0 and version 3.0.0 for the  risc0-circuit-rv32im and risc0-circuit-rv32im-sys packages.","source":"cvelist"},{"lang":"en","text":"Two issues were found: For some inputs to signed integer division, the circuit allowed two outputs, only one of which was valid.  Additionally, the result of division by zero was underconstrained.\n\nThis vulnerability was identified using the Picus tool from Veridise. \n\nImpacted on-chain verifiers have already been disabled via the estop mechanism outlined in the [Verifier Management Design](https://github.com/risc0/risc0-ethereum/blob/release-2.0/contracts/version-management-design.md#base-verifier-implementations). \n\n## Mitigation\n\nWe recommend all impacted users upgrade as soon as possible.\n\nRust applications using the `risc0-zkvm` crate at versions < 2.2 should upgrade to version 2.2.0 or later. \n\nSmart contract applications using the official [RISC Zero Verifier Router](https://dev.risczero.com/api/blockchain-integration/contracts/verifier#verifier-router) do not need to take any action: zkVM version 2.2 is active on all official routers, and version 2.1 has been disabled.\n\nSmart contract applications not using the verifier router should update their contracts to send verification calls to the 2.2 version of the verifier.","format":"markdown","source":"ghsa"},{"lang":"es","text":"RISC Zero es una plataforma informática general verificable de conocimiento cero basada en zk-STARKs y la microarquitectura RISC-V. Los paquetes RISC risc0-zkvm, versiones 2.0.0 a 2.1.0, y risc0-circuit-rv32im y risc0-circuit-rv32im-sys, versiones 2.0.0 a 2.0.4, contienen vulnerabilidades donde la división de enteros con signo permite múltiples salidas para ciertas entradas, siendo solo una válida, y los resultados de la división por cero están subrestringidos. Este problema se ha corregido en risc0-zkvm, versiones 2.2.0 y 3.0.0 para los paquetes risc0-circuit-rv32im y risc0-circuit-rv32im-sys.","source":"nvd"}],"published":"2025-08-05T17:42:06.000Z","modified":"2026-06-17T09:40:50.630Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U","score":2.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U","score":2.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U","rating":"LOW"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.2.0","status":"affected"}],"vendor":"risc0","product":"risc0","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.2.0"}],"ecosystem":"crates.io","package":"risc0-zkvm","purl":"pkg:cargo/risc0-zkvm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"3.0.0"}],"ecosystem":"crates.io","package":"risc0-circuit-rv32im","purl":"pkg:cargo/risc0-circuit-rv32im","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"3.0.0"}],"ecosystem":"crates.io","package":"risc0-circuit-rv32im-sys","purl":"pkg:cargo/risc0-circuit-rv32im-sys","source":"ghsa"}],"references":[{"url":"https://github.com/risc0/risc0/security/advisories/GHSA-f6rc-24x4-ppxp","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/risc0/risc0/pull/3235","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/risc0/zirgen/pull/249","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54873","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/risc0/risc0","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-08-06T13:53:39.311Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54873","url":"https://www.cve.org/CVERecord?id=CVE-2025-54873","licence":"CVE Terms of Use","modified":"2025-08-06T13:53:46.107Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f6rc-24x4-ppxp","url":"https://github.com/advisories/GHSA-f6rc-24x4-ppxp","licence":"CC-BY-4.0","modified":"2025-08-06T14:32:02.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54873","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54873","licence":"Public domain","modified":"2026-06-17T09:40:50.630Z"}],"updatedAt":"2026-11-25T22:59:02.075Z","epss":{"score":0.0044,"percentile":0.40027,"date":"2026-12-01T12:00:22.000Z"}}