Exposure of Sensitive Information to an Unauthorized Actor Affecting github.com/consensys/gnark/internal/hints package, versions <0.11.0
Threat Intelligence
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
Introduced: 6 Sep 2024
CVE-2024-45040 Open this link in a new tabHow 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.