CVE-2024-1394: RSA Memory Leak in golang-fips/openssl
CVE-2024-1394 is a memory-leak vulnerability in the golang-fips/openssl RSA encryption and decryption implementation. The affected function uses named return parameters and deferred cleanup to release OpenSSL pkey and ctx objects when context initialization or property configuration fails. Error returns using the pattern "return nil, nil, fail(...)" overwrite those parameters before deferred cleanup executes, leaving allocated objects unreleased. Attacker-controlled inputs that repeatedly trigger these error paths can exhaust memory and cause denial of service.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Repeated triggering of the leak can cause increasing memory consumption, degraded performance, process termination, and service disruption; sufficiently severe resource exhaustion may affect the host. No confidentiality or integrity impact is established. Red Hat assigns CVSS v3.1 7.5 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Practical impact is lower for short-lived command-line utilities than for long-running services that repeatedly process untrusted inputs.
Mitigation
If you can’t patch tonight, do this now.
Red Hat states that no mitigation meets its product-security criteria. Interim exposure-reduction measures include restricting ingestion of untrusted RSA public keys, validating accepted keys for SP 800-56B compliance, and applying rate limits, request quotas, and memory controls around exposed RSA operations. These measures do not repair the memory leak or replace patching.
Remediation
Patch, then assume compromise.
Upgrade github.com/golang-fips/openssl/v2 to version 2.0.1 or later, or github.com/microsoft/go-crypto-openssl/openssl to version 0.2.9 or later, as applicable. For other affected module variants, use a release containing the corresponding fix; a specific first-fixed version is not established here. Apply vendor-provided updates to affected applications, Go toolchains, and container images, and rebuild dependent applications or images as appropriate. RHEL 8 fixes include grafana-pcp 5.1.1-2.el8_9 under RHSA-2024:1644 and Grafana 9.2.10-8.el8_9 under RHSA-2024:1646; select updates appropriate to the deployed product and lifecycle channel.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2024-1394 exploited in the wild?
- As of Nov 24, 2026, Mallory has no reports of CVE-2024-1394 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-1394?
- As of Nov 24, 2026, Mallory has found no public exploit for CVE-2024-1394.
- Is there a patch for CVE-2024-1394?
- Upgrade github.com/golang-fips/openssl/v2 to version 2.0.1 or later, or github.com/microsoft/go-crypto-openssl/openssl to version 0.2.9 or later, as applicable. For other affected module variants, use a release containing the corresponding fix; a specific first-fixed version is not established here.
- How severe is CVE-2024-1394?
- CVE-2024-1394 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.9% (80th percentile) as of Nov 24, 2026.
Recent activity
35 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.