# GHSA-vjf8-9fx6-mv6x: Triton VM Soundness Vulnerability due to Missing Constraint

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-06-11T12:00:00.000Z
- Modified: 2026-08-24T08:26:02.039Z
- Also known as: RUSTSEC-2021-0156
- Weaknesses: CWE-345

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

(As written by GitHub Advisory Database.)

## Affected

- triton-vm (crates.io): from 0.42.0-alpha.4 before 4.0.0

## References

- <https://github.com/TritonVM/triton-vm/commit/17c7ba0a19f31793f1c807a58afaf9504342aac5> (web)
- <https://github.com/TritonVM/triton-vm> (package)
- <https://rustsec.org/advisories/RUSTSEC-2021-0156.html> (advisory, web)
- <https://crates.io/crates/triton-vm> (package)

## Sources

- GitHub Advisory Database: [GHSA-vjf8-9fx6-mv6x](https://github.com/advisories/GHSA-vjf8-9fx6-mv6x), CC-BY-4.0, modified 2026-08-24
- RustSec Advisory Database: [RUSTSEC-2021-0156](https://rustsec.org/advisories/RUSTSEC-2021-0156.html), CC0-1.0, modified 2026-08-24

---

Page: https://cve.day/GHSA-vjf8-9fx6-mv6x · Whole record: https://cve.day/GHSA-vjf8-9fx6-mv6x.json · Rebuilt by cve.day 2026-11-25T22:56:43.088Z
