CVE-2020-10696 Path Traversal in Buildah
Attackers can write arbitrary files to a user's system by tricking them into building a malicious container image with Buildah.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-10696?
CVE-2020-10696 is a high-severity path traversal vulnerability in Redhat Enterprise Linux, published on 31 Mar 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A path traversal flaw was found in Buildah in versions before 1.14.5. This flaw allows an attacker to trick a user into building a malicious container image hosted on an HTTP(s) server and then write files to the user's system anywhere that the user has permissions.
Weakness: CWE-22
Which versions are affected by CVE-2020-10696?
3 open source packages ship an affected version, including github.com/containers/buildah. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/containers/buildah Go | All versions | 1.14.4 |
github.com/containers/buildah Go | All versions | 1.14.4 |
github.com/containers/buildah Go | All versions | 1.14.4 |
Linux distribution packages (37)
cockpit-podman AlmaLinux:8 | All versions | 11-1.module_el8.5.0+108+00865455 |
cockpit-podman AlmaLinux:8 | All versions | 11-1.module_el8.5.0+2635+e4386a39 |
container-selinux AlmaLinux:8 | All versions | 2:2.124.0-1.gitf958d0c.module_el8.3.0+2044+12421f43 |
containernetworking-plugins AlmaLinux:8 | All versions | 0.8.3-4.module_el8.5.0+108+00865455 |
containernetworking-plugins AlmaLinux:8 | All versions | 0.8.3-4.module_el8.5.0+2635+e4386a39 |
crit AlmaLinux:8 | All versions | 3.12-9.module_el8.3.0+2044+12421f43 |
crit AlmaLinux:8 | All versions | 3.12-9.module_el8.3.0+2044+12421f43 |
crit AlmaLinux:8 | All versions | 3.12-9.module_el8.3.0+2044+12421f43 |
crit AlmaLinux:8 | All versions | 3.12-9.module_el8.4.0+2496+12421f43 |
crit AlmaLinux:8 | All versions | 3.12-9.module_el8.4.0+2496+12421f43 |
crit AlmaLinux:8 | All versions | 3.12-9.module_el8.4.0+2496+12421f43 |
crit AlmaLinux:8 | All versions | 3.12-9.module_el8.5.0+119+9a9ec082 |
crit AlmaLinux:8 | All versions | 3.12-9.module_el8.5.0+119+9a9ec082 |
crit AlmaLinux:8 | All versions | 3.12-9.module_el8.5.0+119+9a9ec082 |
criu AlmaLinux:8 | All versions | 3.12-9.module_el8.3.0+2044+12421f43 |
criu AlmaLinux:8 | All versions | 3.12-9.module_el8.3.0+2044+12421f43 |
criu AlmaLinux:8 | All versions | 3.12-9.module_el8.3.0+2044+12421f43 |
criu AlmaLinux:8 | All versions | 3.12-9.module_el8.4.0+2496+12421f43 |
criu AlmaLinux:8 | All versions | 3.12-9.module_el8.4.0+2496+12421f43 |
criu AlmaLinux:8 | All versions | 3.12-9.module_el8.4.0+2496+12421f43 |
criu AlmaLinux:8 | All versions | 3.12-9.module_el8.5.0+119+9a9ec082 |
criu AlmaLinux:8 | All versions | 3.12-9.module_el8.5.0+119+9a9ec082 |
criu AlmaLinux:8 | All versions | 3.12-9.module_el8.5.0+119+9a9ec082 |
fuse-overlayfs AlmaLinux:8 | All versions | 0.3-5.module_el8.3.0+2044+12421f43 |
fuse-overlayfs AlmaLinux:8 | All versions | 0.3-5.module_el8.4.0+2496+12421f43 |
fuse-overlayfs AlmaLinux:8 | All versions | 0.3-5.module_el8.5.0+119+9a9ec082 |
oci-systemd-hook AlmaLinux:8 | All versions | 1:0.1.15-2.git2d0b8a3.module_el8.3.0+2044+12421f43 |
oci-systemd-hook AlmaLinux:8 | All versions | 1:0.1.15-2.git2d0b8a3.module_el8.4.0+2496+12421f43 |
oci-systemd-hook AlmaLinux:8 | All versions | 1:0.1.15-2.git2d0b8a3.module_el8.5.0+119+9a9ec082 |
oci-umount AlmaLinux:8 | All versions | 2:2.3.4-2.git87f9237.module_el8.3.0+2044+12421f43 |
oci-umount AlmaLinux:8 | All versions | 2:2.3.4-2.git87f9237.module_el8.4.0+2496+12421f43 |
oci-umount AlmaLinux:8 | All versions | 2:2.3.4-2.git87f9237.module_el8.5.0+119+9a9ec082 |
python-podman-api AlmaLinux:8 | All versions | 1.2.0-0.2.gitd0a45fe.module_el8.5.0+108+00865455 |
python-podman-api AlmaLinux:8 | All versions | 1.2.0-0.2.gitd0a45fe.module_el8.5.0+108+00865455 |
python-podman-api AlmaLinux:8 | All versions | 1.2.0-0.2.gitd0a45fe.module_el8.5.0+2635+e4386a39 |
python-podman-api AlmaLinux:8 | All versions | 1.2.0-0.2.gitd0a45fe.module_el8.5.0+2635+e4386a39 |
python3-criu AlmaLinux:8 | All versions | 3.12-9.module_el8.3.0+2044+12421f43 |
Products include Buildah Project Buildah, Redhat Enterprise Linux, Redhat Openshift Container Platform.
How do I fix CVE-2020-10696?
Upgrade github.com/containers/buildah to 1.14.4 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2020-10696 being exploited?
There is no known exploitation of CVE-2020-10696 in the wild and no public exploit code.
Other vulnerabilities in Redhat Enterprise Linux
- CVE-2024-9675 Buildah: buildah allows arbitrary directory mount
- CVE-2022-2990 Buildah's incorrect handling of the supplementary groups may lead to data disclosure, modification
- CVE-2022-27651 Non-empty default inheritable capabilities for linux container in Buildah
- CVE-2019-10214 containers/image library Insufficiently Protects Credentials
- CVE-2021-3602 Buildah processes using chroot isolation may leak environment values to intermediate processes
Sources
Also known as ALSA-2020:1926, ALSA-2020:1931, ALSA-2020:1932, CLEANSTART-2024-DG53593, DEBIAN-CVE-2020-10696, GHSA-fx8w-mjvm-hvpc and 10 more.