cve.bz

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

7.5 highEPSS 1.5%Fix available

High (7.5) in red hat. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/golang-fips/openssl/v2 2.0.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-19. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-03-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-401 Missing Release of Memory after Effective Lifetime
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • github.com/golang-fips/openssl/v2 (Go): fixed in 2.0.1
  • github.com/microsoft/go-crypto-openssl/openssl (Go): fixed in 0.2.9
  • github.com/microsoft/go-crypto-openssl (Go): fixed in 0.2.9
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8: fixed in 0:1.4.5-1.el8ap
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9: fixed in 0:1.4.5-1.el9ap
  • Red Hat Red Hat Developer Tools: fixed in 0:1.19.13-6.el7_9
  • Red Hat Red Hat Enterprise Linux 8: fixed in 8090020240313170136.26eb71ac
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:5.1.1-2.el8_9
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:9.2.10-8.el8_9
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:9.2.10-16.el8_10
  • Red Hat Red Hat Enterprise Linux 8: fixed in 8100020240808093819.afee755d
  • Red Hat, AlmaLinux, Rocky Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-1394 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-1394?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-1394?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-1394 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Ansible Automation Platform 2.4 for RHEL 80:1.4.5-1.el8ap
Red Hat Ansible Automation Platform 2.4 for RHEL 90:1.4.5-1.el9ap
Red Hat Developer Tools0:1.19.13-6.el7_9
Red Hat Enterprise Linux 88090020240313170136.26eb71ac
Red Hat Enterprise Linux 80:5.1.1-2.el8_9
Red Hat Enterprise Linux 80:9.2.10-8.el8_9
Red Hat Enterprise Linux 80:9.2.10-16.el8_10
Red Hat Enterprise Linux 88100020240808093819.afee755d
Red Hat Enterprise Linux 80:101-2.el8_10
Red Hat Enterprise Linux 90:1.20.12-2.el9_3
Red Hat Enterprise Linux 90:9.2.10-8.el9_3
Red Hat Enterprise Linux 90:5.1.1-2.el9_3
Red Hat Enterprise Linux 90:1.21.9-2.el9_4
Red Hat Enterprise Linux 90:9.2.10-16.el9_4
Red Hat Enterprise Linux 90:5.1.1-2.el9_4
Red Hat Enterprise Linux 92:1.33.7-3.el9_4
Red Hat Enterprise Linux 94:4.9.4-5.el9_4
Red Hat Enterprise Linux 96:0.7.3-4.el9_4
Red Hat Enterprise Linux 92:1.14.3-3.el9_4
Red Hat Enterprise Linux 91:1.4.0-4.el9_4
Red Hat Enterprise Linux 94:1.1.12-3.el9_4
Red Hat Enterprise Linux 90:132-1.el9
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions2:4.2.0-4.el9_0
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions1:1.0.1-6.el9_0
Red Hat Enterprise Linux 9.2 Extended Update Support0:1.19.13-7.el9_2
Red Hat Enterprise Linux 9.2 Extended Update Support2:4.4.1-20.el9_2
Red Hat OpenShift Container Platform 4.121:1.23.4-5.2.rhaos4.12.el8
Red Hat OpenShift Container Platform 4.120:0.16.0-2.2.rhaos4.12.el8
Red Hat OpenShift Container Platform 4.121:1.4.0-1.1.rhaos4.12.el8
Red Hat OpenShift Container Platform 4.120:1.25.3-5.2.rhaos4.12.git44a2cb2.el9
Red Hat OpenShift Container Platform 4.120:1.25.0-2.2.el8
Red Hat OpenShift Container Platform 4.120:2.14.0-5.2.rhaos4.12.el9
Red Hat OpenShift Container Platform 4.120:4.12.0-202403251017.p0.gd4c9e3c.assembly.stream.el8
Red Hat OpenShift Container Platform 4.123:4.2.0-7.2.rhaos4.12.el9
Red Hat OpenShift Container Platform 4.123:1.1.6-5.2.rhaos4.12.el8
Red Hat OpenShift Container Platform 4.122:1.9.4-3.2.rhaos4.12.el8
Red Hat OpenShift Container Platform 4.131:1.29.1-2.2.rhaos4.13.el8
Red Hat OpenShift Container Platform 4.131:1.4.0-1.1.rhaos4.13.el8
Red Hat OpenShift Container Platform 4.130:1.26.5-11.1.rhaos4.13.git919cc6e.el8
Red Hat OpenShift Container Platform 4.130:1.26.0-4.1.el8
Red Hat OpenShift Container Platform 4.130:2.15.0-7.1.rhaos4.13.el9
Red Hat OpenShift Container Platform 4.130:4.13.0-202404020737.p0.gd192e90.assembly.stream.el8
Red Hat OpenShift Container Platform 4.133:4.4.1-5.2.rhaos4.13.el8
Red Hat OpenShift Container Platform 4.134:1.1.12-1.1.rhaos4.13.el8
Red Hat OpenShift Container Platform 4.132:1.11.2-2.2.rhaos4.13.el8
Red Hat OpenShift Container Platform 4.140:0.19.0-1.3.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.141:1.4.0-1.2.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.140:1.27.4-6.1.rhaos4.14.gitd09e4c0.el8
Red Hat OpenShift Container Platform 4.140:1.27.0-3.1.el8
Red Hat OpenShift Container Platform 4.140:2.16.2-2.1.rhaos4.14.el9
Red Hat OpenShift Container Platform 4.140:4.14.0-202403261640.p0.gf7b14a9.assembly.stream.el8
Red Hat OpenShift Container Platform 4.140:4.14.0-202403251040.p0.g607e2dd.assembly.stream.el8
Red Hat OpenShift Container Platform 4.143:4.4.1-11.3.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.142:1.11.2-10.3.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.141:1.29.1-10.4.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.140:0.19.0-1.4.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.143:2.1.7-3.4.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.141:1.4.0-1.3.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.140:1.27.4-7.2.rhaos4.14.git082c52f.el8
Red Hat OpenShift Container Platform 4.140:1.27.0-3.2.el8
Red Hat OpenShift Container Platform 4.140:2.16.2-2.2.rhaos4.14.el9
Red Hat OpenShift Container Platform 4.140:4.14.0-202404160939.p0.g7bee54d.assembly.stream.el8
Red Hat OpenShift Container Platform 4.140:4.14.0-202404151639.p0.gd2acdd5.assembly.stream.el8
Red Hat OpenShift Container Platform 4.140:4.14.0-202404151639.p0.g81558cc.assembly.stream.el8
Red Hat OpenShift Container Platform 4.140:4.14.0-202404151639.p0.gf7b14a9.assembly.stream.el8
Red Hat OpenShift Container Platform 4.140:4.14.0-202404151639.p0.g8926a29.assembly.stream.el8
Red Hat OpenShift Container Platform 4.140:4.14.0-202404151639.p0.g607e2dd.assembly.stream.el8
Red Hat OpenShift Container Platform 4.143:4.4.1-11.4.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.144:1.1.12-1.2.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.142:1.11.2-10.4.rhaos4.14.el8
Red Hat OpenShift Container Platform 4.140:4.14.19-202403280926.p0.gc1f8861.assembly.4.14.19.el9
Red Hat OpenShift Container Platform 4.14414.92.202407300859-0
Red Hat OpenShift Container Platform 4.151:1.29.1-20.3.rhaos4.15.el8
Red Hat OpenShift Container Platform 4.150:0.20.0-1.1.rhaos4.15.el8
Red Hat OpenShift Container Platform 4.151:1.4.0-1.2.rhaos4.15.el8
Red Hat OpenShift Container Platform 4.150:1.28.4-8.rhaos4.15.git24f50b9.el8
Red Hat OpenShift Container Platform 4.150:1.28.0-3.1.el8
Red Hat OpenShift Container Platform 4.150:2.16.2-2.1.rhaos4.15.el9
Red Hat OpenShift Container Platform 4.150:4.15.0-202403211240.p0.g62c4d45.assembly.stream.el8
Red Hat OpenShift Container Platform 4.150:4.15.0-202403211549.p0.g2e3cca1.assembly.stream.el8
Red Hat OpenShift Container Platform 4.153:4.4.1-21.1.rhaos4.15.el8
Red Hat OpenShift Container Platform 4.154:1.1.12-1.1.rhaos4.15.el8
Red Hat OpenShift Container Platform 4.152:1.11.2-21.2.rhaos4.15.el8
Red Hat OpenShift Container Platform 4.150:4.15.6-202403280951.p0.g94b1c2a.assembly.4.15.6.el9
Red Hat OpenShift Container Platform 4.15415.92.202407191425-0
Red Hat OpenStack Platform 16.20:3.3.23-16.el8ost
Red Hat OpenStack Platform 17.1 for RHEL 80:0.2.1-3.el8ost
Red Hat OpenStack Platform 17.1 for RHEL 90:3.4.26-8.el9ost
Red Hat OpenStack Platform 17.1 for RHEL 90:0.2.1-3.el9ost
Red Hat RHODF-4.16-RHEL-9v4.16.0-137
Red Hat RHODF-4.16-RHEL-9v4.16.0-38

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-78hx-gp6g-7mj6Gogithub.com/golang-fips/go<=1.22.1no fix published
GHSA-78hx-gp6g-7mj6Gogithub.com/golang-fips/openssl/v2<2.0.12.0.1
GHSA-78hx-gp6g-7mj6Gogithub.com/microsoft/go-crypto-openssl<=0.2.8no fix published
GHSA-78hx-gp6g-7mj6Gogithub.com/microsoft/go-crypto-openssl/openssl<0.2.90.2.9
GO-2024-2660Gogithub.com/golang-fips/openssl/v2<2.0.12.0.1
GO-2024-2660Gogithub.com/microsoft/go-crypto-openssl<0.2.90.2.9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.5-2.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el8python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more0:3.9.3-1.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el8python39-django, python3x-django0:4.2.11-1.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8receptor, receptorctl0:1.4.5-1.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el9automation-controller-venv-tower0:4.5.5-2.el9apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el9python-aiohttp, python3-aiohttp, python3-aiohttp-debuginfo and 1 more0:3.9.3-1.el9apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el9python-django, python3-django0:4.2.11-1.el9apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el9, ansible_automation_platform_developer:2.4::el9, ansible_automation_platform_inside:2.4::el9receptor, receptorctl0:1.4.5-1.el9apRHSA-2024:1640
Red Hatdevtools:2023::el7go-toolset-1.19-golang, go-toolset-1.19-golang-bin, go-toolset-1.19-golang-src and 4 more0:1.19.13-6.el7_9RHSA-2024:1468
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.10.0-1.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more2:1.33.8-4.module+el8.10.0+22202+761b9a65RHSA-2024:5258
Red Hatenterprise_linux:8::appstreamcockpit-podman0:84.1-1.module+el8.10.0+22202+761b9a65RHSA-2024:5258
141 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8aardvark-dns2:1.10.0-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux8aardvark-dns2:1.10.0-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux8aardvark-dns2:1.10.0-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8buildah, buildah-tests2:1.33.8-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8cockpit-podman84.1-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8container-selinux2:2.229.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8containers-common2:1-82.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux8crit, criu, criu-libs3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
44 more for AlmaLinux in the JSON.
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8buildah2:1.33.8-4.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8conmon3:2.1.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8container-selinux2:2.229.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8containernetworking-plugins1:1.4.0-5.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux8containers-common2:1-82.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux8criu0:3.18-5.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8crun0:1.14.3-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8delve0:1.20.2-1.module+el8.9.0+1392+c9f6376aRLSA-2024:1472
Rocky Linux8fuse-overlayfs0:1.13-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux8go-toolset0:1.20.12-1.module+el8.9.0+1725+0ed4fa7fRLSA-2024:1472
18 more for Rocky Linux in the JSON.
Azure Linux3buildahno fix listedAZL-110327
Azure Linux3conmonno fix listedAZL-110382
Azure Linux3runcno fix listedAZL-110516
Azure Linux3skopeono fix listedAZL-110519

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The majority of RHEL utilities are not long-running applications; instead, they are command-line tools. These tools utilize Golang package as build-time dependency, which is why they are classified as having a "Moderate" level of impact.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8receptor-0:1.4.5-1.el8apFixed 2024-04-02RHSA-2024:1640
Red Hat Ansible Automation Platform 2.4 for RHEL 9receptor-0:1.4.5-1.el9apFixed 2024-04-02RHSA-2024:1640
Red Hat Developer Toolsgo-toolset-1.19-golang-0:1.19.13-6.el7_9Fixed 2024-03-21RHSA-2024:1468
Red Hat Enterprise Linux 8go-toolset:rhel8-8090020240313170136.26eb71acFixed 2024-03-21RHSA-2024:1472
Red Hat Enterprise Linux 8grafana-pcp-0:5.1.1-2.el8_9Fixed 2024-04-02RHSA-2024:1644
Red Hat Enterprise Linux 8grafana-0:9.2.10-8.el8_9Fixed 2024-04-02RHSA-2024:1646
Red Hat Enterprise Linux 8grafana-0:9.2.10-16.el8_10Fixed 2024-05-22RHSA-2024:3265
Red Hat Enterprise Linux 8container-tools:rhel8-8100020240808093819.afee755dFixed 2024-08-13RHSA-2024:5258
Red Hat Enterprise Linux 8osbuild-composer-0:101-2.el8_10Fixed 2024-09-26RHSA-2024:7262
Red Hat Enterprise Linux 9golang-0:1.20.12-2.el9_3Fixed 2024-03-21RHSA-2024:1462
NBDE Tang Servertang-operator-bundle-containerWill not fix
OpenShift Developer Tools and ServiceshelmAffected
OpenShift Developer Tools and ServicesodoWill not fix
OpenShift Pipelinesopenshift-pipelines-clientNot affected
OpenShift Serverlessopenshift-serverless-clientsAffected
Red Hat Ansible Automation Platform 1.2helmWill not fix
Red Hat Ansible Automation Platform 1.2openshift-clientsWill not fix
Red Hat Certification for Red Hat Enterprise Linux 8redhat-certification-preflightFix deferred
Red Hat Certification Program for Red Hat Enterprise Linux 9redhat-certification-preflightFix deferred
Red Hat Enterprise Linux 7buildahOut of support scope
127 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-1394.

References

Check your stackJSON