# CVE-2024-1753: Buildah: buildah: container escape via improper bind mount validation

> Attackers can escape containers during build time by mounting the host filesystem via symbolic links, gaining read-write access to the host.

- **Severity:** High 8.6 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 18 Mar 2024
- **Updated:** 24 Sep 2026
- **Also known as:** ALSA-2024:2055, ALSA-2024:2084, ALSA-2024:2098, AZL-36899, AZL-42506, AZL-42509, AZL-42546, AZL-42561, BELL-CVE-2024-1753, CLEANSTART-2024-XJ51471, DEBIAN-CVE-2024-1753, GHSA-874v-pj72-92f3, GHSA-pmf3-c36m-g5cf, GO-2024-2658, RHSA-2024:2055, RHSA-2024:2064, RHSA-2024:2066, RHSA-2024:2084, RHSA-2024:2089, RHSA-2024:2090, RHSA-2024:2097, RHSA-2024:2098, RHSA-2024:2645, RLSA-2024:2084, RLSA-2024:2098, SUSE-SU-2024:1058-1, SUSE-SU-2024:1059-1, SUSE-SU-2024:1142-1, SUSE-SU-2024:1143-1, SUSE-SU-2024:1144-1, SUSE-SU-2024:1145-1, SUSE-SU-2024:1146-1, UBUNTU-CVE-2024-1753, openSUSE-SU-2024:13784-1, openSUSE-SU-2024:13826-1

## What is CVE-2024-1753?

CVE-2024-1753 is a high-severity path traversal vulnerability in Red Hat Enterprise Linux 7, published on 18 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official 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.

Weakness: CWE-59 (Improper Link Resolution Before File Access)

## Which versions are affected by CVE-2024-1753?

