CVE-2024-1394: Github.com/golang fips/go Memory Leaks Vulnerability
HIGHCVE-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.
CVE-2024-1394 at a Glance
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).
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.
Upgrade github.com/golang-fips/go to Latest secure release
Upgrade github.com/golang-fips/openssl/v2 to 2.0.1
Upgrade github.com/microsoft/go-crypto-openssl to Latest secure release
Upgrade github.com/microsoft/go-crypto-openssl/openssl to 0.2.9
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
CVE-2024-1394 Affected Github.com/golang fips/go Versions
4 component(s)| 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
Frequently Asked Questions
What is CVE-2024-1394?
Which Github.com/golang fips/go versions are affected?
What version fixes CVE-2024-1394?
Is github.com/golang-fips/go affected?
Is github.com/golang-fips/openssl/v2 affected?
What is the CVSS score of CVE-2024-1394?
What CWE is associated with CVE-2024-1394?
How can I check Go dependencies for CVE-2024-1394?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}