{"id":"CVE-2024-1394","aliases":["GHSA-78hx-gp6g-7mj6","GO-2024-2660"],"url":"https://o3.security/vulnerability/CVE-2024-1394","summary":"Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads","details":"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.","published":"2024-03-21T12:16:38.790Z","modified":"2026-07-15T01:48:55.224971588Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/golang-fips/go","fixedVersion":null},{"ecosystem":"Go","name":"github.com/golang-fips/openssl/v2","fixedVersion":"2.0.1"},{"ecosystem":"Go","name":"github.com/microsoft/go-crypto-openssl","fixedVersion":null},{"ecosystem":"Go","name":"github.com/microsoft/go-crypto-openssl/openssl","fixedVersion":"0.2.9"}],"fix":{"url":"https://github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136","label":"golang-fips/openssl@85d31d0"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-2660"},{"type":"WEB","url":"https://vuln.go.dev/ID/GO-2024-2660.json"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1462"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1468"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1472"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1501"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1502"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1561"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1563"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1566"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1567"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1574"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1640"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1644"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1646"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1763"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1897"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2562"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2568"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2569"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2729"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2730"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2767"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:3265"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:3352"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4146"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4371"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4378"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4379"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4502"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4581"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4591"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4672"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4699"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4761"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4762"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4960"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:5258"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:5634"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:7262"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:7118"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-1394"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1394.json"},{"type":"ADVISORY","url":"https://github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1394"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2262921"},{"type":"FIX","url":"https://github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136"},{"type":"FIX","url":"https://github.com/microsoft/go-crypto-openssl/commit/104fe7f6912788d2ad44602f77a0a0a62f1f259f"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:48:55.224971588Z"}}