21 open source packages ship an affected version, including github.com/containers/buildah, github.com/containers/podman/v4 and github.com/containers/podman/v5.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/containers/buildah` | Go | All versions | 1.35.1 |
| `github.com/containers/buildah` | Go | From 1.24.0 | 1.24.7 |
| `github.com/containers/buildah` | Go | From 1.24.0 | 1.24.7 |
| `github.com/containers/buildah` | Go | From 1.25.0 | 1.27.4 |
| `github.com/containers/buildah` | Go | From 1.25.0 | 1.27.4 |
| `github.com/containers/buildah` | Go | From 1.28.0 | 1.29.3 |
| `github.com/containers/buildah` | Go | From 1.28.0 | 1.29.3 |
| `github.com/containers/buildah` | Go | From 1.30.0 | 1.31.5 |
| `github.com/containers/buildah` | Go | From 1.30.0 | 1.31.5 |
| `github.com/containers/buildah` | Go | From 1.32.0 | 1.32.3 |
| `github.com/containers/buildah` | Go | From 1.32.0 | 1.32.3 |
| `github.com/containers/buildah` | Go | From 1.33.0 | 1.33.7 |
| `github.com/containers/buildah` | Go | From 1.33.0 | 1.33.7 |
| `github.com/containers/buildah` | Go | From 1.34.0 | 1.34.3 |
| `github.com/containers/buildah` | Go | From 1.34.0 | 1.34.3 |
| `github.com/containers/buildah` | Go | From 1.35.0 | 1.35.1 |
| `github.com/containers/buildah` | Go | From 1.35.0 | 1.35.1 |
| `github.com/containers/podman/v4` | Go | All versions | 4.9.4 |
| `github.com/containers/podman/v4` | Go | All versions | 4.9.4 |
| `github.com/containers/podman/v5` | Go | All versions | 5.0.1 |
| `github.com/containers/podman/v5` | Go | All versions | 5.0.1 |
| `aardvark-dns` | AlmaLinux:8 | All versions | 2:1.0.1-38.module_el8.9.0+3627+db8ec155 |
| `aardvark-dns` | AlmaLinux:8 | All versions | 2:1.0.1-38.module_el8.9.0+3821+d7d58347 |
| `aardvark-dns` | AlmaLinux:8 | All versions | 2:1.7.0-1.module_el8.9.0+3657+d86e192f |
| `buildah` | AlmaLinux:8 | All versions | 1:1.24.7-1.module_el8.9.0+3821+d7d58347.alma.1 |
| `buildah` | AlmaLinux:8 | All versions | 1:1.31.5-1.module_el8.9.0+3823+03810114 |
| `buildah-tests` | AlmaLinux:8 | All versions | 1:1.24.7-1.module_el8.9.0+3821+d7d58347.alma.1 |
| `buildah-tests` | AlmaLinux:8 | All versions | 1:1.31.5-1.module_el8.9.0+3823+03810114 |
| `cockpit-podman` | AlmaLinux:8 | All versions | 46-1.module_el8.7.0+3344+5bcd850f |
| `cockpit-podman` | AlmaLinux:8 | All versions | 75-1.module_el8.9.0+3797+9f808d65 |
| `conmon` | AlmaLinux:8 | All versions | 2:2.1.4-2.module_el8.9.0+3627+db8ec155 |
| `conmon` | AlmaLinux:8 | All versions | 2:2.1.4-2.module_el8.9.0+3821+d7d58347 |
| `conmon` | AlmaLinux:8 | All versions | 3:2.1.8-1.module_el8.9.0+3755+bc5f21db |
| `container-selinux` | AlmaLinux:8 | All versions | 2:2.205.0-3.module_el8.9.0+3687+dcd7ef8f |
| `container-selinux` | AlmaLinux:8 | All versions | 2:2.229.0-1.module_el8.9.0+3755+bc5f21db |
| `containernetworking-plugins` | AlmaLinux:8 | All versions | 1:1.1.1-6.module_el8.9.0+3711+04fcca5e |
| `containernetworking-plugins` | AlmaLinux:8 | All versions | 1:1.1.1-6.module_el8.9.0+3821+d7d58347 |
| `containernetworking-plugins` | AlmaLinux:8 | All versions | 1:1.3.0-8.module_el8.9.0+3717+81096349 |
| `containers-common` | AlmaLinux:8 | All versions | 2:1-38.module_el8.9.0+3627+db8ec155 |
| `containers-common` | AlmaLinux:8 | All versions | 2:1-38.module_el8.9.0+3821+d7d58347 |

## How do I fix CVE-2024-1753?

Upgrade github.com/containers/buildah to a fixed version for your release line: 1.35.1, 1.24.7, 1.27.4 or 1.29.3.

## Is CVE-2024-1753 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-1753 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-1753 and fix it if it is affected.

What it is: CVE-2024-1753 is a high-severity path traversal vulnerability in Red Hat Enterprise Linux 7, published on 18 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-1753 exists.

Affected packages and fixed versions:
- github.com/containers/buildah (Go): affected all versions; fixed in 1.35.1
- github.com/containers/buildah (Go): affected from 1.24.0; fixed in 1.24.7
- github.com/containers/buildah (Go): affected from 1.24.0; fixed in 1.24.7
- github.com/containers/buildah (Go): affected from 1.25.0; fixed in 1.27.4
- github.com/containers/buildah (Go): affected from 1.25.0; fixed in 1.27.4
- github.com/containers/buildah (Go): affected from 1.28.0; fixed in 1.29.3
- github.com/containers/buildah (Go): affected from 1.28.0; fixed in 1.29.3
- github.com/containers/buildah (Go): affected from 1.30.0; fixed in 1.31.5
- github.com/containers/buildah (Go): affected from 1.30.0; fixed in 1.31.5
- github.com/containers/buildah (Go): affected from 1.32.0; fixed in 1.32.3
- github.com/containers/buildah (Go): affected from 1.32.0; fixed in 1.32.3
- github.com/containers/buildah (Go): affected from 1.33.0; fixed in 1.33.7

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-1753/ (Markdown: https://insights.sbomify.com/CVE-2024-1753/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-1753
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-1753
- OSV: https://osv.dev/vulnerability/CVE-2024-1753

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-1753/
Summaries are generated and may contain mistakes; the official description above is the record.
