{"cve":"CVE-2024-1394","nvd":{"published":"2024-03-21T13:00:08.037","modified":"2026-10-09T00:17:05.827","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-401"],"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"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:47:51.568503435+00:00"},"epss":{"cve":"CVE-2024-1394","score":0.01533,"percentile":0.74628,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-78hx-gp6g-7mj6","url":"https://osv.dev/vulnerability/GHSA-78hx-gp6g-7mj6","summary":"Memory leaks in code encrypting and verifying RSA payloads","modified":"2026-07-08T06:29:41.110680680Z","packages":[{"ecosystem":"Go","name":"github.com/golang-fips/go","purl":"pkg:golang/github.com/golang-fips/go","ranges":["<=1.22.1"],"fixed":[]},{"ecosystem":"Go","name":"github.com/golang-fips/openssl/v2","purl":"pkg:golang/github.com/golang-fips/openssl/v2","ranges":["<2.0.1"],"fixed":["2.0.1"]},{"ecosystem":"Go","name":"github.com/microsoft/go-crypto-openssl","purl":"pkg:golang/github.com/microsoft/go-crypto-openssl","ranges":["<=0.2.8"],"fixed":[]},{"ecosystem":"Go","name":"github.com/microsoft/go-crypto-openssl/openssl","purl":"pkg:golang/github.com/microsoft/go-crypto-openssl/openssl","ranges":["<0.2.9"],"fixed":["0.2.9"]}]},{"id":"GO-2024-2660","url":"https://osv.dev/vulnerability/GO-2024-2660","summary":"Memory leak in github.com/golang-fips/openssl/v2 and github.com/microsoft/go-crypto-openssl","modified":"2026-08-05T10:56:58.284002220Z","packages":[{"ecosystem":"Go","name":"github.com/golang-fips/openssl/v2","purl":"pkg:golang/github.com/golang-fips/openssl/v2","ranges":["<2.0.1"],"fixed":["2.0.1"]},{"ecosystem":"Go","name":"github.com/microsoft/go-crypto-openssl","purl":"pkg:golang/github.com/microsoft/go-crypto-openssl","ranges":["<0.2.9"],"fixed":["0.2.9"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}