CVE-2024-1394

Aliases:GHSA-78hx-gp6g-7mj6GO-2024-2660
Advisory lineage Upstream: 0 Downstream: 36
Deferred
Published: 21 Mar 2024, 12:16
Last modified:23 Apr 2026, 01:32

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
7.5 HIGH
v3.1 (cve.org)
EPSS Score
1.38% LOW
1% probability +0.36%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

21 Mar 2024, 12:16
Published
Vulnerability first disclosed
23 Apr 2026, 01:32
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Trends

Current EPSS score: 1.38% Percentile: 81%

Techniques & Countermeasures

  • CWE-401Missing Release of Memory after Effective Lifetime

    The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.

Affected Systems

  • github.com/golang-fipsgo

    ≤ 1.22.1

  • github.com/golang-fips/opensslv2

    < 2.0.1

  • github.com/microsoftgo-crypto-openssl

    ≤ 0.2.8 | < 0.2.9

  • github.com/microsoft/go-crypto-opensslopenssl

    < 0.2.9

References (50)