Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/supranational/blst
  4. ›
  5. GHSA-x279-68rr-jp4p

GHSA-x279-68rr-jp4p: Blst vulnerable to incorrect results for some inputs in blst_fp_eucl_inverse function

October 7, 2022 (updated May 20, 2024)

During the course of differential fuzzing of the blst library by @guidovranken it was discovered that blst would produce the incorrect result for some input values in the inverse function. This was the result of the introduction of a new inversion formula in version v0.3.0. This source of these incorrect outputs was due to two issues:

  1. The amount of inner loop iterations was not sufficient for the algorithm to converge.
  2. It was erroneously assumed that the absolute value of the intermediate result would be capped at 767-bits. As a result, some output values were truncated by one bit or the most significant bit was misinterpreted as the sign.

References

  • github.com/advisories/GHSA-x279-68rr-jp4p
  • github.com/supranational/blst
  • github.com/supranational/blst/commit/dd980e7f81397895705c49fcb4f52e485bb45e21
  • github.com/supranational/blst/security/advisories/GHSA-x279-68rr-jp4p
  • pkg.go.dev/vuln/GO-2022-1053

Code Behaviors & Features

Detect and mitigate GHSA-x279-68rr-jp4p with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.3.0 before 0.3.3

Fixed versions

  • 0.3.3

Solution

Upgrade to version 0.3.3 or above.

Source file

go/github.com/supranational/blst/GHSA-x279-68rr-jp4p.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:53 +0000.