# CVE-2024-1394: Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.90% (percentile 80, 2026-11-26)
- **CWE:** CWE-401
- **Aliases:** GHSA-78hx-gp6g-7mj6, GO-2024-2660
- **Published:** 2024-03-20T18:10:36.000Z
- **Modified:** 2026-11-26T14:17:08.563Z

## 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

## 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

- Go `github.com/golang-fips/go`: affected \<= 1.22.1; fixed no fix listed yet (osv)
- Go `github.com/golang-fips/openssl/v2`: affected \< 2.0.1; fixed 2.0.1 (osv)
- Go `github.com/microsoft/go-crypto-openssl`: affected \<= 0.2.8; fixed 0.2.9 (osv)
- Go `github.com/microsoft/go-crypto-openssl/openssl`: affected \< 0.2.9; fixed 0.2.9 (osv)
- Red Hat Ansible Automation Platform 2.4 for RHEL 8: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.4 for RHEL 8: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.4 for RHEL 8: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.4 for RHEL 9: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.4 for RHEL 9: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.4 for RHEL 9: all versions (cvelist)
- Red Hat Developer Tools: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 9.2 Extended Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 9.2 Extended Update Support: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.12: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.13: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.14: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenShift Container Platform 4.15: all versions (cvelist)
- Red Hat OpenStack Platform 16.2: all versions (cvelist)
- Red Hat OpenStack Platform 17.1 for RHEL 8: all versions (cvelist)
- Red Hat OpenStack Platform 17.1 for RHEL 9: all versions (cvelist)
- Red Hat OpenStack Platform 17.1 for RHEL 9: all versions (cvelist)
- Red Hat RHODF-4.16-RHEL-9: all versions (cvelist)
- Red Hat RHODF-4.16-RHEL-9: all versions (cvelist)
- Red Hat NBDE Tang Server: all versions (cvelist)
- Red Hat OpenShift Developer Tools and Services: all versions (cvelist)
- Red Hat OpenShift Developer Tools and Services: all versions (cvelist)
- Red Hat OpenShift Pipelines: see vendor advisory (cvelist)
- Red Hat OpenShift Serverless: all versions (cvelist)
- Red Hat Ansible Automation Platform 1.2: all versions (cvelist)
- Red Hat Ansible Automation Platform 1.2: all versions (cvelist)
- Red Hat Certification for Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Certification Program for Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 9: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 9: see vendor advisory (cvelist)
- Red Hat OpenShift Container Platform 4: see vendor advisory (cvelist)
- Red Hat OpenShift Container Platform 4: see vendor advisory (cvelist)
- Red Hat OpenShift Container Platform 4: see vendor advisory (cvelist)
- Red Hat OpenShift Container Platform 4: see vendor advisory (cvelist)
- Red Hat OpenShift Container Platform 4: see vendor advisory (cvelist)
- Red Hat OpenShift Container Platform 4: see vendor advisory (cvelist)
- Red Hat Openshift Container Storage 4: see vendor advisory (cvelist)
- Red Hat OpenShift Dev Spaces: all versions (cvelist)
- Red Hat OpenShift GitOps: all versions (cvelist)
- Red Hat OpenShift on AWS: all versions (cvelist)
- Red Hat OpenShift Virtualization 4: see vendor advisory (cvelist)
- Red Hat OpenStack Platform 16.1: see vendor advisory (cvelist)
- Red Hat OpenStack Platform 16.1: all versions (cvelist)
- Red Hat OpenStack Platform 16.1: see vendor advisory (cvelist)
- Red Hat OpenStack Platform 16.2: all versions (cvelist)
- Red Hat OpenStack Platform 16.2: all versions (cvelist)
- Red Hat OpenStack Platform 16.2: see vendor advisory (cvelist)
- Red Hat OpenStack Platform 17.1: all versions (cvelist)
- Red Hat OpenStack Platform 17.1: see vendor advisory (cvelist)
- Red Hat OpenStack Platform 18.0: all versions (cvelist)
- Red Hat Service Interconnect 1: all versions (cvelist)
- Red Hat Service Interconnect 1: all versions (cvelist)
- Red Hat Service Interconnect 1: all versions (cvelist)
- Red Hat Software Collections: see vendor advisory (cvelist)
- Red Hat Storage 3: see vendor advisory (cvelist)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2024:1462>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1468>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1472>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1501>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1502>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1561>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1563>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1566>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1567>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1574>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1640>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1644>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1646>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1763>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1897>
- vendor: <https://access.redhat.com/errata/RHSA-2024:2562>
- vendor: <https://access.redhat.com/errata/RHSA-2024:2568>
- vendor: <https://access.redhat.com/errata/RHSA-2024:2569>
- vendor: <https://access.redhat.com/errata/RHSA-2024:2729>
- vendor: <https://access.redhat.com/errata/RHSA-2024:2730>
- vendor: <https://access.redhat.com/errata/RHSA-2024:2767>
- vendor: <https://access.redhat.com/errata/RHSA-2024:3265>
- vendor: <https://access.redhat.com/errata/RHSA-2024:3352>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4146>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4371>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4378>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4379>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4502>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4581>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4591>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4672>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4699>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4761>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4762>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4960>
- vendor: <https://access.redhat.com/errata/RHSA-2024:5258>
- vendor: <https://access.redhat.com/errata/RHSA-2024:5634>
- vendor: <https://access.redhat.com/errata/RHSA-2024:7262>
- vendor: <https://access.redhat.com/errata/RHSA-2025:7118>
- vendor: <https://github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-1394>
- patch: <https://github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136>
- patch: <https://github.com/microsoft/go-crypto-openssl/commit/104fe7f6912788d2ad44602f77a0a0a62f1f259f>
- other: <https://access.redhat.com/security/cve/CVE-2024-1394>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2262921>
- other: <https://pkg.go.dev/vuln/GO-2024-2660>
- other: <https://vuln.go.dev/ID/GO-2024-2660.json>
- other: <https://github.com/golang-fips/openssl>
- other: <https://github.com/golang-fips/openssl/releases/tag/v2.0.1>
- other: <https://github.com/microsoft/go-crypto-openssl/releases/tag/v0.2.9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-1394>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-78hx-gp6g-7mj6> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2660> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-1394> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-1394>
