Vulnerabilities in pkg:golang/github.com/microsoft/go-crypto-openssl/openssl

PACKAGE
Advisory Identifier: GHSA-78hx-gp6g-7mj6
Advisory Summary

CVE-2024-1394 is a HIGH (CVSS 7.5) memory leaks vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/golang fips/go libraries in the Go ecosystem. The issue involves memory leaks in code encrypting and verifying rsa payloads. Remediation is available by upgrading affected packages to version 2.0.1, 0.2.9.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/microsoft/go-crypto-openssl/openssl

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/microsoft/go-crypto-openssl/openssl. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-78hx-gp6g-7mj6 CVE-2024-1394 HIGH Memory leaks in code encrypting and verifying RSA payloads

CVE-2024-1394 at a Glance

CVE Identifier CVE-2024-1394
GHSA Identifier GHSA-78hx-gp6g-7mj6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Github.com/golang fips/go
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-1394

To remediate this vulnerability, upgrade all affected Github.com/golang fips/go 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/golang-fips/go fixed: Latest secure release
Upgrade github.com/golang-fips/go to Latest secure release
github.com/golang-fips/openssl/v2 fixed: 2.0.1
Upgrade github.com/golang-fips/openssl/v2 to 2.0.1
github.com/microsoft/go-crypto-openssl fixed: Latest secure release
Upgrade github.com/microsoft/go-crypto-openssl to Latest secure release
github.com/microsoft/go-crypto-openssl/openssl fixed: 0.2.9
Upgrade github.com/microsoft/go-crypto-openssl/openssl to 0.2.9
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/golang-fips/go

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-1394, inspect your project dependencies for Github.com/golang fips/go:

inspect dependencies for github.com/golang-fips/go

Analyze the terminal output to locate any version of Github.com/golang fips/go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.1), 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 CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/golang fips/go, 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

Using crafted public RSA keys which are not compliant with SP 800-56B can cause a small memory leak when encrypting and verifying payloads. An attacker can leverage this flaw to gradually erode available memory to the point where the host crashes for lack of resources. Upon restart the attacker would have to begin again, but nevertheless there is the potential to deny service.

CVE-2024-1394 Affected Github.com/golang fips/go Versions

4 component(s)
Fixed Versions:
2.0.10.2.9
Product / Package Ecosystem Affected Versions Fixed Version
github.com/golang-fips/go
Go
≤ 1.22.1
github.com/golang-fips/openssl/v2
Go
< 2.0.1
2.0.1
github.com/microsoft/go-crypto-openssl
Go
≤ 0.2.8
github.com/microsoft/go-crypto-openssl/openssl
Go
< 0.2.9
0.2.9

References

access.redhat.com/errata/rhsa-2024:14... WEB
https://access.redhat.com/errata/RHSA-2024:1462
access.redhat.com/errata/rhsa-2024:43... WEB
https://access.redhat.com/errata/RHSA-2024:4378
access.redhat.com/errata/rhsa-2024:43... WEB
https://access.redhat.com/errata/RHSA-2024:4379
access.redhat.com/errata/rhsa-2024:45... WEB
https://access.redhat.com/errata/RHSA-2024:4591
GitHub Advisory / Wiki ADVISORY
https://github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6
NVD — CVE-2024-1394 NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-1394
Security Fix Commit FIX COMMIT
https://github.com/microsoft/go-crypto-openssl/commit/104fe7f6912788d2ad44602f77a0a0a62f1f259f
Security Fix Commit FIX COMMIT
https://github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136
access.redhat.com/errata/rhsa-2024:45... WEB
https://access.redhat.com/errata/RHSA-2024:4502
access.redhat.com/errata/rhsa-2024:45... WEB
https://access.redhat.com/errata/RHSA-2024:4581
access.redhat.com/errata/rhsa-2024:46... WEB
https://access.redhat.com/errata/RHSA-2024:4672
access.redhat.com/errata/rhsa-2024:46... WEB
https://access.redhat.com/errata/RHSA-2024:4699
access.redhat.com/errata/rhsa-2024:47... WEB
https://access.redhat.com/errata/RHSA-2024:4761
access.redhat.com/errata/rhsa-2024:47... WEB
https://access.redhat.com/errata/RHSA-2024:4762
access.redhat.com/errata/rhsa-2024:49... WEB
https://access.redhat.com/errata/RHSA-2024:4960
access.redhat.com/errata/rhsa-2024:52... WEB
https://access.redhat.com/errata/RHSA-2024:5258
access.redhat.com/errata/rhsa-2024:56... WEB
https://access.redhat.com/errata/RHSA-2024:5634
access.redhat.com/errata/rhsa-2024:72... WEB
https://access.redhat.com/errata/RHSA-2024:7262
Github.com/golang fips/go Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2024-1394
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=2262921
Github.com/golang fips/go Source Repository REPOSITORY
https://github.com/golang-fips/openssl
Github.com/golang fips/go Release RELEASE
https://github.com/golang-fips/openssl/releases/tag/v2.0.1
Github.com/golang fips/go Release RELEASE
https://github.com/microsoft/go-crypto-openssl/releases/tag/v0.2.9
pkg.go.dev/vuln/go-2024-2660 WEB
https://pkg.go.dev/vuln/GO-2024-2660
vuln.go.dev/id/go-2024-2660.jso... WEB
https://vuln.go.dev/ID/GO-2024-2660.json
access.redhat.com/errata/rhsa-2024:14... WEB
https://access.redhat.com/errata/RHSA-2024:1468
access.redhat.com/errata/rhsa-2024:14... WEB
https://access.redhat.com/errata/RHSA-2024:1472
access.redhat.com/errata/rhsa-2024:15... WEB
https://access.redhat.com/errata/RHSA-2024:1501
access.redhat.com/errata/rhsa-2024:15... WEB
https://access.redhat.com/errata/RHSA-2024:1502
access.redhat.com/errata/rhsa-2024:15... WEB
https://access.redhat.com/errata/RHSA-2024:1561
access.redhat.com/errata/rhsa-2024:15... WEB
https://access.redhat.com/errata/RHSA-2024:1563
access.redhat.com/errata/rhsa-2024:15... WEB
https://access.redhat.com/errata/RHSA-2024:1566
access.redhat.com/errata/rhsa-2024:15... WEB
https://access.redhat.com/errata/RHSA-2024:1567
access.redhat.com/errata/rhsa-2024:15... WEB
https://access.redhat.com/errata/RHSA-2024:1574
access.redhat.com/errata/rhsa-2024:16... WEB
https://access.redhat.com/errata/RHSA-2024:1640
access.redhat.com/errata/rhsa-2024:16... WEB
https://access.redhat.com/errata/RHSA-2024:1644
access.redhat.com/errata/rhsa-2024:16... WEB
https://access.redhat.com/errata/RHSA-2024:1646
access.redhat.com/errata/rhsa-2024:17... WEB
https://access.redhat.com/errata/RHSA-2024:1763
access.redhat.com/errata/rhsa-2024:18... WEB
https://access.redhat.com/errata/RHSA-2024:1897
access.redhat.com/errata/rhsa-2024:25... WEB
https://access.redhat.com/errata/RHSA-2024:2562
access.redhat.com/errata/rhsa-2024:25... WEB
https://access.redhat.com/errata/RHSA-2024:2568
access.redhat.com/errata/rhsa-2024:25... WEB
https://access.redhat.com/errata/RHSA-2024:2569
access.redhat.com/errata/rhsa-2024:27... WEB
https://access.redhat.com/errata/RHSA-2024:2729
access.redhat.com/errata/rhsa-2024:27... WEB
https://access.redhat.com/errata/RHSA-2024:2730
access.redhat.com/errata/rhsa-2024:27... WEB
https://access.redhat.com/errata/RHSA-2024:2767
access.redhat.com/errata/rhsa-2024:32... WEB
https://access.redhat.com/errata/RHSA-2024:3265
access.redhat.com/errata/rhsa-2024:33... WEB
https://access.redhat.com/errata/RHSA-2024:3352
access.redhat.com/errata/rhsa-2024:41... WEB
https://access.redhat.com/errata/RHSA-2024:4146
access.redhat.com/errata/rhsa-2024:43... WEB
https://access.redhat.com/errata/RHSA-2024:4371

