cve.bz

CVE-2026-121520 moby buildkit: UNIX Symbolic Link (Symlink) Following

4.5 mediumEPSS 0.2%

Medium (4.5) in moby buildkit. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In BuildKit versions prior to v0.34.1, a malicious client with access to the BuildKit control APIs can submit a build request that sets an extended attribute on a file outside the BuildKit state directory. Extended attributes in the trusted. or security. namespaces may also be set, potentially giving a program on the host elevated privileges. This issue affects build services that accept build requests from untrusted users. The issue is fixed in v0.34.1.

Severity

CVSS 4.0

4.5 medium
CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:H
EPSS
0.2% (unchanged from 0.1% a week ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-11-06. 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-61 UNIX Symbolic Link (Symlink) Following
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-121520 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-121520?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-121520?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-2026-121520 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 CNA's record in the CVE List.

ProductAffected
Moby BuildKitbefore 0.34.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu26.04:LTS, 26.10, Pro:20.04:LTS and 2 moredocker.io, docker.io-appno fix listedUBUNTU-CVE-2026-121520
UbuntuPro:16.04:LTS, Pro:18.04:LTSdocker.iono fix listedUBUNTU-CVE-2026-121520
Red Hathummingbird:1podman, podmansh, podman-docker and 2 more5:6.1.4-1.3.hum1RHSA-2026:95611
Azure Linux3docker-buildxno fix listedAZL-112726
Azure Linux3docker-composeno fix listedAZL-112729
Azure Linux3moby-engineno fix listedAZL-112756

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

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat has evaluated this vulnerability as Important because an attacker capable of dispatching build workloads can alter sensitive file metadata outside the working directory, enabling privilege escalation on the underlying host. The greatest impact occurs in multi-tenant environments, such as shared OpenShift build services where arbitrary or untrusted users are permitted to trigger container image builds. Systems where build execution is restricted to trusted operators or dedicated single-user workstations experience minimal exposure, as users typically already hold administrative control over their local environments.

Red Hat's mitigation

Restrict access to the BuildKit control API socket and network endpoints to trusted administrative operators using strict file system permissions and mutual TLS. In multi-tenant environments, isolate build execution within dedicated, ephemeral virtual machines rather than sharing the daemon across untrusted tenants.

--- CME Mitigation Guidance (2026-11-04) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to confine all extended attribute modifications within BuildKit strictly to the internal state directory and prevent following symlinks outside the build boundary: upgrade to BuildKit v0.34.1 (or the corresponding fixed Red Hat builds), which restrict extended attribute modifications to the BuildKit state directory and prevent following links outside the build boundary, closing all 3 injection vectors (crafted build request submitting xattrs targeting paths outside the state directory, symbolic link traversal targeting host files for extended attribute modification, manipulation of security and trusted namespace extended attributes). Until patched, this is only a concern on Linux build hosts and multi-tenant build services accepting BuildKit control API requests — Non-Linux platforms are unaffected — so Restrict access to the BuildKit control API socket and network endpoints to trusted operators using strict permissions and mutual TLS, or isolate builds in dedicated ephemeral virtual machines. As a compensating measure, Log setxattr and lsetxattr syscalls targeting sensitive host directories and security namespaces using auditd, Enforce SELinux mandatory access controls to confine the BuildKit daemon from modifying host extended attributes outside its domain, Restrict the BuildKit process filesystem sandbox to explicitly allowed directory hierarchies using Landlock LSM, Use mount and user namespaces to isolate the daemon filesystem view from host extended attribute modifications, Run BuildKit in rootless mode to prevent setting privileged security and trusted namespace extended attributes on the host filesystem, and Drop CAP_SYS_ADMIN and CAP_SETFCAP from the BuildKit daemon to prevent setting sensitive extended attributes. These controls limit blast radius and contain exploitation, but they do not fix the underlying path traversal and symlink following defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1301 Path Traversal Prevention (Canonicalization) (high)

ProductPackageStateAdvisory
Red Hat Hardened Imagespodman-main-6.1.4-1.3.hum1Fixed 2026-11-05RHSA-2026:95611
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Not affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Not affected
Compliance Operatorcompliance/openshift-compliance-must-gather-rhel8Not affected
Confidential Compute Attestationbuild-of-trustee/trustee-must-gather-rhel9Not affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-must-gather-rhel9Not affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-podvm-builder-rhel9Not affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel9-operatorNot affected
DPU kit for NVIDIAdpu-kit-for-nvidia/bluefield-ocp-layer-rhel10Affected
DPU kit for NVIDIAdpu-kit-for-nvidia/must-gather-rhel10Affected
Kernel Module Management Operator for Red Hat Openshiftkmm/kernel-module-management-must-gather-rhel9Not affected
Logical Volume Manager Storagelvms4/lvms-must-gather-rhel8Not affected
Logical Volume Manager Storagelvms4/lvms-must-gather-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-cli-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-discovery-addon-rhel9Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-log-reader-rhel8Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-must-gather-rhel8Not affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-must-gather-rhel8Not affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-must-gather-rhel9Not affected
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-controller-rhel9Not affected
148 more in the JSON and on Red Hat's page.

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-2026-121520.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

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

References

Check your stackJSON