Skip to content

CVE-2025-61588 risc0 vulnerable to arbitrary code execution in guest via memory safety failure in `sys_read`

CriticalCVSS 9.3 EPSS 0.46%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

Description

RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture. In versions 2.0.2 and below of risc0-zkvm-platform, when the zkVM guest calls sys_read, the host is able to use a crafted response to write to an arbitrary memory location in the guest. This capability can be leveraged to execute arbitrary code within the guest. As sys_read is the mechanism by which input is requested by the guest, all guest programs built with the affected versions are vulnerable. This critically compromises the soundness guarantees of the guest program. Other affected packages include risc0-aggregation versions below 0.9, risc0-zkos-v1compat below 2.1.0, risc0-zkvm versions between 3.0.0-rc.1 and 3.0.1. This issue has been fixed in the following versions: risc0-zkvm-platform 2.1.0, risc0-zkos-v1compat 2.1.0, risc0-aggregation 0.9, and risc0-zkvm 2.3.2 and 3.0.3.

Upgrade path

5 packages: 4 fixed.

PackageAffectedFixed inStatus
crates.io risc0-aggregation(crates.io) < 0.9 0.9 Fixed
crates.io risc0-zkos-v1compat(crates.io) < 2.1.0 2.1.0 Fixed
crates.io risc0-zkvm(crates.io) < 2.3.2; >= 3.0.0, < 3.0.3 2.3.2, 3.0.3 Fixed
crates.io risc0-zkvm-platform(crates.io) < 2.1.0 2.1.0 Fixed
risc0 = < 2.1.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io risc0-zkvm-platform(crates.io) < 2.1.0 2.1.0
crates.io risc0-zkos-v1compat(crates.io) < 2.1.0 2.1.0
crates.io risc0-aggregation(crates.io) < 0.9 0.9
crates.io risc0-zkvm(crates.io) < 2.3.2 2.3.2
crates.io risc0-zkvm(crates.io) >= 3.0.0, < 3.0.3 3.0.3
risc0 = < 2.1.0 No fix listed

References