Frequently Asked Questions

What is CVE-2024-1394?
CVE-2024-1394 is a security vulnerability in Github.com/golang fips/go involving Memory leaks in code encrypting and verifying RSA payloads under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/golang fips/go versions are affected?
Affected versions include releases prior to 2.0.1, 0.2.9 across affected packages: github.com/golang-fips/go, github.com/golang-fips/openssl/v2, github.com/microsoft/go-crypto-openssl, github.com/microsoft/go-crypto-openssl/openssl.
What version fixes CVE-2024-1394?
Upgrading to 2.0.1, 0.2.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/golang-fips/go affected?
Yes, github.com/golang-fips/go is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is github.com/golang-fips/openssl/v2 affected?
Yes, github.com/golang-fips/openssl/v2 is affected in releases prior to 2.0.1. Upgrade your dependency to 2.0.1 or later.
What is the CVSS score of CVE-2024-1394?
CVE-2024-1394 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-1394?
CVE-2024-1394 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for CVE-2024-1394?
Run the dependency tree command: 'inspect dependencies for github.com/golang-fips/go'. 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-78hx-gp6g-7mj6",
  "modified" : "2024-10-22T14:21:14Z",
  "published" : "2024-03-20T18:10:36Z",
  "aliases" : [ "CVE-2024-1394" ],
  "summary" : "Memory leaks in code encrypting and verifying RSA payloads",
  "details" : "Using crafted public RSA keys which are not compliant with SP 800-56B can cause a small memory leak when encrypting and verifying payloads.\n\nAn attacker can leverage this flaw to gradually erode available memory to the point where the host crashes for lack of resources. Upon restart the attacker would have to begin again, but nevertheless there is the potential to deny service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/golang-fips/go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.22.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/golang-fips/openssl/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.0"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/microsoft/go-crypto-openssl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.2.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/microsoft/go-crypto-openssl/openssl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.9"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.2.8"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1394"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/go-crypto-openssl/commit/104fe7f6912788d2ad44602f77a0a0a62f1f259f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1462"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4378"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4379"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4502"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4581"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4591"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4672"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4699"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4761"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4762"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4960"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:5258"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:5634"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:7262"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-1394"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2262921"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/golang-fips/openssl"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/golang-fips/openssl/releases/tag/v2.0.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/go-crypto-openssl/releases/tag/v0.2.9"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-2660"
  }, {
    "type" : "WEB",
    "url" : "https://vuln.go.dev/ID/GO-2024-2660.json"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1468"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1472"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1501"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1502"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1561"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1563"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1566"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1567"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1574"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1640"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1644"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1646"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1763"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1897"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2562"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2568"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2569"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2729"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2730"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2767"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:3265"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:3352"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4146"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4371"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-401" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-20T18:10:36Z",
    "nvd_published_at" : "2024-03-21T13:00:08Z"
  }
}