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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.06% (30th 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 ID SNYK-GOLANG-GITHUBCOMCONSENSYSGNARKINTERNALHINTS-7922515
  • published 6 Sep 2024
  • disclosed 6 Sep 2024
  • credit maltezellic

How to fix?

Upgrade github.com/consensys/gnark/internal/hints 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
Expand this section

Snyk

Recommended
8.2 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None