GHSA-8c37-7qx3-4c4p: Github.com/supranational/blst Blst Has Logical Error Vulnerability

MODERATE
Published
Advisory Summary

GHSA-8c37-7qx3-4c4p is a MODERATE blst has logical error vulnerability (General Security Weakness) affecting Github.com/supranational/blst libraries in the Go ecosystem. The issue involves blst has logical error in sigvalidate in go bindings. Remediation is available by upgrading affected packages to version 0.3.11.

GHSA-8c37-7qx3-4c4p at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8c37-7qx3-4c4p
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/supranational/blst
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-8c37-7qx3-4c4p

To remediate this vulnerability, upgrade all affected Github.com/supranational/blst dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/supranational/blst fixed: 0.3.11
Upgrade github.com/supranational/blst to 0.3.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/supranational/blst

How to Check if You Are Affected

To determine whether your application is affected by GHSA-8c37-7qx3-4c4p, inspect your project dependencies for Github.com/supranational/blst:

inspect dependencies for github.com/supranational/blst

Analyze the terminal output to locate any version of Github.com/supranational/blst in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.11), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Github.com/supranational/blst, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Blst versions v0.3.0 through 0.3.10 failed to perform a signature group-check if the call to `SigValidate` in the Go bindings was complemented with a check for infinity. Formally speaking, infinity, or the identity element of the elliptic curve group, is a member of the group, and the group-check should allow it. An initial review of blst users on GitHub did not uncover any use of this function with the complementary infinity check. This optional check was added as a convenience feature because despite infinity being a legitimate member of the group, individual signatures should never be infinite (as it is equivalent to having zero for the secret key), and observing one should raise a flag. ### Description The vulnerable function is declared as `SigValidate(sigInfcheck bool) bool` and if called with `sigInfcheck` argument set to `true`, the group-check was omitted. The group-check is required to be performed on untrusted input, because the pairing, the corner-stone operation of the signature scheme, is defined only on points that are members of a specific cyclic group, which is a subset of all the possible points on elliptic curves in question. Submitting an untrusted point outside the group opens up the possibility of accepting an alternative signature for a chosen message. It should be noted that the SigValidate call is not the only way to perform the group-checks. There are optional checks integrated into various other verification methods, such as `Verify`, `AggregateVerify`, etc., as well as signature aggregation methods, such as `PairingAggregate*`. The reason why there are multiple options is that the group-check is a relatively expensive operation, and application developers are arguably entitled the freedom to choose when it's performed. ### Patches This issue has been resolved in the v0.3.11 release and users are advised to update if their application is affected or alternatively omit the complementary infinity check. ### Credits A special thanks to Yunjong Jeong (@blukat29) for the discovery and disclosure of this vulnerability.

GHSA-8c37-7qx3-4c4p Affected Github.com/supranational/blst Versions

1 component(s)
Fixed Versions:
0.3.11
Product / Package Ecosystem Affected Versions Fixed Version
github.com/supranational/blst
Go
≥ 0.3.0
< 0.3.11
0.3.11

References

Frequently Asked Questions

What is GHSA-8c37-7qx3-4c4p?
GHSA-8c37-7qx3-4c4p is a security vulnerability in Github.com/supranational/blst involving Blst has logical error in SigValidate in Go bindings under General Security Weakness.
Which Github.com/supranational/blst versions are affected?
Affected versions include releases prior to 0.3.11 across affected packages: github.com/supranational/blst.
What version fixes GHSA-8c37-7qx3-4c4p?
Upgrading to 0.3.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/supranational/blst affected?
Yes, github.com/supranational/blst is affected in releases prior to 0.3.11. Upgrade your dependency to 0.3.11 or later.
What CWE is associated with GHSA-8c37-7qx3-4c4p?
GHSA-8c37-7qx3-4c4p is classified under General Security Weakness.
How can I check Go dependencies for GHSA-8c37-7qx3-4c4p?
Run the dependency tree command: 'inspect dependencies for github.com/supranational/blst'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8c37-7qx3-4c4p",
  "modified" : "2023-09-21T14:13:41Z",
  "published" : "2023-08-09T20:57:57Z",
  "aliases" : [ ],
  "summary" : "Blst has logical error in SigValidate in Go bindings",
  "details" : "### Impact\n\nBlst versions v0.3.0 through 0.3.10 failed to perform a signature group-check if the call to `SigValidate` in the Go bindings was complemented with a check for infinity. Formally speaking, infinity, or the identity element of the elliptic curve group, is a member of the group, and the group-check should allow it. An initial review of blst users on GitHub did not uncover any use of this function with the complementary infinity check. This optional check was added as a convenience feature because despite infinity being a legitimate member of the group, individual signatures should never be infinite (as it is equivalent to having zero for the secret key), and observing one should raise a flag. \n\n### Description\n\nThe vulnerable function is declared as `SigValidate(sigInfcheck bool) bool` and if called with `sigInfcheck` argument set to `true`, the group-check was omitted. The group-check is required to be performed on untrusted input, because the pairing, the corner-stone operation of the signature scheme, is defined only on points that are members of a specific cyclic group, which is a subset of all the possible points on elliptic curves in question. Submitting an untrusted point outside the group opens up the possibility of accepting an alternative signature for a chosen message.\n\nIt should be noted that the SigValidate call is not the only way to perform the group-checks. There are optional checks integrated into various other verification methods, such as `Verify`, `AggregateVerify`, etc., as well as signature aggregation methods, such as `PairingAggregate*`. The reason why there are multiple options is that the group-check is a relatively expensive operation, and application developers are arguably entitled the freedom to choose when it's performed.\n\n### Patches\n\nThis issue has been resolved in the v0.3.11 release and users are advised to update if their application is affected or alternatively omit the complementary infinity check.\n\n### Credits\n\nA special thanks to Yunjong Jeong (@blukat29) for the discovery and disclosure of this vulnerability.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/supranational/blst"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.0"
      }, {
        "fixed" : "0.3.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/supranational/blst/security/advisories/GHSA-8c37-7qx3-4c4p"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/supranational/blst/commit/fb91221c91c82f65bfc7f243256308977a06d48b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/supranational/blst"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/supranational/blst/releases/tag/v0.3.11"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-09T20:57:57Z",
    "nvd_published_at" : null
  }
}