VDB
Sign up
LOW

GHSA-f6rc-24x4-ppxp

RISC Zero Underconstrained Vulnerability: Division

Details

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.

This vulnerability was identified using the Picus tool from Veridise.

Impacted 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).

## Mitigation

We recommend all impacted users upgrade as soon as possible.

Rust applications using the `risc0-zkvm` crate at versions < 2.2 should upgrade to version 2.2.0 or later.

Smart 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.

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

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/risc0-zkvm
Introduced in: 2.0.0Fixed in: 2.2.0

Upgrade risc0-zkvm to 2.2.0 or newer (ecosystem crates.io).

crates.io/risc0-circuit-rv32im
Introduced in: 2.0.0Fixed in: 3.0.0

Upgrade risc0-circuit-rv32im to 3.0.0 or newer (ecosystem crates.io).

crates.io/risc0-circuit-rv32im-sys
Introduced in: 2.0.0Fixed in: 3.0.0

Upgrade risc0-circuit-rv32im-sys to 3.0.0 or newer (ecosystem crates.io).

References