VDB

CVE-2024-1394

CVE-2024-1394 PUBLISHED CVSS 7.5 HIGH

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

Reported by redhat · Published March 21, 2024

github.com/microsoft/go-crypto-openssl/openssl is fixed in 0.2.9 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/microsoft/go-crypto-openssl/opensslGo Modules0.2.9
github.com/microsoft/go-crypto-opensslGo Modules0.2.9, 0.2.8
github.com/golang-fips/goGo Modules1.22.1
github.com/golang-fips/openssl/v2Go Modules2.0.1

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 80:1.4.5-1.el8ap
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 90:1.4.5-1.el9ap
Red HatRed Hat Developer Tools0:1.19.13-6.el7_9
Red HatRed Hat Enterprise Linux 88090020240313170136.26eb71ac
Red HatRed Hat Enterprise Linux 80:5.1.1-2.el8_9
Red HatRed Hat Enterprise Linux 80:9.2.10-8.el8_9
Red HatRed Hat Enterprise Linux 80:9.2.10-16.el8_10
Red HatRed Hat Enterprise Linux 88100020240808093819.afee755d
Red HatRed Hat Enterprise Linux 80:101-2.el8_10
Red HatRed Hat Enterprise Linux 90:1.20.12-2.el9_3
Red HatRed Hat Enterprise Linux 90:9.2.10-8.el9_3
Red HatRed Hat Enterprise Linux 90:5.1.1-2.el9_3
Red HatRed Hat Enterprise Linux 90:1.21.9-2.el9_4
Red HatRed Hat Enterprise Linux 90:9.2.10-16.el9_4
Red HatRed Hat Enterprise Linux 90:5.1.1-2.el9_4
Red HatRed Hat Enterprise Linux 92:1.33.7-3.el9_4
Red HatRed Hat Enterprise Linux 94:4.9.4-5.el9_4
Red HatRed Hat Enterprise Linux 96:0.7.3-4.el9_4
Red HatRed Hat Enterprise Linux 92:1.14.3-3.el9_4
Red HatRed Hat Enterprise Linux 91:1.4.0-4.el9_4

…and 261 more

Timeline

  • Mar 20, 2024 CVE Published
  • Mar 22, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (12 in total, the first dated here)
  • Jan 13, 2025 PoC Published (2 in total, the first dated here)
  • Mar 18, 2026 Security Advisory (148 in total, the first dated here)
  • Aug 10, 2026 Distribution Patch (146 in total, the first dated here)
  • Aug 12, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-1394
vulnetix vdb fixes CVE-2024-1394

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-1394/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

…and 26 more

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›