GHSA-vjf8-9fx6-mv6x — triton-vm
Fix: TritonVM/triton-vm@17c7ba0GHSA-vjf8-9fx6-mv6x is a security vulnerability in triton-vm. A fix is available for triton-vm — see the affected versions and patch details below.
Triton VM Soundness Vulnerability due to Missing Constraint
Real-World Exposure
triton-vmReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
Description
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | triton-vm | ≥ 0.42.0-alpha.4&&< 4.0.0 | 4.0.0cargo update -p triton-vm --precise 4.0.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for triton-vm, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update triton-vm to 4.0.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-vjf8-9fx6-mv6x is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-vjf8-9fx6-mv6x in your dependencies?
Find it across crates.io, including transitive dependencies.