Advisory

RUSTSEC-2021-0156

Also known as: GHSA-vjf8-9fx6-mv6x

Summary

Triton VM Soundness Vulnerability due to Missing Constraint

Details

The instruction sponge_absorb_mem Triton VM fails to verify that hashed values come from the claimed memory location. Malicious provers can substitute arbitrary data instead of actual memory contents.

Any application using instruction sponge_absorb_mem to hash memory data can be given a proof for a forged hash that doesn't correspond to the actual memory. This breaks the security of memory-based commitments.

The flaw was corrected in commits 17c7ba0a and ef9d9e72 by including the appropriate constraints.

Severity

Not rated by the source.

Dates

Published
2021-06-11 12:00 UTC
Modified
2026-08-24 08:15 UTC

Affected packages and fixes

triton-vm

crates.io · All systems

Affected

  • introduced 0.42.0-alpha.4, fixed 4.0.0 (semver)

Fixed versions

4.0.0

Fix

  • Fixed version 4.0.0
    cargo update -p triton-vm --precise 4.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences