Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2021-25741 EUVD-2021-2339GHSA-f5f7-6478-qm6pGO-2022-0910

Symlink Exchange Can Allow Host Filesystem Access

Published Sep 20, 2021 · Updated Sep 16, 2024 · Assigned by kubernetes

Description

A security issue was discovered in Kubernetes where a user may be able to create a container with subpath volume mounts to access files & directories outside of the volume, including on the host filesystem.

Affected products

VendorProductAffectedFixed
Kubernetes Kubernetes unspecified – ≤ 1.19.14, unspecified – ≤ 1.20.10, unspecified – ≤ 1.21.4, unspecified – ≤ 1.22.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 kubernetes 1.20.5+really1.20.2-1 —
Debian 13 kubernetes 1.20.5+really1.20.2-1 —
Debian 12 kubernetes 1.20.5+really1.20.2-1 —
ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 openshift +1 4.6.0-202109180038.p0.git.d5ed12c.assembly.stream.el7 RHSA-2021:3642, RHSA-2021:3635, RHSA-2021:3631
Red Hat OpenShift 3 atomic-openshift +12 3.11.524-1.git.0.2dffce7.el7 RHSA-2021:3646
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250807T150727-1.1 openSUSE-SU-2025:15424-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 istio +1 1.10.4-3.el8 ELSA-2021-9546
Oracle Linux 8 kubeadm +2 1.20.11-4.el8 ELSA-2021-9546
Oracle Linux 8 olcnectl +8 1.3.2-2.el8 ELSA-2021-9546
Oracle Linux 7 istio +1 1.10.4-3.el7 ELSA-2021-9526
Oracle Linux 7 kubeadm +2 1.20.11-4.el7 ELSA-2021-9526
Oracle Linux 7 olcnectl +8 1.3.2-2.el7 ELSA-2021-9526

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go k8s.io/kubernetes < 1.19.15 1.19.15 GHSA-f5f7-6478-qm6p
Go k8s.io/kubernetes >= 1.20.0, < 1.20.11 1.20.11 GHSA-f5f7-6478-qm6p
Go k8s.io/kubernetes >= 1.21.0, < 1.21.5 1.21.5 GHSA-f5f7-6478-qm6p
Go k8s.io/kubernetes >= 1.22.0, < 1.22.2 1.22.2 GHSA-f5f7-6478-qm6p
Go k8s.io/kubernetes < 1.19.15 · >= 1.20.0, < 1.20.11 · >= 1.21.0, < 1.21.5 · >= 1.22.0, < 1.22.2 1.19.15, 1.20.11, 1.21.5, 1.22.2 GO-2022-0910

Advisories 9

References