Advisory

GO-2023-2119

Also known as: GHSA-7p92-x423-vwj6

Summary

Proof forgery due to insufficient randomness in github.com/consensys/gnark

Details

A a third party may derive a valid proof from a valid initial tuple {proof, public_inputs}, corresponding to the same public inputs as the initial proof. This vulnerability is due to randomness being generated using a small part of the scratch memory describing the state, allowing for degrees of freedom in the transcript. Note that the impact is limited to the PlonK verifier smart contract.

Severity

Not rated by the source.

Dates

Published
2023-10-24 20:27 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/consensys/gnark

Go · All systems

Affected

  • introduced 0, fixed 0.9.1 (semver)

Fixed versions

0.9.1

Fix

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: Go Vulnerability Database · CC BY 4.0

Sources & licences