CVE-2024-1753
Buildah: buildah: container escape via improper bind mount validation
Check your servers for CVE-2024-1753
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-1753 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.
Description
A flaw was found in Buildah (and subsequently Podman Build) which allows containers to mount arbitrary locations on the host filesystem into build containers. A malicious Containerfile can use a dummy image with a symbolic link to the root filesystem as a mount source and cause the mount operation to mount the host root filesystem inside the RUN step. The commands inside the RUN step will then have read-write access to the host filesystem, allowing for full container escape at build time.
Severity (CVSS)
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.50%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 35.6% of all scored CVEs. Scores of 29 Nov 2026.
The assessment of CISA (SSVC, 2 May 2024):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-59 Improper Link Resolution Before File Access
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
buildah
package
buildah |
affected 4.15.0
Other versions: unaffected
|
|
Red Hat Enterprise Linux 8
package
container-tools:4.0 |
unaffected 8090020240413110917.d7b6f4b7 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
container-tools:rhel8 |
unaffected 8090020240417184044.e7857ab1 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
container-tools:rhel8 |
unaffected 8100020240419145834.afee755d and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.6 Extended Update Support
package
container-tools:rhel8 |
unaffected 8060020240422155330.3b538bd8 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.6 Extended Update Support
package
container-tools:4.0 |
unaffected 8060020240419071711.2e213529 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8.8 Extended Update Support
package
container-tools:rhel8 |
unaffected 8080020240422101606.0f77c1b7 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
buildah |
unaffected 1:1.31.5-1.el9_3 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
podman |
unaffected 4:4.9.4-3.el9_4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.0 Extended Update Support
package
buildah |
unaffected 1:1.26.7-1.el9_0 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.0 Extended Update Support
package
podman |
unaffected 2:4.2.0-3.el9_0 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Extended Update Support
package
buildah |
unaffected 1:1.29.3-1.el9_2 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Extended Update Support
package
podman |
unaffected 2:4.4.1-16.el9_2 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
package
oci-seccomp-bpf-hook |
unaffected 0:1.2.10-1.el9_2.1 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
package
podman |
unaffected 2:5.8.2-1.el9_2.1 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.12
package
podman |
unaffected 3:4.4.1-3.2.rhaos4.12.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
podman |
unaffected 3:4.4.1-5.3.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
podman |
unaffected 3:4.4.1-7.3.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
podman |
unaffected 3:4.4.1-5.3.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
podman |
unaffected 3:4.4.1-7.3.rhaos4.13.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
podman |
unaffected 3:4.4.1-13.4.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
podman |
unaffected 3:4.4.1-13.4.rhaos4.14.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.15
package
podman |
unaffected 3:4.4.1-23.2.rhaos4.15.el8 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.15
package
podman |
unaffected 3:4.4.1-23.2.rhaos4.15.el8 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 7
package
buildah |
unaffected the record does not list versions
|
|
Red Hat Enterprise Linux 7
package
podman |
unknown the record does not list versions
|
|
Red Hat OpenShift Container Platform 3.11
package
podman |
unknown the record does not list versions
|
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-1753 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-1753RHEL, Rocky, Alma, Fedora
rpm -q podman
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-1753Alpine
apk list --installed | grep -i podmanWith 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-1753
trivy image --scanners vuln IMAGE | grep CVE-2024-1753
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:2049 access.redhat.com · vendor advisory
- RHSA-2024:2055 access.redhat.com · vendor advisory
- RHSA-2024:2064 access.redhat.com · vendor advisory
- RHSA-2024:2066 access.redhat.com · vendor advisory
- RHSA-2024:2077 access.redhat.com · vendor advisory
- RHSA-2024:2084 access.redhat.com · vendor advisory
- RHSA-2024:2089 access.redhat.com · vendor advisory
- RHSA-2024:2090 access.redhat.com · vendor advisory
- RHSA-2024:2097 access.redhat.com · vendor advisory
- RHSA-2024:2098 access.redhat.com · vendor advisory
- RHSA-2024:2548 access.redhat.com · vendor advisory
- RHSA-2024:2645 access.redhat.com · vendor advisory
8 more
- RHSA-2024:2669 access.redhat.com · vendor advisory
- RHSA-2024:2672 access.redhat.com · vendor advisory
- RHSA-2024:2784 access.redhat.com · vendor advisory
- RHSA-2024:2877 access.redhat.com · vendor advisory
- RHSA-2024:3254 access.redhat.com · vendor advisory
- RHSA-2026:102524 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2024-1753 access.redhat.com · vdb entry
- RHBZ#2265513 bugzilla.redhat.com · issue tracking
Other references
- https://github.com/containers/buildah/security/advisories/GHSA-pmf3-c36m-g5cf github.com
- https://github.com/containers/podman/security/advisories/GHSA-874v-pj72-92f3 github.com
- https://pkg.go.dev/vuln/GO-2024-2658 pkg.go.dev
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FCRZVUDOFM5CPREQKBEU2VK2QK62PSBP/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KOYMVMQ7RWMDTSKQTBO734BE3WQPI2AJ/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVBSVZGVABPYIHK5HZM472NPGWMI7WXH/ lists.fedoraproject.org
Source: the record CVE-2024-1753 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