cve.bz

CVE-2024-1394

7.5 highEPSS 1.5%

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 3.1
7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.5% chance of exploitation in the next 30 days; higher than 74% of CVEs (scores of 2026-10-25)
CWE
CWE-401
Published
Modified
Record from
the NVD, synced

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

References

Check your stackJSON