CVE-2024-1394
Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads
Also known as GHSA-78hx-gp6g-7mj6, GO-2024-2660
Mitigation
- Upgrade github.com/golang-fips/openssl/v2 to 2.0.1 or later.
- Upgrade github.com/microsoft/go-crypto-openssl to 0.2.9 or later.
- Upgrade github.com/microsoft/go-crypto-openssl/openssl to 0.2.9 or later.
- Vendor workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Who should check
- Projects that depend on Go package github.com/golang-fips/go (<= 1.22.1)
- Projects that depend on Go package github.com/golang-fips/openssl/v2 (< 2.0.1)
- Projects that depend on Go package github.com/microsoft/go-crypto-openssl (<= 0.2.8)
- Projects that depend on Go package github.com/microsoft/go-crypto-openssl/openssl (< 0.2.9)
- Anyone running Red Hat Ansible Automation Platform 2.4 for RHEL 8 all versions
- Anyone running Red Hat Ansible Automation Platform 2.4 for RHEL 9 all versions
- Anyone running Red Hat Developer Tools all versions
- Anyone running Red Hat Enterprise Linux 8 all versions
Vulnerability facts
- Affected
- github.com/golang-fips/go <= 1.22.1; github.com/golang-fips/openssl/v2 < 2.0.1; github.com/microsoft/go-crypto-openssl <= 0.2.8; github.com/microsoft/go-crypto-openssl/openssl < 0.2.9
- Fixed in
- 2.0.1, 0.2.9
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.90% chance of exploitation in 30 days (percentile 80, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
A memory leak flaw was found in Golang in the RSA encrypting/decrypting code, which might lead to a resource exhaustion vulnerability using attacker-controlled inputs. The memory leak happens in github.com/golang-fips/openssl/openssl/rsa.go#L113. The objects leaked are pkey and ctx. That function uses named return parameters to free pkey and ctx if there is an error initializing the context or setting the different properties. All return statements related to error cases follow the "return nil, nil, fail(...)" pattern, meaning that pkey and ctx will be nil inside the deferred function that should free them.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-1394. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-1394.md Affected: github.com/golang-fips/go <= 1.22.1; github.com/golang-fips/openssl/v2 < 2.0.1; github.com/microsoft/go-crypto-openssl <= 0.2.8; github.com/microsoft/go-crypto-openssl/openssl < 0.2.9 Fixed in: 2.0.1, 0.2.9 Steps: 1. Search this machine and project for github.com/golang-fips/go (Go), github.com/golang-fips/openssl/v2 (Go), github.com/microsoft/go-crypto-openssl (Go), github.com/microsoft/go-crypto-openssl/openssl (Go), Red Hat Ansible Automation Platform 2.4 for RHEL 8, Red Hat Ansible Automation Platform 2.4 for RHEL 9: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://access.redhat.com/errata/RHSA-2024:1462
- https://access.redhat.com/errata/RHSA-2024:1468
- https://access.redhat.com/errata/RHSA-2024:1472
- https://access.redhat.com/errata/RHSA-2024:1501
- https://access.redhat.com/errata/RHSA-2024:1502
- https://access.redhat.com/errata/RHSA-2024:1561
- https://access.redhat.com/errata/RHSA-2024:1563
- https://access.redhat.com/errata/RHSA-2024:1566
- https://access.redhat.com/errata/RHSA-2024:1567
- https://access.redhat.com/errata/RHSA-2024:1574
- https://access.redhat.com/errata/RHSA-2024:1640
- https://access.redhat.com/errata/RHSA-2024:1644
- https://access.redhat.com/errata/RHSA-2024:1646
- https://access.redhat.com/errata/RHSA-2024:1763
- https://access.redhat.com/errata/RHSA-2024:1897
- https://access.redhat.com/errata/RHSA-2024:2562
- https://access.redhat.com/errata/RHSA-2024:2568
- https://access.redhat.com/errata/RHSA-2024:2569
- https://access.redhat.com/errata/RHSA-2024:2729
- https://access.redhat.com/errata/RHSA-2024:2730
- https://access.redhat.com/errata/RHSA-2024:2767
- https://access.redhat.com/errata/RHSA-2024:3265
- https://access.redhat.com/errata/RHSA-2024:3352
- https://access.redhat.com/errata/RHSA-2024:4146
- https://access.redhat.com/errata/RHSA-2024:4371
- https://access.redhat.com/errata/RHSA-2024:4378
- https://access.redhat.com/errata/RHSA-2024:4379
- https://access.redhat.com/errata/RHSA-2024:4502
- https://access.redhat.com/errata/RHSA-2024:4581
- https://access.redhat.com/errata/RHSA-2024:4591
- https://access.redhat.com/errata/RHSA-2024:4672
- https://access.redhat.com/errata/RHSA-2024:4699
- https://access.redhat.com/errata/RHSA-2024:4761
- https://access.redhat.com/errata/RHSA-2024:4762
- https://access.redhat.com/errata/RHSA-2024:4960
- https://access.redhat.com/errata/RHSA-2024:5258
- https://access.redhat.com/errata/RHSA-2024:5634
- https://access.redhat.com/errata/RHSA-2024:7262
- https://access.redhat.com/errata/RHSA-2025:7118
- https://github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6
- https://nvd.nist.gov/vuln/detail/CVE-2024-1394
Patches
Other
- https://access.redhat.com/security/cve/CVE-2024-1394
- https://bugzilla.redhat.com/show_bug.cgi?id=2262921
- https://pkg.go.dev/vuln/GO-2024-2660
- https://vuln.go.dev/ID/GO-2024-2660.json
- https://github.com/golang-fips/openssl
- https://github.com/golang-fips/openssl/releases/tag/v2.0.1
- https://github.com/microsoft/go-crypto-openssl/releases/tag/v0.2.9
FAQ
Is CVE-2024-1394 being exploited?
There is no confirmed exploitation: CVE-2024-1394 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.90% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-1394?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-1394?
github.com/golang-fips/go <= 1.22.1; github.com/golang-fips/openssl/v2 < 2.0.1; github.com/microsoft/go-crypto-openssl <= 0.2.8; github.com/microsoft/go-crypto-openssl/openssl < 0.2.9.
Is there a fix for CVE-2024-1394?
Yes. Fixed in 2.0.1, 0.2.9. Upgrade github.com/golang-fips/openssl/v2 to 2.0.1 or later. Upgrade github.com/microsoft/go-crypto-openssl to 0.2.9 or later. Upgrade github.com/microsoft/go-crypto-openssl/openssl to 0.2.9 or later. Vendor workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
How do I check if I'm affected by CVE-2024-1394?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.