A memory leak flaw was found in Golang in the RSA encrypting/decrypting code, which might lead to a resource…
Historical advisory recorded 24 Oct 2026 23:17:16 UTC. Read the latest advisory.
nvd · CVE-2024-1394
PublishedA 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2024-1394
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Deferred
Weakness classifications: CWE-401
Original publisher date fields
published: 2024-03-21T13:00:08.037
lastModified: 2026-10-09T00:17:05.827
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON