cve.bz

CVE-2022-4122 Link Following

5.3 mediumEPSS 0.9%Fix available

Medium (5.3). EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/containers/podman/v4 4.5.0.

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

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-4122 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-4122?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-4122?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-4122 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
podman_project:podman4.3.0
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4crw-w8pw-2hmfGogithub.com/containers/podman/v4<4.5.04.5.0
GO-2022-1151Gogithub.com/containers/podmanall versionsno fix published
GO-2022-1151Gogithub.com/containers/podman/v2all versionsno fix published
GO-2022-1151Gogithub.com/containers/podman/v3all versionsno fix published
GO-2022-1151Gogithub.com/containers/podman/v4<4.5.04.5.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14golang-github-containers-buildahno fix listedDEBIAN-CVE-2022-4122
Ubuntu22.04:LTS, 25.10, 26.10 and 2 moregolang-github-containers-buildahno fix listedUBUNTU-CVE-2022-4122
Red Hatenterprise_linux:9::appstreampodman, podman-tests, podman-docker and 6 more2:5.2.2-1.el9RHSA-2024:9102
Red Hatrhel_eus:8.8::appstreamaardvark-dns2:1.5.0-2.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.29.3-1.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreamcockpit-podman0:63.1-1.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.6-1.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreamcontainer-selinux2:2.229.0-1.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.2.0-1.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreamcontainers-common2:1-65.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreamcrit, criu, criu-libs and 5 more0:3.15-4.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreamcrun, crun-debuginfo, crun-debugsource0:1.8.4-2.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreamfuse-overlayfs, fuse-overlayfs-debuginfo, fuse-overlayfs-debugsource0:1.11-1.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
Red Hatrhel_eus:8.8::appstreamlibslirp, libslirp-devel, libslirp-debuginfo and 1 more0:4.4.0-1.module+el8.8.0+21741+dd5be1e7RHSA-2024:2077
9 more for Red Hat in the JSON and on Red Hat's page.
Rocky Linux9podman4:5.2.2-13.el9_5RLSA-2024:9102
Azure Linux3podman5.6.1-2AZL-44526

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

These bugs come about when "podman --remote build ..." is run, thus affecting buildah, but the bug itself needs to be fixed in podman, and ported to Buildah.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8.8 Extended Update Supportcontainer-tools:rhel8-8080020240422101606.0f77c1b7Fixed 2024-04-29RHSA-2024:2077
Red Hat Enterprise Linux 9podman-2:5.2.2-1.el9Fixed 2024-11-12RHSA-2024:9102
Red Hat Enterprise Linux 7buildahOut of support scope
Red Hat Enterprise Linux 7podmanOut of support scope
Red Hat Enterprise Linux 8container-tools:3.0/podmanAffected
Red Hat Enterprise Linux 8container-tools:4.0/podmanWill not fix
Red Hat Enterprise Linux 8container-tools:rhel8/podmanAffected
Red Hat OpenShift Container Platform 3.11podmanUnder investigation
Red Hat OpenShift Container Platform 4buildahAffected
Red Hat OpenShift Container Platform 4podmanUnder investigation

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-4122.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON