CVE-2024-1753
published 2024-03-18CVE-2024-1753: A flaw was found in Buildah (and subsequently Podman Build) which allows containers to mount arbitrary locations on the host filesystem into build containers…
PriorityP348high8.6CVSS 3.1
AVLACLPRNUIRSCCHIHAH
EPSS
0.49%
38.9th percentile
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.
Affected
16 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-github-containers-buildah | < golang-github-containers-buildah 1.33.7+ds1-1 (forky) | golang-github-containers-buildah 1.33.7+ds1-1 (forky) |
| github.com | containers_buildah | >= 0 < 1.35.1 | 1.35.1 |
| github.com | containers_buildah | >= 1.24.0 < 1.24.7 | 1.24.7 |
| github.com | containers_buildah | >= 1.25.0 < 1.27.4 | 1.27.4 |
| github.com | containers_buildah | >= 1.28.0 < 1.29.3 | 1.29.3 |
| github.com | containers_buildah | >= 1.30.0 < 1.31.5 | 1.31.5 |
| github.com | containers_buildah | >= 1.32.0 < 1.32.3 | 1.32.3 |
| github.com | containers_buildah | >= 1.33.0 < 1.33.7 | 1.33.7 |
| github.com | containers_buildah | >= 1.34.0 < 1.34.3 | 1.34.3 |
| github.com | containers_buildah | >= 1.35.0 < 1.35.1 | 1.35.1 |
| github.com | containers_podman_v4 | >= 0 < 4.9.4 | 4.9.4 |
| github.com | containers_podman_v5 | >= 0 < 5.0.1 | 5.0.1 |
| msrc | azl3_libcontainers-common_20240213-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_libcontainers-common_20240213-3_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
CVSS provenance
nvdv3.18.6HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
ghsa8.6HIGH
osv8.6HIGH
vendor_debian8.6HIGH
vendor_msrc8.6HIGH
vendor_redhat8.6HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Podman affected by CVE-2024-1753 container escape at build time
ghsa·2024-03-28·CVSS 8.6
CVE-2024-1753 [HIGH] CWE-269 Podman affected by CVE-2024-1753 container escape at build time
Podman affected by CVE-2024-1753 container escape at build time
### Impact
_What kind of vulnerability is it? Who is impacted?_
Users running containers with root privileges allowing a container to run with read/write access to the host system files when selinux is not enabled. With selinux enabled, some read access is allowed.
### Patches
From @nalind . This is a patch for Buildah (https://github.com/containers/buildah). Once fixed there, Buildah will be vendored into Podman.
```
# cat /root/cve-2024-1753.diff
--- internal/volumes/volumes.go
+++ internal/volumes/volumes.go
@@ -11,6 +11,7 @@ import (
"errors"
+ "github.com/containers/buildah/copier"
"github.com/containers/buildah/define"
"github.com/containers/buildah/internal"
internalParse "github.com/containers/buildah/internal/pa
OSV
Podman affected by CVE-2024-1753 container escape at build time
osv·2024-03-28·CVSS 8.6
CVE-2024-1753 [HIGH] Podman affected by CVE-2024-1753 container escape at build time
Podman affected by CVE-2024-1753 container escape at build time
### Impact
_What kind of vulnerability is it? Who is impacted?_
Users running containers with root privileges allowing a container to run with read/write access to the host system files when selinux is not enabled. With selinux enabled, some read access is allowed.
### Patches
From @nalind . This is a patch for Buildah (https://github.com/containers/buildah). Once fixed there, Buildah will be vendored into Podman.
```
# cat /root/cve-2024-1753.diff
--- internal/volumes/volumes.go
+++ internal/volumes/volumes.go
@@ -11,6 +11,7 @@ import (
"errors"
+ "github.com/containers/buildah/copier"
"github.com/containers/buildah/define"
"github.com/containers/buildah/internal"
internalParse "github.com/containers/buildah/internal/pa
OSV
Container escape at build time in github.com/containers/buildah
osv·2024-03-22
CVE-2024-1753 Container escape at build time in github.com/containers/buildah
Container escape at build time in github.com/containers/buildah
A crafted container file can use a dummy image with a symbolic link to the host filesystem as a mount source and cause the mount operation to mount the host filesystem during a build-time RUN step. The commands inside the RUN step will then have read-write access to the host filesystem.
OSV
Container escape at build time
osv·2024-03-19
CVE-2024-1753 [HIGH] Container escape at build time
Container escape at build time
### Impact
_What kind of vulnerability is it? Who is impacted?_
Users running containers with root privileges allowing a container to run with read/write access to the host system files when selinux is not enabled. With selinux enabled, some read access is allowed.
### Patches
From @nalind
```
# cat /root/cve-2024-1753.diff
--- internal/volumes/volumes.go
+++ internal/volumes/volumes.go
@@ -11,6 +11,7 @@ import (
"errors"
+ "github.com/containers/buildah/copier"
"github.com/containers/buildah/define"
"github.com/containers/buildah/internal"
internalParse "github.com/containers/buildah/internal/parse"
@@ -189,7 +190,11 @@ func GetBindMount(ctx *types.SystemContext, args []string, contextDir string, st
// buildkit parity: support absolute path for sources
GHSA
Container escape at build time
ghsa·2024-03-19
CVE-2024-1753 [HIGH] CWE-22 Container escape at build time
Container escape at build time
### Impact
_What kind of vulnerability is it? Who is impacted?_
Users running containers with root privileges allowing a container to run with read/write access to the host system files when selinux is not enabled. With selinux enabled, some read access is allowed.
### Patches
From @nalind
```
# cat /root/cve-2024-1753.diff
--- internal/volumes/volumes.go
+++ internal/volumes/volumes.go
@@ -11,6 +11,7 @@ import (
"errors"
+ "github.com/containers/buildah/copier"
"github.com/containers/buildah/define"
"github.com/containers/buildah/internal"
internalParse "github.com/containers/buildah/internal/parse"
@@ -189,7 +190,11 @@ func GetBindMount(ctx *types.SystemContext, args []string, contextDir string, st
// buildkit parity: support absolute path for sources
OSV
CVE-2024-1753: A flaw was found in Buildah (and subsequently Podman Build) which allows containers to mount arbitrary locations on the host filesystem into build con
osv·2024-03-18·CVSS 8.6
CVE-2024-1753 [HIGH] CVE-2024-1753: A flaw was found in Buildah (and subsequently Podman Build) which allows containers to mount arbitrary locations on the host filesystem into build con
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.
Red Hat
buildah: full container escape at build time
vendor_redhat·2024-03-18·CVSS 8.6
CVE-2024-1753 [HIGH] CWE-59 buildah: full container escape at build time
buildah: full container escape at build time
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.
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 mou
Microsoft
Buildah: full container escape at build time
vendor_msrc·2024-03-12·CVSS 8.6
CVE-2024-1753 [HIGH] CWE-59 Buildah: full container escape at build time
Buildah: full container escape at build time
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
redhat: redhat
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsof
Debian
CVE-2024-1753: golang-github-containers-buildah - A flaw was found in Buildah (and subsequently Podman Build) which allows contain...
vendor_debian·2024·CVSS 8.6
CVE-2024-1753 [HIGH] CVE-2024-1753: golang-github-containers-buildah - A flaw was found in Buildah (and subsequently Podman Build) which allows contain...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 1.33.7+ds1-1)
sid: resolved (fixed in 1.33.7+ds1-1)
trixie: resolved (fixed in 1.33.7+ds1-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://access.redhat.com/errata/RHSA-2024:2049https://access.redhat.com/errata/RHSA-2024:2055https://access.redhat.com/errata/RHSA-2024:2064https://access.redhat.com/errata/RHSA-2024:2066https://access.redhat.com/errata/RHSA-2024:2077https://access.redhat.com/errata/RHSA-2024:2084https://access.redhat.com/errata/RHSA-2024:2089https://access.redhat.com/errata/RHSA-2024:2090https://access.redhat.com/errata/RHSA-2024:2097https://access.redhat.com/errata/RHSA-2024:2098https://access.redhat.com/errata/RHSA-2024:2548https://access.redhat.com/errata/RHSA-2024:2645https://access.redhat.com/errata/RHSA-2024:2669https://access.redhat.com/errata/RHSA-2024:2672https://access.redhat.com/errata/RHSA-2024:2784https://access.redhat.com/errata/RHSA-2024:2877https://access.redhat.com/errata/RHSA-2024:3254https://access.redhat.com/security/cve/CVE-2024-1753https://bugzilla.redhat.com/show_bug.cgi?id=2265513https://github.com/containers/buildah/security/advisories/GHSA-pmf3-c36m-g5cfhttps://github.com/containers/podman/security/advisories/GHSA-874v-pj72-92f3https://pkg.go.dev/vuln/GO-2024-2658https://access.redhat.com/errata/RHSA-2024:2049https://access.redhat.com/errata/RHSA-2024:2055https://access.redhat.com/errata/RHSA-2024:2064https://access.redhat.com/errata/RHSA-2024:2066https://access.redhat.com/errata/RHSA-2024:2077https://access.redhat.com/errata/RHSA-2024:2084https://access.redhat.com/errata/RHSA-2024:2089https://access.redhat.com/errata/RHSA-2024:2090https://access.redhat.com/errata/RHSA-2024:2097https://access.redhat.com/errata/RHSA-2024:2098https://access.redhat.com/errata/RHSA-2024:2548https://access.redhat.com/errata/RHSA-2024:2645https://access.redhat.com/errata/RHSA-2024:2669https://access.redhat.com/errata/RHSA-2024:2672https://access.redhat.com/errata/RHSA-2024:2784https://access.redhat.com/errata/RHSA-2024:2877https://access.redhat.com/errata/RHSA-2024:3254https://access.redhat.com/security/cve/CVE-2024-1753https://bugzilla.redhat.com/show_bug.cgi?id=2265513https://github.com/containers/buildah/security/advisories/GHSA-pmf3-c36m-g5cfhttps://github.com/containers/podman/security/advisories/GHSA-874v-pj72-92f3https://lists.fedoraproject.org/archives/list/[email protected]/message/FCRZVUDOFM5CPREQKBEU2VK2QK62PSBP/https://lists.fedoraproject.org/archives/list/[email protected]/message/KOYMVMQ7RWMDTSKQTBO734BE3WQPI2AJ/https://lists.fedoraproject.org/archives/list/[email protected]/message/ZVBSVZGVABPYIHK5HZM472NPGWMI7WXH/
2024-03-18
Published