CVE-2025-54873 RISC Zero Underconstrained Vulnerability: Division

Low 2.7 Published Updated

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.

PackageAffectedFixed in
risc0-circuit-rv32im crates.ioFrom 2.0.03.0.0
risc0-circuit-rv32im crates.ioFrom 2.0.03.0.0
risc0-circuit-rv32im-sys crates.ioFrom 2.0.03.0.0
risc0-circuit-rv32im-sys crates.ioFrom 2.0.03.0.0
risc0-zkvm crates.ioFrom 2.0.02.2.0
risc0-zkvm crates.ioFrom 2.0.02.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.

Is CVE-2025-54873 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free