VulnWatch by ve1ve2
high 7.5 EPSS 1.53%

CVE-2024-1394: 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…

Source:
NVD CVE API 2.0
Published:
Fetched:
Updated:
Affects:
openssl

https://nvd.nist.gov/vuln/detail/CVE-2024-1394 ↗

CWE-401

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. References: https://access.redhat.com/errata/RHSA-2024:1462 https://access.redhat.com/errata/RHSA-2024:1468 https://access.redhat.com/errata/RHSA-2024:1472 https://access.redhat.com/errata/RHSA-2024:1501 https://access.redhat.com/errata/RHSA-2024:1502 https://access.redhat.com/errata/RHSA-2024:1561 https://access.redhat.com/errata/RHSA-2024:1563 https://access.redhat.com/errata/RHSA-2024:1566 https://access.redhat.com/errata/RHSA-2024:1567 https://access.redhat.com/errata/RHSA-2024:1574

Linked vulnerabilities (1)

CVE-2024-1394 high 7.5 EPSS 1.53% (p75) NVDCVE.org
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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...

CWE: CWE-401NVD: Deferred