Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads
cve-program · CVE-2024-1394 · Published
No access to your tenant or devices. Every item links to its source. What this means
Historical advisory recorded 29 Oct 2026 07:47:47 UTC. Read the latest advisory.
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.
Read the publisher's advisorySee how the publisher's advisory changed over time. Each link opens the version saved at that time. The publisher's update date can differ from the date shown here.
Each link identifies one complete publisher record. History can include advisories that previously shared an identifier; an identifier removed by a publisher no longer establishes a current relationship. A historical link shows only that record and earlier saved versions. Failed checks and unchanged reads do not create new versions.
cve-program · CVE-2024-1394 · Published
cve-program · CVE-2024-1394 · Published
This historical link shows only this version and versions saved before it. Browse all advisory history.