Use of a Cryptographic Primitive with a Risky Implementation Affecting plonky2 package, versions <1.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-PLONKY2-8685114
  • published2 Feb 2025
  • disclosed30 Jan 2025
  • creditBalazs Komuves

Introduced: 30 Jan 2025

CVE-2025-24802  (opens in a new tab)
CWE-1240  (opens in a new tab)

How to fix?

Upgrade plonky2 to version 1.0.1 or higher.

Overview

plonky2 is a package for recursive SNARKs based on PLONK and FRI

Affected versions of this package are vulnerable to Use of a Cryptographic Primitive with a Risky Implementation due to padding LookupTableGates with 0s. This allows an attacker to prove any lookup table using f(0) = 0.

Workaround

This vulnerability can be avoided by forcing each entries length to be 26.

CVSS Base Scores

version 4.0
version 3.1