cve.bz

CVE-2021-25741 kubernetes kubernetes: Improper Input Validation

8.1 highEPSS 8.0%Fix available

High (8.1) in kubernetes kubernetes. EPSS 8.0% estimated probability of exploitation activity in the next 30 days. Fixed in k8s.io/kubernetes 1.19.15, 1.20.11, 1.21.5.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
8.0% (unchanged from 8.0% a week ago; 8.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-08-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-552 Files or Directories Accessible to External Parties
CWE-20 Improper Input Validation
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
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-2021-25741 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-25741?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-25741?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-2021-25741 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
Kubernetesthrough 1.19.14
Kubernetesthrough 1.20.10
Kubernetesthrough 1.21.4
Kubernetesthrough 1.22.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f5f7-6478-qm6pGok8s.io/kubernetes<1.19.151.19.15
GHSA-f5f7-6478-qm6pGok8s.io/kubernetes>=1.20.0 <1.20.111.20.11
GHSA-f5f7-6478-qm6pGok8s.io/kubernetes>=1.21.0 <1.21.51.21.5
GHSA-f5f7-6478-qm6pGok8s.io/kubernetes>=1.22.0 <1.22.21.22.2
GO-2022-0910Gok8s.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

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14kubernetes1.20.5+really1.20.2-1DEBIAN-CVE-2021-25741
Red Hatopenshift:3.11::el7atomic-openshift, atomic-openshift-pod, atomic-openshift-node and 10 more0:3.11.524-1.git.0.2dffce7.el7RHSA-2021:3646
Red Hatopenshift:4.6::el7openshift, openshift-hyperkube0:4.6.0-202109180038.p0.git.d5ed12c.assembly.stream.el7RHSA-2021:3642
Red Hatopenshift:4.6::el8openshift, openshift-hyperkube0:4.6.0-202109180038.p0.git.d5ed12c.assembly.stream.el8RHSA-2021:3642
Red Hatopenshift:4.7::el7openshift, openshift-hyperkube0:4.7.0-202109172126.p0.git.bbbc079.assembly.stream.el7RHSA-2021:3635
Red Hatopenshift:4.7::el8openshift, openshift-hyperkube0:4.7.0-202109172126.p0.git.bbbc079.assembly.stream.el8RHSA-2021:3635
Red Hatopenshift:4.8::el7openshift, openshift-hyperkube0:4.8.0-202109180335.p0.git.a620f50.assembly.stream.el7RHSA-2021:3631
Red Hatopenshift:4.8::el8openshift, openshift-hyperkube0:4.8.0-202109180335.p0.git.a620f50.assembly.stream.el8RHSA-2021:3631
openSUSETumbleweedgovulncheck-vulndb0.0.20250807T150727-1.1openSUSE-SU-2025:15424-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

OpenShift Container Platform runs with SELinux in enforcing mode, which reduces the impact of this vulnerability, but does not completely prevent it from being exploited.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 3.11atomic-openshift-0:3.11.524-1.git.0.2dffce7.el7Fixed 2021-09-30RHSA-2021:3646
Red Hat OpenShift Container Platform 4.6openshift-0:4.6.0-202109180038.p0.git.d5ed12c.assembly.stream.el7Fixed 2021-09-29RHSA-2021:3642
Red Hat OpenShift Container Platform 4.7openshift-0:4.7.0-202109172126.p0.git.bbbc079.assembly.stream.el7Fixed 2021-09-29RHSA-2021:3635
Red Hat OpenShift Container Platform 4.8openshift-0:4.8.0-202109180335.p0.git.a620f50.assembly.stream.el7Fixed 2021-09-28RHSA-2021:3631
Red Hat OpenShift Container Platform 4openshift4/ose-alibaba-cloud-csi-driver-container-rhel8Affected

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-2021-25741.

Attack patterns (CAPEC)

  • CAPEC-150 Collect Data from Common Resource Locations Severity: Medium
  • CAPEC-639 Probe System Files Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON