CVE-2020-10696 Path Traversal in Buildah

High 8.8 Published Updated

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.

PackageAffectedFixed in
github.com/containers/buildah GoAll versions1.14.4
github.com/containers/buildah GoAll versions1.14.4
github.com/containers/buildah GoAll versions1.14.4
Linux distribution packages (37)
cockpit-podman AlmaLinux:8All versions11-1.module_el8.5.0+108+00865455
cockpit-podman AlmaLinux:8All versions11-1.module_el8.5.0+2635+e4386a39
container-selinux AlmaLinux:8All versions2:2.124.0-1.gitf958d0c.module_el8.3.0+2044+12421f43
containernetworking-plugins AlmaLinux:8All versions0.8.3-4.module_el8.5.0+108+00865455
containernetworking-plugins AlmaLinux:8All versions0.8.3-4.module_el8.5.0+2635+e4386a39
crit AlmaLinux:8All versions3.12-9.module_el8.3.0+2044+12421f43
crit AlmaLinux:8All versions3.12-9.module_el8.3.0+2044+12421f43
crit AlmaLinux:8All versions3.12-9.module_el8.3.0+2044+12421f43
crit AlmaLinux:8All versions3.12-9.module_el8.4.0+2496+12421f43
crit AlmaLinux:8All versions3.12-9.module_el8.4.0+2496+12421f43
crit AlmaLinux:8All versions3.12-9.module_el8.4.0+2496+12421f43
crit AlmaLinux:8All versions3.12-9.module_el8.5.0+119+9a9ec082
crit AlmaLinux:8All versions3.12-9.module_el8.5.0+119+9a9ec082
crit AlmaLinux:8All versions3.12-9.module_el8.5.0+119+9a9ec082
criu AlmaLinux:8All versions3.12-9.module_el8.3.0+2044+12421f43
criu AlmaLinux:8All versions3.12-9.module_el8.3.0+2044+12421f43
criu AlmaLinux:8All versions3.12-9.module_el8.3.0+2044+12421f43
criu AlmaLinux:8All versions3.12-9.module_el8.4.0+2496+12421f43
criu AlmaLinux:8All versions3.12-9.module_el8.4.0+2496+12421f43
criu AlmaLinux:8All versions3.12-9.module_el8.4.0+2496+12421f43
criu AlmaLinux:8All versions3.12-9.module_el8.5.0+119+9a9ec082
criu AlmaLinux:8All versions3.12-9.module_el8.5.0+119+9a9ec082
criu AlmaLinux:8All versions3.12-9.module_el8.5.0+119+9a9ec082
fuse-overlayfs AlmaLinux:8All versions0.3-5.module_el8.3.0+2044+12421f43
fuse-overlayfs AlmaLinux:8All versions0.3-5.module_el8.4.0+2496+12421f43
fuse-overlayfs AlmaLinux:8All versions0.3-5.module_el8.5.0+119+9a9ec082
oci-systemd-hook AlmaLinux:8All versions1:0.1.15-2.git2d0b8a3.module_el8.3.0+2044+12421f43
oci-systemd-hook AlmaLinux:8All versions1:0.1.15-2.git2d0b8a3.module_el8.4.0+2496+12421f43
oci-systemd-hook AlmaLinux:8All versions1:0.1.15-2.git2d0b8a3.module_el8.5.0+119+9a9ec082
oci-umount AlmaLinux:8All versions2:2.3.4-2.git87f9237.module_el8.3.0+2044+12421f43
oci-umount AlmaLinux:8All versions2:2.3.4-2.git87f9237.module_el8.4.0+2496+12421f43
oci-umount AlmaLinux:8All versions2:2.3.4-2.git87f9237.module_el8.5.0+119+9a9ec082
python-podman-api AlmaLinux:8All versions1.2.0-0.2.gitd0a45fe.module_el8.5.0+108+00865455
python-podman-api AlmaLinux:8All versions1.2.0-0.2.gitd0a45fe.module_el8.5.0+108+00865455
python-podman-api AlmaLinux:8All versions1.2.0-0.2.gitd0a45fe.module_el8.5.0+2635+e4386a39
python-podman-api AlmaLinux:8All versions1.2.0-0.2.gitd0a45fe.module_el8.5.0+2635+e4386a39
python3-criu AlmaLinux:8All versions3.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.

All Redhat Enterprise Linux vulnerabilities

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.

Is CVE-2020-10696 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free