Exposure of Sensitive Information to an Unauthorized Actor Affecting github.com/consensys/gnark/frontend/cs/r1cs package, versions <0.11.0


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.06% (31st 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-GOLANG-GITHUBCOMCONSENSYSGNARKFRONTENDCSR1CS-7922514
  • published6 Sept 2024
  • disclosed6 Sept 2024
  • creditmaltezellic

Introduced: 6 Sep 2024

CVE-2024-45040  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade github.com/consensys/gnark/frontend/cs/r1cs to version 0.11.0 or higher.

Overview

Affected versions of this package are vulnerable to Exposure of Sensitive Information to an Unauthorized Actor due to the implementation of commitments in Groth16 proofs. An attacker can deduce the actual values of small witness variables by enumerating all possible choices. This vulnerability does not affect the completeness or soundness of the proofs.

Workaround

This vulnerability can be mitigated by manually committing to a randomized value at proving time to mask the rest of the values which were committed.

CVSS Scores

version 4.0
version 3.1