CVE-2025-54873 RISC Zero Underconstrained Vulnerability: Division
Attackers can exploit underconstrained division logic in RISC Zero to generate invalid proofs, bypassing verification integrity.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-54873?
CVE-2025-54873 is a low-severity vulnerability in risc0, published on 5 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-369
Which versions are affected by CVE-2025-54873?
6 open source packages ship an affected version, including risc0-circuit-rv32im, risc0-circuit-rv32im-sys and risc0-zkvm.
| Package | Affected | Fixed in |
|---|---|---|
risc0-circuit-rv32im crates.io | From 2.0.0 | 3.0.0 |
risc0-circuit-rv32im crates.io | From 2.0.0 | 3.0.0 |
risc0-circuit-rv32im-sys crates.io | From 2.0.0 | 3.0.0 |
risc0-circuit-rv32im-sys crates.io | From 2.0.0 | 3.0.0 |
risc0-zkvm crates.io | From 2.0.0 | 2.2.0 |
risc0-zkvm crates.io | From 2.0.0 | 2.2.0 |
How do I fix CVE-2025-54873?
Upgrade risc0-circuit-rv32im to 3.0.0 or later.
Is CVE-2025-54873 being exploited?
There is no known exploitation of CVE-2025-54873 in the wild and no public exploit code.
Sources
Also known as GHSA-f6rc-24x4-ppxp.