# GHSA-5xgj-pmjj-gw49: RISC Zero zkVM notes on zero-knowledge

> RISC Zero zkVM fails to provide provable zero-knowledge guarantees, potentially leaking execution details in privacy-critical applications.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 15 Jul 2024

## What is GHSA-5xgj-pmjj-gw49?

GHSA-5xgj-pmjj-gw49 is a vulnerability in risc0-zkvm, published on 15 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

RISC Zero zkVM was designed from its inception to provide three main guarantees:
1. *Computational integrity*: that a given software program executed correctly.
2. *Succinctness*: that the proof of execution does not grow in relation to the program being executed.
3. *Zero Knowledge*: that details of the program execution are not visible within the proof of program execution.

Ulrich Habock and Al Kindi have released [new research] that indicates that several STARK implementations -including our RISC Zero zkVM- do not meet the requirements to assert the specific property of zero knowledge provably. 

While a vast majority of real-world applications that leverage RISC Zero zkVM or similar systems depend primarily on computational integrity and succinctness, a subset of applications critically depend on the privacy guarantees provided by zero-knowledge; and for those use cases, users are cautioned to understand the research and make informed decisions based on the risks outlined in using an impacted system.

Although the maintainers are not aware of any attacks that can take advantage of this potential weakness, they are working to proactively address this discovery as quickly as possible. 

[new research]: https://eprint.iacr.org/2024/1037

## Which versions are affected by GHSA-5xgj-pmjj-gw49?

2 open source packages ship an affected version, including risc0-zkvm.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `risc0-zkvm` | crates.io | All versions to 1.0.2 | None |
| `risc0-zkvm` | crates.io | All versions to 1.0.2 | None |

## How do I fix GHSA-5xgj-pmjj-gw49?

No fix has been published for GHSA-5xgj-pmjj-gw49 yet. Limit exposure of the affected software until one is available.

## Is GHSA-5xgj-pmjj-gw49 being exploited?

There is no known exploitation of GHSA-5xgj-pmjj-gw49 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-5xgj-pmjj-gw49 and fix it if it is affected.

What it is: GHSA-5xgj-pmjj-gw49 is a vulnerability in risc0-zkvm, published on 15 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-5xgj-pmjj-gw49 in the wild and no public exploit code.

Affected packages and fixed versions:
- risc0-zkvm (crates.io): affected all versions up to 1.0.2; no fix listed
- risc0-zkvm (crates.io): affected all versions up to 1.0.2; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-5xgj-pmjj-gw49/ (Markdown: https://insights.sbomify.com/GHSA-5xgj-pmjj-gw49/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-5xgj-pmjj-gw49

---
From sbomify Insights: https://insights.sbomify.com/GHSA-5xgj-pmjj-gw49/
Summaries are generated and may contain mistakes; the official description above is the record.
