CVE-2022-4123 Buildah (as part of Podman) vulnerable to Path Traversal

Low 3.3 Published Updated

Attackers can disclose local paths and subdirectories via incorrect absolute path traversal in Buildah, impacting confidentiality.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-4123?

CVE-2022-4123 is a low-severity path traversal vulnerability in Fedoraproject Fedora, published on 8 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in Buildah. The local path and the lowest subdirectory may be disclosed due to incorrect absolute path traversal, resulting in an impact to confidentiality.

Weakness: CWE-22, CWE-23

Which versions are affected by CVE-2022-4123?

3 open source packages ship an affected version, including github.com/containers/podman/v4. It affects 2 products.

PackageAffectedFixed in
github.com/containers/podman/v4 GoFrom 4.1.0-rc1None
github.com/containers/podman/v4 GoFrom 4.1.0-rc1 to 4.4.1None
github.com/containers/podman/v4 GoFrom 4.1.0-rc1 to 4.4.1None

Products include Fedoraproject Fedora, Podman Project Podman.

How do I fix CVE-2022-4123?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-4123 being exploited?

There is no known exploitation of CVE-2022-4123 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-11587, AZL-36977, DEBIAN-CVE-2022-4123, GHSA-rprg-4v7q-87v7, GO-2022-1159, UBUNTU-CVE-2022-4123.

Is CVE-2022-4123 in your software?

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

Check your SBOMs for free