CVE-2024-1394
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/golang-fips/goGo | <= 1.22.1 | — |
github.com/golang-fips/openssl/v2Go | < 2.0.1 | 2.0.1 |
github.com/microsoft/go-crypto-opensslGo | <= 0.2.8 | — |
github.com/microsoft/go-crypto-openssl/opensslGo | < 0.2.9 | 0.2.9 |
Affected products
62- Range: v0.1.0, v0.2.0, v0.2.1, …
- ghsa-coords61 versionspkg:golang/github.com/golang-fips/gopkg:golang/github.com/golang-fips/openssl/v2pkg:golang/github.com/microsoft/go-crypto-opensslpkg:golang/github.com/microsoft/go-crypto-openssl/opensslpkg:rpm/almalinux/aardvark-dnspkg:rpm/almalinux/buildahpkg:rpm/almalinux/buildah-testspkg:rpm/almalinux/cockpit-podmanpkg:rpm/almalinux/conmonpkg:rpm/almalinux/containernetworking-pluginspkg:rpm/almalinux/containers-commonpkg:rpm/almalinux/container-selinuxpkg:rpm/almalinux/critpkg:rpm/almalinux/criupkg:rpm/almalinux/criu-develpkg:rpm/almalinux/criu-libspkg:rpm/almalinux/crunpkg:rpm/almalinux/delvepkg:rpm/almalinux/fuse-overlayfspkg:rpm/almalinux/golangpkg:rpm/almalinux/golang-binpkg:rpm/almalinux/golang-docspkg:rpm/almalinux/golang-miscpkg:rpm/almalinux/golang-srcpkg:rpm/almalinux/golang-testspkg:rpm/almalinux/go-toolsetpkg:rpm/almalinux/grafanapkg:rpm/almalinux/grafana-pcppkg:rpm/almalinux/grafana-selinuxpkg:rpm/almalinux/gvisor-tap-vsockpkg:rpm/almalinux/libslirppkg:rpm/almalinux/libslirp-develpkg:rpm/almalinux/netavarkpkg:rpm/almalinux/oci-seccomp-bpf-hookpkg:rpm/almalinux/osbuildpkg:rpm/almalinux/osbuild-composerpkg:rpm/almalinux/osbuild-composer-corepkg:rpm/almalinux/osbuild-composer-workerpkg:rpm/almalinux/osbuild-depsolve-dnfpkg:rpm/almalinux/osbuild-luks2pkg:rpm/almalinux/osbuild-lvm2pkg:rpm/almalinux/osbuild-ostreepkg:rpm/almalinux/osbuild-selinuxpkg:rpm/almalinux/podmanpkg:rpm/almalinux/podman-catatonitpkg:rpm/almalinux/podman-dockerpkg:rpm/almalinux/podman-gvproxypkg:rpm/almalinux/podman-pluginspkg:rpm/almalinux/podman-remotepkg:rpm/almalinux/podman-testspkg:rpm/almalinux/python3-criupkg:rpm/almalinux/python3-osbuildpkg:rpm/almalinux/python3-podmanpkg:rpm/almalinux/runcpkg:rpm/almalinux/skopeopkg:rpm/almalinux/skopeo-testspkg:rpm/almalinux/slirp4netnspkg:rpm/almalinux/toolboxpkg:rpm/almalinux/toolbox-testspkg:rpm/almalinux/udicapkg:rpm/rocky-linux/golang?distro=rocky-linux-9&epoch=0
<= 1.22.1+ 60 more
- (no CPE)range: <= 1.22.1
- (no CPE)range: < 2.0.1
- (no CPE)range: <= 0.2.8
- (no CPE)range: < 0.2.9
- (no CPE)range: < 2:1.10.0-1.module_el8.10.0+3792+03eaed9c
- (no CPE)range: < 2:1.33.7-3.el9_4
- (no CPE)range: < 2:1.33.7-3.el9_4
- (no CPE)range: < 84.1-1.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 3:2.1.10-1.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 1:1.4.0-4.el9_4
- (no CPE)range: < 2:1-82.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 2:2.229.0-2.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 3.18-5.module_el8.10.0+3845+87b84552
- (no CPE)range: < 3.18-5.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 3.18-5.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 3.18-5.module_el8.10.0+3845+87b84552
- (no CPE)range: < 1.14.3-2.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 1.20.2-1.module_el8.9.0+3642+43318da8
- (no CPE)range: < 1.13-1.module_el8.10.0+3859+6ae70a0e
- (no CPE)range: < 1.20.12-2.el9_3
- (no CPE)range: < 1.20.12-2.el9_3
- (no CPE)range: < 1.20.12-2.el9_3
- (no CPE)range: < 1.20.12-2.el9_3
- (no CPE)range: < 1.20.12-2.el9_3
- (no CPE)range: < 1.20.12-2.el9_3
- (no CPE)range: < 1.20.12-2.el9_3
- (no CPE)range: < 9.2.10-8.el9_3.alma.1
- (no CPE)range: < 5.1.1-2.el9_3.alma.1
- (no CPE)range: < 9.2.10-16.el9_4.alma.1
- (no CPE)range: < 6:0.7.3-4.el9_4.alma.1
- (no CPE)range: < 4.4.0-2.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4.4.0-2.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 2:1.10.3-1.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 1.2.10-1.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 141-1.el9.alma.1
- (no CPE)range: < 101-2.el8_10.alma.1
- (no CPE)range: < 101-2.el8_10.alma.1
- (no CPE)range: < 101-2.el8_10.alma.1
- (no CPE)range: < 141-1.el9.alma.1
- (no CPE)range: < 141-1.el9.alma.1
- (no CPE)range: < 141-1.el9.alma.1
- (no CPE)range: < 141-1.el9.alma.1
- (no CPE)range: < 141-1.el9.alma.1
- (no CPE)range: < 4:4.9.4-5.el9_4
- (no CPE)range: < 4:4.9.4-12.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:4.9.4-5.el9_4
- (no CPE)range: < 4:4.9.4-12.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:4.9.4-5.el9_4
- (no CPE)range: < 4:4.9.4-5.el9_4
- (no CPE)range: < 4:4.9.4-5.el9_4
- (no CPE)range: < 3.18-5.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 141-1.el9.alma.1
- (no CPE)range: < 4.9.0-2.module_el8.10.0+3876+e55593a8
- (no CPE)range: < 4:1.1.12-3.el9_4
- (no CPE)range: < 2:1.14.3-3.el9_4
- (no CPE)range: < 2:1.14.3-3.el9_4
- (no CPE)range: < 1.2.3-1.module_el8.10.0+3845+87b84552
- (no CPE)range: < 0.0.99.5-2.module_el8.10.0+3845+87b84552
- (no CPE)range: < 0.0.99.5-2.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 0.2.6-21.module_el8.10.0+3858+6ad51f9f
- (no CPE)range: < 0:1.21.9-2.el9_4
Patches
Vulnerability mechanics
References
50- github.com/advisories/GHSA-78hx-gp6g-7mj6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-1394ghsaADVISORY
- access.redhat.com/errata/RHSA-2024:1462nvdWEB
- access.redhat.com/errata/RHSA-2024:1468nvdWEB
- access.redhat.com/errata/RHSA-2024:1472nvdWEB
- access.redhat.com/errata/RHSA-2024:1501nvdWEB
- access.redhat.com/errata/RHSA-2024:1502nvdWEB
- access.redhat.com/errata/RHSA-2024:1561nvdWEB
- access.redhat.com/errata/RHSA-2024:1563nvdWEB
- access.redhat.com/errata/RHSA-2024:1566nvdWEB
- access.redhat.com/errata/RHSA-2024:1567nvdWEB
- access.redhat.com/errata/RHSA-2024:1574nvdWEB
- access.redhat.com/errata/RHSA-2024:1640nvdWEB
- access.redhat.com/errata/RHSA-2024:1644nvdWEB
- access.redhat.com/errata/RHSA-2024:1646nvdWEB
- access.redhat.com/errata/RHSA-2024:1763nvdWEB
- access.redhat.com/errata/RHSA-2024:1897nvdWEB
- access.redhat.com/errata/RHSA-2024:2562nvdWEB
- access.redhat.com/errata/RHSA-2024:2568nvdWEB
- access.redhat.com/errata/RHSA-2024:2569nvdWEB
- access.redhat.com/errata/RHSA-2024:2729nvdWEB
- access.redhat.com/errata/RHSA-2024:2730nvdWEB
- access.redhat.com/errata/RHSA-2024:2767nvdWEB
- access.redhat.com/errata/RHSA-2024:3265nvdWEB
- access.redhat.com/errata/RHSA-2024:3352nvdWEB
- access.redhat.com/errata/RHSA-2024:4146nvdWEB
- access.redhat.com/errata/RHSA-2024:4371nvdWEB
- access.redhat.com/errata/RHSA-2024:4378nvdWEB
- access.redhat.com/errata/RHSA-2024:4379nvdWEB
- access.redhat.com/errata/RHSA-2024:4502nvdWEB
- access.redhat.com/errata/RHSA-2024:4581nvdWEB
- access.redhat.com/errata/RHSA-2024:4591nvdWEB
- access.redhat.com/errata/RHSA-2024:4672nvdWEB
- access.redhat.com/errata/RHSA-2024:4699nvdWEB
- access.redhat.com/errata/RHSA-2024:4761nvdWEB
- access.redhat.com/errata/RHSA-2024:4762nvdWEB
- access.redhat.com/errata/RHSA-2024:4960nvdWEB
- access.redhat.com/errata/RHSA-2024:5258nvdWEB
- access.redhat.com/errata/RHSA-2024:5634nvdWEB
- access.redhat.com/errata/RHSA-2024:7262nvdWEB
- access.redhat.com/security/cve/CVE-2024-1394nvdWEB
- bugzilla.redhat.com/show_bug.cginvdWEB
- github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136nvdWEB
- github.com/golang-fips/openssl/releases/tag/v2.0.1ghsaWEB
- github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6nvdWEB
- github.com/microsoft/go-crypto-openssl/commit/104fe7f6912788d2ad44602f77a0a0a62f1f259fnvdWEB
- github.com/microsoft/go-crypto-openssl/releases/tag/v0.2.9ghsaWEB
- pkg.go.dev/vuln/GO-2024-2660nvdWEB
- vuln.go.dev/ID/GO-2024-2660.jsonnvdWEB
- access.redhat.com/errata/RHSA-2025:7118nvd
News mentions
0No linked articles in our index yet.