CVE-2024-1394CWE-401

CVE-2024-1394

High · published March 21, 2024

CVSS v3.1
7.5
EPSS
2%
Percentile
74.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.01533 · 74.6th percentile
Weakness
CWE-401 · Missing Release of Memory after Effective Lifetime
Published
2024-03-21T17:00Z
References (87)
https://access.redhat.com/errata/RHSA-2024:1462 · [email protected]https://access.redhat.com/errata/RHSA-2024:1468 · [email protected]https://access.redhat.com/errata/RHSA-2024:1472 · [email protected]https://access.redhat.com/errata/RHSA-2024:1501 · [email protected]https://access.redhat.com/errata/RHSA-2024:1502 · [email protected]https://access.redhat.com/errata/RHSA-2024:1561 · [email protected]https://access.redhat.com/errata/RHSA-2024:1563 · [email protected]https://access.redhat.com/errata/RHSA-2024:1566 · [email protected]https://access.redhat.com/errata/RHSA-2024:1567 · [email protected]https://access.redhat.com/errata/RHSA-2024:1574 · [email protected]https://access.redhat.com/errata/RHSA-2024:1640 · [email protected]https://access.redhat.com/errata/RHSA-2024:1644 · [email protected]https://access.redhat.com/errata/RHSA-2024:1646 · [email protected]https://access.redhat.com/errata/RHSA-2024:1763 · [email protected]https://access.redhat.com/errata/RHSA-2024:1897 · [email protected]https://access.redhat.com/errata/RHSA-2024:2562 · [email protected]https://access.redhat.com/errata/RHSA-2024:2568 · [email protected]https://access.redhat.com/errata/RHSA-2024:2569 · [email protected]https://access.redhat.com/errata/RHSA-2024:2729 · [email protected]https://access.redhat.com/errata/RHSA-2024:2730 · [email protected]https://access.redhat.com/errata/RHSA-2024:2767 · [email protected]https://access.redhat.com/errata/RHSA-2024:3265 · [email protected]https://access.redhat.com/errata/RHSA-2024:3352 · [email protected]https://access.redhat.com/errata/RHSA-2024:4146 · [email protected]https://access.redhat.com/errata/RHSA-2024:4371 · [email protected]https://access.redhat.com/errata/RHSA-2024:4378 · [email protected]https://access.redhat.com/errata/RHSA-2024:4379 · [email protected]https://access.redhat.com/errata/RHSA-2024:4502 · [email protected]https://access.redhat.com/errata/RHSA-2024:4581 · [email protected]https://access.redhat.com/errata/RHSA-2024:4591 · [email protected]https://access.redhat.com/errata/RHSA-2024:4672 · [email protected]https://access.redhat.com/errata/RHSA-2024:4699 · [email protected]https://access.redhat.com/errata/RHSA-2024:4761 · [email protected]https://access.redhat.com/errata/RHSA-2024:4762 · [email protected]https://access.redhat.com/errata/RHSA-2024:4960 · [email protected]https://access.redhat.com/errata/RHSA-2024:5258 · [email protected]https://access.redhat.com/errata/RHSA-2024:5634 · [email protected]https://access.redhat.com/errata/RHSA-2024:7262 · [email protected]https://access.redhat.com/errata/RHSA-2025:7118 · [email protected]https://access.redhat.com/security/cve/CVE-2024-1394 · [email protected]https://bugzilla.redhat.com/show_bug.cgi?id=2262921 · [email protected]https://github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136 · [email protected]https://github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6 · [email protected]https://github.com/microsoft/go-crypto-openssl/commit/104fe7f6912788d2ad44602f77a0a0a62f1f259f · [email protected]https://pkg.go.dev/vuln/GO-2024-2660 · [email protected]https://vuln.go.dev/ID/GO-2024-2660.json · [email protected]https://access.redhat.com/errata/RHSA-2024:1462 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1468 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1472 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1501 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1502 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1561 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1563 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1566 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1567 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1574 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1640 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1644 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1646 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1763 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:1897 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:2562 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:2568 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:2569 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:2729 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:2730 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:2767 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:3265 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:3352 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4146 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4371 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4378 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4379 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4502 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4581 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4591 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4672 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4699 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4761 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2024:4762 · af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/security/cve/CVE-2024-1394 · af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=2262921 · af854a3a-2127-422b-91ae-364da2661108https://github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136 · af854a3a-2127-422b-91ae-364da2661108https://github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6 · af854a3a-2127-422b-91ae-364da2661108https://github.com/microsoft/go-crypto-openssl/commit/104fe7f6912788d2ad44602f77a0a0a62f1f259f · af854a3a-2127-422b-91ae-364da2661108https://pkg.go.dev/vuln/GO-2024-2660 · af854a3a-2127-422b-91ae-364da2661108https://vuln.go.dev/ID/GO-2024-2660.json · af854a3a-2127-422b-91ae-364da2661108
EPSS history
Timeline
  • 21 MAR 12:16Z
    Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads
    cvelistv5