CVE-2024-1394
Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads
Check your servers for CVE-2024-1394
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-1394 affects containernetworking-plugins, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.53%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 75.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 21 Mar 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-401 Missing Release of Memory after Effective Lifetime
Affected products
As the CNA lists them. The first 100 of 206 entries; all of them are in the record on cve.org.
| Product | Versions |
|---|---|
|
Red Hat Ansible Automation Platform 2.4 for RHEL 8
package
receptor |
unaffected 0:1.4.5-1.el8ap and later
Other versions: affected
|
|
Red Hat Ansible Automation Platform 2.4 for RHEL 8
package
receptor |
unaffected 0:1.4.5-1.el8ap and later
Other versions: affected
|
|
Red Hat Ansible Automation Platform 2.4 for RHEL 8
package
receptor |
unaffected 0:1.4.5-1.el8ap and later
Other versions: affected
|
|
Red Hat Ansible Automation Platform 2.4 for RHEL 9
package
receptor |
unaffected 0:1.4.5-1.el9ap and later
Other versions: affected
|
|
Red Hat Ansible Automation Platform 2.4 for RHEL 9
package
receptor |
unaffected 0:1.4.5-1.el9ap and later
Other versions: affected
|
|
Red Hat Ansible Automation Platform 2.4 for RHEL 9
package
receptor |
unaffected 0:1.4.5-1.el9ap and later
Other versions: affected
|
|
Red Hat Developer Tools
package
go-toolset-1.19-golang |
unaffected 0:1.19.13-6.el7_9 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
go-toolset:rhel8 |
unaffected 8090020240313170136.26eb71ac and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
grafana-pcp |
unaffected 0:5.1.1-2.el8_9 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
grafana |
unaffected 0:9.2.10-8.el8_9 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
grafana |
unaffected 0:9.2.10-16.el8_10 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
container-tools:rhel8 |
unaffected 8100020240808093819.afee755d and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
osbuild-composer |
unaffected 0:101-2.el8_10 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
golang |
unaffected 0:1.20.12-2.el9_3 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
grafana |
unaffected 0:9.2.10-8.el9_3 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
grafana-pcp |
unaffected 0:5.1.1-2.el9_3 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
golang |
unaffected 0:1.21.9-2.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
grafana |
unaffected 0:9.2.10-16.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
grafana-pcp |
unaffected 0:5.1.1-2.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
buildah |
unaffected 2:1.33.7-3.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
podman |
unaffected 4:4.9.4-5.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
gvisor-tap-vsock |
unaffected 6:0.7.3-4.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
skopeo |
unaffected 2:1.14.3-3.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
containernetworking-plugins |
unaffected 1:1.4.0-4.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
runc |
unaffected 4:1.1.12-3.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
osbuild-composer |
unaffected 0:132-1.el9 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package
podman |
unaffected 2:4.2.0-4.el9_0 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package
containernetworking-plugins |
unaffected 1:1.0.1-6.el9_0 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Extended Update Support
package
golang |
unaffected 0:1.19.13-7.el9_2 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Extended Update Support
package
podman |
unaffected 2:4.4.1-20.el9_2 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
buildah |
unaffected 1:1.23.4-5.2.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
butane |
unaffected 0:0.16.0-2.2.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
containernetworking-plugins |
unaffected 1:1.4.0-1.1.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
cri-o |
unaffected 0:1.25.3-5.2.rhaos4.12.git44a2cb2.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
cri-tools |
unaffected 0:1.25.0-2.2.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
ignition |
unaffected 0:2.14.0-5.2.rhaos4.12.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
openshift-clients |
unaffected 0:4.12.0-202403251017.p0.gd4c9e3c.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
podman |
unaffected 3:4.2.0-7.2.rhaos4.12.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
runc |
unaffected 3:1.1.6-5.2.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
skopeo |
unaffected 2:1.9.4-3.2.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
buildah |
unaffected 1:1.23.4-5.2.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
butane |
unaffected 0:0.16.0-2.2.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
containernetworking-plugins |
unaffected 1:1.4.0-1.1.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
cri-o |
unaffected 0:1.25.3-5.2.rhaos4.12.git44a2cb2.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
cri-tools |
unaffected 0:1.25.0-2.2.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
ignition |
unaffected 0:2.14.0-5.2.rhaos4.12.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
openshift-clients |
unaffected 0:4.12.0-202403251017.p0.gd4c9e3c.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
podman |
unaffected 3:4.2.0-7.2.rhaos4.12.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
runc |
unaffected 3:1.1.6-5.2.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
skopeo |
unaffected 2:1.9.4-3.2.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
buildah |
unaffected 1:1.29.1-2.2.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
containernetworking-plugins |
unaffected 1:1.4.0-1.1.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
cri-o |
unaffected 0:1.26.5-11.1.rhaos4.13.git919cc6e.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
cri-tools |
unaffected 0:1.26.0-4.1.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
ignition |
unaffected 0:2.15.0-7.1.rhaos4.13.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
openshift-clients |
unaffected 0:4.13.0-202404020737.p0.gd192e90.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
podman |
unaffected 3:4.4.1-5.2.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
runc |
unaffected 4:1.1.12-1.1.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
skopeo |
unaffected 2:1.11.2-2.2.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
buildah |
unaffected 1:1.29.1-2.2.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
containernetworking-plugins |
unaffected 1:1.4.0-1.1.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
cri-o |
unaffected 0:1.26.5-11.1.rhaos4.13.git919cc6e.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
cri-tools |
unaffected 0:1.26.0-4.1.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
ignition |
unaffected 0:2.15.0-7.1.rhaos4.13.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
openshift-clients |
unaffected 0:4.13.0-202404020737.p0.gd192e90.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
podman |
unaffected 3:4.4.1-5.2.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
runc |
unaffected 4:1.1.12-1.1.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
skopeo |
unaffected 2:1.11.2-2.2.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
butane |
unaffected 0:0.19.0-1.3.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
containernetworking-plugins |
unaffected 1:1.4.0-1.2.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
cri-o |
unaffected 0:1.27.4-6.1.rhaos4.14.gitd09e4c0.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
cri-tools |
unaffected 0:1.27.0-3.1.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
ignition |
unaffected 0:2.16.2-2.1.rhaos4.14.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
openshift-clients |
unaffected 0:4.14.0-202403261640.p0.gf7b14a9.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
ose-aws-ecr-image-credential-provider |
unaffected 0:4.14.0-202403251040.p0.g607e2dd.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
podman |
unaffected 3:4.4.1-11.3.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
skopeo |
unaffected 2:1.11.2-10.3.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
buildah |
unaffected 1:1.29.1-10.4.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
butane |
unaffected 0:0.19.0-1.4.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
conmon |
unaffected 3:2.1.7-3.4.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
containernetworking-plugins |
unaffected 1:1.4.0-1.3.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
cri-o |
unaffected 0:1.27.4-7.2.rhaos4.14.git082c52f.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
cri-tools |
unaffected 0:1.27.0-3.2.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
ignition |
unaffected 0:2.16.2-2.2.rhaos4.14.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
openshift |
unaffected 0:4.14.0-202404160939.p0.g7bee54d.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
openshift4-aws-iso |
unaffected 0:4.14.0-202404151639.p0.gd2acdd5.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
openshift-ansible |
unaffected 0:4.14.0-202404151639.p0.g81558cc.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
openshift-clients |
unaffected 0:4.14.0-202404151639.p0.gf7b14a9.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
openshift-kuryr |
unaffected 0:4.14.0-202404151639.p0.g8926a29.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
ose-aws-ecr-image-credential-provider |
unaffected 0:4.14.0-202404151639.p0.g607e2dd.assembly.stream.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
podman |
unaffected 3:4.4.1-11.4.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
runc |
unaffected 4:1.1.12-1.2.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
skopeo |
unaffected 2:1.11.2-10.4.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
microshift |
unaffected 0:4.14.19-202403280926.p0.gc1f8861.assembly.4.14.19.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
butane |
unaffected 0:0.19.0-1.3.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
containernetworking-plugins |
unaffected 1:1.4.0-1.2.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
cri-o |
unaffected 0:1.27.4-6.1.rhaos4.14.gitd09e4c0.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
cri-tools |
unaffected 0:1.27.0-3.1.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
ignition |
unaffected 0:2.16.2-2.1.rhaos4.14.el9 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
openshift-clients |
unaffected 0:4.14.0-202403261640.p0.gf7b14a9.assembly.stream.el8 and later
Other versions: affected
|
Is my server affected?
Find the installed version of containernetworking-plugins and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i containernetworking-plugins
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-1394 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-1394RHEL, Rocky, Alma, Fedora
rpm -q containernetworking-plugins
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-1394Alpine
apk list --installed | grep -i containernetworking-pluginsWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-1394
trivy image --scanners vuln IMAGE | grep CVE-2024-1394
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2024:1462 access.redhat.com · vendor advisory
- RHSA-2024:1468 access.redhat.com · vendor advisory
- RHSA-2024:1472 access.redhat.com · vendor advisory
- RHSA-2024:1501 access.redhat.com · vendor advisory
- RHSA-2024:1502 access.redhat.com · vendor advisory
- RHSA-2024:1561 access.redhat.com · vendor advisory
- RHSA-2024:1563 access.redhat.com · vendor advisory
- RHSA-2024:1566 access.redhat.com · vendor advisory
- RHSA-2024:1567 access.redhat.com · vendor advisory
- RHSA-2024:1574 access.redhat.com · vendor advisory
- RHSA-2024:1640 access.redhat.com · vendor advisory
- RHSA-2024:1644 access.redhat.com · vendor advisory
29 more
- RHSA-2024:1646 access.redhat.com · vendor advisory
- RHSA-2024:1763 access.redhat.com · vendor advisory
- RHSA-2024:1897 access.redhat.com · vendor advisory
- RHSA-2024:2562 access.redhat.com · vendor advisory
- RHSA-2024:2568 access.redhat.com · vendor advisory
- RHSA-2024:2569 access.redhat.com · vendor advisory
- RHSA-2024:2729 access.redhat.com · vendor advisory
- RHSA-2024:2730 access.redhat.com · vendor advisory
- RHSA-2024:2767 access.redhat.com · vendor advisory
- RHSA-2024:3265 access.redhat.com · vendor advisory
- RHSA-2024:3352 access.redhat.com · vendor advisory
- RHSA-2024:4146 access.redhat.com · vendor advisory
- RHSA-2024:4371 access.redhat.com · vendor advisory
- RHSA-2024:4378 access.redhat.com · vendor advisory
- RHSA-2024:4379 access.redhat.com · vendor advisory
- RHSA-2024:4502 access.redhat.com · vendor advisory
- RHSA-2024:4581 access.redhat.com · vendor advisory
- RHSA-2024:4591 access.redhat.com · vendor advisory
- RHSA-2024:4672 access.redhat.com · vendor advisory
- RHSA-2024:4699 access.redhat.com · vendor advisory
- RHSA-2024:4761 access.redhat.com · vendor advisory
- RHSA-2024:4762 access.redhat.com · vendor advisory
- RHSA-2024:4960 access.redhat.com · vendor advisory
- RHSA-2024:5258 access.redhat.com · vendor advisory
- RHSA-2024:5634 access.redhat.com · vendor advisory
- RHSA-2024:7262 access.redhat.com · vendor advisory
- RHSA-2025:7118 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2024-1394 access.redhat.com · vdb entry
- RHBZ#2262921 bugzilla.redhat.com · issue tracking
Other references
- https://github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136 github.com
- https://github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6 github.com
- https://github.com/microsoft/go-crypto-openssl/commit/104fe7f6912788d2ad44602f77a0a0a62f1f259f github.com
- https://pkg.go.dev/vuln/GO-2024-2660 pkg.go.dev
- https://vuln.go.dev/ID/GO-2024-2660.json vuln.go.dev
Source: the record CVE-2024-1394 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse