CVEfocus › CVE database › CVE-2022-4122

CVE-2022-4122

CVSS 5.3 MediumEPSS 1.0% (higher than 60% of CVEs)Published 2022-12-08Updated 2025-04-22Assigner: redhat

A vulnerability was found in buildah. Incorrect following of symlinks while reading .containerignore and .dockerignore results in information disclosure.

CWE-59

What to do

Fixed builds are available from Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Go, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
14Fix pending
1Under investigation
6Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-containers-buildahFix pendingUBUNTU-CVE-2022-4122
Ubuntu 26.04golang-github-containers-buildahFix pendingUBUNTU-CVE-2022-4122
Ubuntu 25.10golang-github-containers-buildahWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-4122
Ubuntu 24.04golang-github-containers-buildahFix pendingUBUNTU-CVE-2022-4122
Ubuntu 22.04golang-github-containers-buildahUnder investigationUBUNTU-CVE-2022-4122
Debian 14golang-github-containers-buildahWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2022-4122
Debian 13golang-github-containers-buildahWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2022-4122
Debian 12golang-github-containers-buildahWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2022-4122
Red Hat Enterprise Linux 9podmanFixed2:5.2.2-1.el9RHSA-2024:9102
Red Hat Enterprise Linux 9podman-dockerFixed2:5.2.2-1.el9RHSA-2024:9102
Red Hat Enterprise Linux 9podman-pluginsFixed2:5.2.2-1.el9RHSA-2024:9102
Red Hat Enterprise Linux 9podman-remoteFixed2:5.2.2-1.el9RHSA-2024:9102
Red Hat Enterprise Linux 9podman-testsFixed2:5.2.2-1.el9RHSA-2024:9102
Red Hat Enterprise Linux 8podmanFix pending
Affected
Red Hat Enterprise Linux 8podman-catatonitFix pending
Affected
Red Hat Enterprise Linux 8podman-dockerFix pending
Affected
Red Hat Enterprise Linux 8podman-gvproxyFix pending
Affected
Red Hat Enterprise Linux 8podman-manpagesFix pending
Affected
Red Hat Enterprise Linux 8podman-pluginsFix pending
Affected
Red Hat Enterprise Linux 8podman-remoteFix pending
Affected
Red Hat Enterprise Linux 8podman-testsFix pending
Affected
Red Hat Enterprise Linux 7buildahWill not fix
Out of support scope
Red Hat Enterprise Linux 7podmanWill not fix
Out of support scope
Rocky Linux 9podmanFixed4:5.2.2-13.el9_5RLSA-2024:9102
Go librarygithub.com/containers/podmanFix pendingGO-2022-1151
Go librarygithub.com/containers/podman/v2Fix pendingGO-2022-1151
Go librarygithub.com/containers/podman/v3Fix pendingGO-2022-1151
Go librarygithub.com/containers/podman/v4Fixed4.5.0GHSA-4crw-w8pw-2hmf

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.