CVE-2024-11218

Podman: buildah: container breakout by using --jobs=2 and a race condition when building a malicious containerfile

8.6 high EPSS 0.41%

Published 22 Jan 2025 Updated 26 Nov 2026 CNA: redhat

Check your servers for CVE-2024-11218

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-11218 affects podman, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

A vulnerability was found in `podman build` and `buildah.` This issue occurs in a container breakout by using --jobs=2 and a race condition when building a malicious Containerfile. SELinux might mitigate it, but even with SELinux on, it still allows the enumeration of files and directories on the host.

Severity (CVSS)

8.6 high CVSS 3.1 from redhat (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
required: a user has to do something, such as open a link or a file
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.41%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 26.4% of all scored CVEs. Scores of 30 Nov 2026.

The assessment of CISA (SSVC, 22 Jan 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-269 Improper Privilege Management

Affected products

As the CNA lists them. The first 100 of 544 entries; all of them are in the record on cve.org.

ProductVersions
buildah
package buildah
affected before 1.33.12
affected from 1.35.0, before 1.35.5
affected from 1.37.0, before 1.37.6
affected from 1.38.0, before 1.38.1
Other versions: unaffected
Red Hat Enterprise Linux 8
package container-tools:rhel8
unaffected 8100020250124120243.afee755d and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
package container-tools:rhel8
unaffected 8060020250203202123.3b538bd8 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Telecommunications Update Service
package container-tools:rhel8
unaffected 8060020250203202123.3b538bd8 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
package container-tools:rhel8
unaffected 8060020250203202123.3b538bd8 and later
Other versions: affected
Red Hat Enterprise Linux 8.8 Extended Update Support
package container-tools:rhel8
unaffected 8080020250207173112.0f77c1b7 and later
Other versions: affected
Red Hat Enterprise Linux 9
package podman
unaffected 4:5.2.2-13.el9_5 and later
Other versions: affected
Red Hat Enterprise Linux 9
package buildah
unaffected 2:1.37.6-1.el9_5 and later
Other versions: affected
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package podman
unaffected 2:4.2.0-6.el9_0 and later
Other versions: affected
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package buildah
unaffected 1:1.26.9-1.el9_0 and later
Other versions: affected
Red Hat Enterprise Linux 9.2 Extended Update Support
package buildah
unaffected 1:1.29.5-1.el9_2 and later
Other versions: affected
Red Hat Enterprise Linux 9.2 Extended Update Support
package podman
unaffected 2:4.4.1-22.el9_2 and later
Other versions: affected
Red Hat Enterprise Linux 9.4 Extended Update Support
package buildah
unaffected 2:1.33.12-2.el9_4 and later
Other versions: affected
Red Hat Enterprise Linux 9.4 Extended Update Support
package podman
unaffected 4:4.9.4-17.el9_4 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.12
package openshift/ose-rhel-coreos-8
unaffected 412.86.202503052321-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.12
package podman
unaffected 3:4.2.0-13.rhaos4.12.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.12
package podman
unaffected 3:4.2.0-13.rhaos4.12.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.13
package buildah
unaffected 1:1.29.5-1.rhaos4.13.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.13
package podman
unaffected 3:4.4.1-16.rhaos4.13.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.13
package openshift/ose-rhel-coreos-9
unaffected 413.92.202503112237-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.13
package buildah
unaffected 1:1.29.5-1.rhaos4.13.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.13
package podman
unaffected 3:4.4.1-16.rhaos4.13.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.14
package podman
unaffected 3:4.4.1-22.rhaos4.14.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.14
package buildah
unaffected 1:1.29.5-1.rhaos4.14.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.14
package podman
unaffected 3:4.4.1-22.rhaos4.14.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.14
package openshift/ose-rhel-coreos-9
unaffected 414.92.202503100617-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.14
package buildah
unaffected 1:1.29.5-1.rhaos4.14.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.15
package podman
unaffected 3:4.4.1-33.rhaos4.15.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.15
package buildah
unaffected 1:1.29.5-1.rhaos4.15.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.15
package podman
unaffected 3:4.4.1-33.rhaos4.15.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.15
package openshift/ose-rhel-coreos-9
unaffected 415.92.202503060749-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.15
package buildah
unaffected 1:1.29.5-1.rhaos4.15.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.16
package podman
unaffected 4:4.9.4-13.rhaos4.16.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.16
package buildah
unaffected 2:1.33.12-1.rhaos4.16.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.16
package podman
unaffected 4:4.9.4-13.rhaos4.16.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.16
package openshift/ose-rhel-coreos-9
unaffected 416.94.202502180249-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.16
package buildah
unaffected 2:1.33.12-1.rhaos4.16.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.17
package podman
unaffected 5:5.2.2-2.rhaos4.17.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.17
package buildah
unaffected 2:1.33.12-1.rhaos4.17.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.17
package podman
unaffected 5:5.2.2-2.rhaos4.17.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.17
package buildah
unaffected 2:1.33.12-1.rhaos4.17.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.17
package openshift/ose-rhel-coreos-9
unaffected 417.94.202504080421-0 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package buildah
unaffected 2:1.33.7-4.rhaos4.18.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package conmon
unaffected 3:2.1.12-7.rhaos4.18.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package conmon-rs
unaffected 0:0.6.6-0.rhaos4.18.el9.1 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package containers-common
unaffected 3:1-86.rhaos4.18.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package container-selinux
unaffected 4:2.234.2-2.rhaos4.18.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package cri-o
unaffected 0:1.31.5-4.rhaos4.18.gitdad78d5.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package cri-tools
unaffected 0:1.31.1-3.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package crudini
unaffected 0:0.9.3-4.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package crun
unaffected 0:1.19.1-2.rhaos4.18.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package golang-github-prometheus-promu
unaffected 0:0.16.0-20.gitf6c51c9.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package haproxy
unaffected 0:2.8.10-1.rhaos4.17.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package ignition
unaffected 0:2.18.0-6.rhaos4.16.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package kernel
unaffected 0:5.14.0-427.50.2.el9_4 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package libreswan
unaffected 0:4.6-3.el9_0.3 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package openshift
unaffected 0:4.18.0-202502051001.p0.gacb9630.assembly.stream.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package openshift4-aws-iso
unaffected 0:4.18.0-202502110932.p0.gd2acdd5.assembly.stream.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package openshift-ansible
unaffected 0:4.18.0-202411201308.p0.g006fe4e.assembly.stream.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package openshift-clients
unaffected 0:4.18.0-202502032331.p0.ga50d4c0.assembly.stream.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package ose-aws-ecr-image-credential-provider
unaffected 0:4.18.0-202411201308.p0.gc395190.assembly.stream.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package ose-azure-acr-image-credential-provider
unaffected 0:4.18.0-202412111238.p0.g9c24d76.assembly.stream.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package ose-gcp-gcr-image-credential-provider
unaffected 0:4.18.0-202501220601.p0.g6ea2356.assembly.stream.el8 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package ovn24.09
unaffected 0:24.09.2-14.el9fdp and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package podman
unaffected 5:5.2.2-5.rhaos4.18.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package pyOpenSSL
unaffected 0:20.0.1-2.el9.1 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package pysnmp
unaffected 0:4.4.12-6.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package pysnmp-lextudio
unaffected 0:5.0.26-2.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-alembic
unaffected 0:1.6.0-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-amqp
unaffected 0:5.0.6-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-automaton
unaffected 0:3.2.0-0.20240522151206.9255778.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-autopage
unaffected 0:0.4.0-1.el9.2 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-bcrypt
unaffected 0:3.1.6-3.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-beautifulsoup4
unaffected 0:4.9.3-2.el9.1 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-binary-memcached
unaffected 0:0.31.1-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-cachetools
unaffected 0:3.1.0-4.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-cinderclient
unaffected 0:9.4.0-0.20231214204912.f1f14df.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-click
unaffected 0:7.1.2-5.el9.1 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-cliff
unaffected 0:4.7.0-0.20240708130156.b75afa0.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-cmd2
unaffected 0:1.4.0-2.el9.1 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-colorama
unaffected 0:0.4.1-2.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-construct
unaffected 0:2.10.56-2.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-contextlib2
unaffected 0:0.6.0.post1-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-ddt
unaffected 0:1.6.0-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-debtcollector
unaffected 0:3.0.0-0.20240522153257.0e6ce1c.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-decorator
unaffected 0:4.4.2-6.0.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-defusedxml
unaffected 0:0.7.1-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-dogpile-cache
unaffected 0:1.1.5-3.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-dracclient
unaffected 0:8.0.0-0.20231214182834.9c7499c.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-editor
unaffected 0:1.0.4-5.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-eventlet
unaffected 0:0.33.1-6.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-fasteners
unaffected 0:0.18-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-fixtures
unaffected 0:4.0.1-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-flask
unaffected 2:2.0.1-4.el9.2 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-funcsigs
unaffected 0:1.0.2-17.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-futurist
unaffected 0:3.0.0-0.20240522153313.4e14db5.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-gevent
unaffected 0:21.1.2-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-glanceclient
unaffected 1:4.4.0-0.20231214201927.62e6fc8.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-greenlet
unaffected 0:1.1.3-1.el9 and later
Other versions: affected
Red Hat OpenShift Container Platform 4.18
package python-gunicorn
unaffected 0:20.0.4-2.el9 and later
Other versions: affected

Is my server affected?

Find the installed version of podman 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 podman
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-11218 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-11218

RHEL, Rocky, Alma, Fedora

rpm -q podman
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-11218

Alpine

apk list --installed | grep -i podman

With 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-11218
trivy image --scanners vuln IMAGE | grep CVE-2024-11218

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

20 more

Other references

Source: the record CVE-2024-11218 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.