Incorrect Type Conversion or Cast Affecting github.com/consensys/gnark-crypto/ecc package, versions <0.12.1


Severity

Recommended
0.0
medium
0
10

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

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-GITHUBCOMCONSENSYSGNARKCRYPTOECC-5950376
  • published8 Oct 2023
  • disclosed5 Oct 2023
  • creditasanso

Introduced: 5 Oct 2023

CVE NOT AVAILABLE CWE-704  (opens in a new tab)

How to fix?

Upgrade github.com/consensys/gnark-crypto/ecc to version 0.12.1 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Type Conversion or Cast in the ExpGLV function for exponentiations in GT. An attacker can obtain incorrect results by using an exponent larger than r, the group order of the pairing target group GT. This is only exploitable if the ExpGLV function is used for exponentiations in GT.

Note: The Exp and ExpCyclotomic functions are not affected.

CVSS Scores

version 3.1