Vulnerability · Published Jan 30, 2025 · Assigned by GitHub_M
CVE-2025-24802Soundness issue with Plonky2 look up tables
High 8.6
In plain English
A high-severity security flaw in plonky2 from 0xPolygonZero. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities).
Official description
Plonky2 is a SNARK implementation based on techniques from PLONK and FRI. Lookup tables, whose length is not divisible by 26 = floor(num_routed_wires / 3) always include the 0 -> 0 input-output pair. Thus a malicious prover can always prove that f(0) = 0 for any lookup table f (unless its length happens to be divisible by 26). The cause of problem is that the LookupTableGate-s are padded with zeros. A workaround from the user side is to extend the table (by repeating some entries) so that its length becomes divisible by 26. This vulnerability is fixed in 1.0.1.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 0xPolygonZero | plonky2 | = 1.0.0 |
Weakness: CWE-1240 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
References
- https://github.com/0xPolygonZero/plonky2/security/advisories/GHSA-hj49-h7fq-px5h x_refsource_CONFIRM
- https://github.com/0xPolygonZero/plonky2/commit/091047f7f10cae082716f3738ad59a583835f7b6 x_refsource_MISC
- https://github.com/0xPolygonZero/plonky2/blob/main/plonky2/src/plonk/prover.rs#L97 x_refsource_MISC