What’s Vulnerable › Vulnerabilities
CVE-2024-1394: Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-21 · updated 2026-10-29
- Weakness: CWE-401
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 products
- Red Hat NBDE Tang Server: all versions
- Red Hat OpenShift Developer Tools and Services: all versions
- Red Hat OpenShift Serverless: all versions
- Red Hat Ansible Automation Platform 1.2: all versions
- Red Hat Ansible Automation Platform 2.4 for RHEL 8: all versions — fixed in 0:1.4.5-1.el8ap
- Red Hat Ansible Automation Platform 2.4 for RHEL 9: all versions — fixed in 0:1.4.5-1.el9ap
- Red Hat Certification for Red Hat Enterprise Linux 8: all versions
- Red Hat Certification Program for Red Hat Enterprise Linux 9: all versions
- Red Hat Developer Tools: all versions — fixed in 0:1.19.13-6.el7_9
- Red Hat Enterprise Linux 8: all versions — fixed in 8090020240313170136.26eb71ac
- Red Hat Enterprise Linux 9: all versions — fixed in 0:1.20.12-2.el9_3
- Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions: all versions — fixed in 2:4.2.0-4.el9_0
- Red Hat Enterprise Linux 9.2 Extended Update Support: all versions — fixed in 0:1.19.13-7.el9_2
- Red Hat OpenShift Container Platform 4.12: all versions — fixed in 1:1.23.4-5.2.rhaos4.12.el8
- Red Hat OpenShift Container Platform 4.13: all versions — fixed in 1:1.29.1-2.2.rhaos4.13.el8
- Red Hat OpenShift Container Platform 4.14: all versions — fixed in 0:0.19.0-1.3.rhaos4.14.el8
- Red Hat OpenShift Container Platform 4.15: all versions — fixed in 1:1.29.1-20.3.rhaos4.15.el8
- Red Hat OpenShift Dev Spaces: all versions
- Red Hat OpenShift GitOps: all versions
- Red Hat OpenShift on AWS: all versions
- Red Hat OpenStack Platform 16.1: all versions
- Red Hat OpenStack Platform 16.2: all versions — fixed in 0:3.3.23-16.el8ost
- Red Hat OpenStack Platform 17.1: all versions
- Red Hat OpenStack Platform 17.1 for RHEL 8: all versions — fixed in 0:0.2.1-3.el8ost
- Red Hat OpenStack Platform 17.1 for RHEL 9: all versions — fixed in 0:3.4.26-8.el9ost
- Red Hat OpenStack Platform 18.0: all versions
- Red Hat Service Interconnect 1: all versions
- Red Hat RHODF-4.16-RHEL-9: all versions — fixed in v4.16.0-137
How to fix
Upgrade to a fixed version: Red Hat Ansible Automation Platform 2.4 for RHEL 8 0:1.4.5-1.el8ap; Red Hat Ansible Automation Platform 2.4 for RHEL 9 0:1.4.5-1.el9ap; Red Hat Developer Tools 0:1.19.13-6.el7_9; Red Hat Enterprise Linux 8 8090020240313170136.26eb71ac; Red Hat Enterprise Linux 9 0:1.20.12-2.el9_3; Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions 2:4.2.0-4.el9_0; Red Hat Enterprise Linux 9.2 Extended Update Support 0:1.19.13-7.el9_2; Red Hat OpenShift Container Platform 4.12 1:1.23.4-5.2.rhaos4.12.el8; Red Hat OpenShift Container Platform 4.13 1:1.29.1-2.2.rhaos4.13.el8; Red Hat OpenShift Container Platform 4.14 0:0.19.0-1.3.rhaos4.14.el8; Red Hat OpenShift Container Platform 4.15 1:1.29.1-20.3.rhaos4.15.el8; Red Hat OpenStack Platform 16.2 0:3.3.23-16.el8ost. Check the vendor advisory for mitigations.
References
- 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
Get alerted when CVE-2024-1394 or the next vulnerability affects your stack