CVE-2024-1394
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/microsoft/go-crypto-openssl/openssl | Go Modules | 0.2.9 |
| github.com/microsoft/go-crypto-openssl | Go Modules | 0.2.9, 0.2.8 |
| github.com/golang-fips/go | Go Modules | 1.22.1 |
| github.com/golang-fips/openssl/v2 | Go Modules | 2.0.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | 0:1.4.5-1.el8ap |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | 0:1.4.5-1.el9ap |
| Red Hat | Red Hat Developer Tools | 0:1.19.13-6.el7_9 |
| Red Hat | Red Hat Enterprise Linux 8 | 8090020240313170136.26eb71ac |
| Red Hat | Red Hat Enterprise Linux 8 | 0:5.1.1-2.el8_9 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:9.2.10-8.el8_9 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:9.2.10-16.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8 | 8100020240808093819.afee755d |
| Red Hat | Red Hat Enterprise Linux 8 | 0:101-2.el8_10 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:1.20.12-2.el9_3 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:9.2.10-8.el9_3 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:5.1.1-2.el9_3 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:1.21.9-2.el9_4 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:9.2.10-16.el9_4 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:5.1.1-2.el9_4 |
| Red Hat | Red Hat Enterprise Linux 9 | 2:1.33.7-3.el9_4 |
| Red Hat | Red Hat Enterprise Linux 9 | 4:4.9.4-5.el9_4 |
| Red Hat | Red Hat Enterprise Linux 9 | 6:0.7.3-4.el9_4 |
| Red Hat | Red Hat Enterprise Linux 9 | 2:1.14.3-3.el9_4 |
| Red Hat | Red Hat Enterprise Linux 9 | 1: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
- RHSA-2024:1462 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1468 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1472 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1501 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1502 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1561 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1563 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1566 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1567 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1574 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1640 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1644 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1646 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1763 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:1897 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:2562 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:2568 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:2569 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:2729 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:2730 vendor-advisoryx_refsource_REDHAT
…and 26 more