Host filesystem access via subPath symlink exchange
Published Sep 20, 2021 · Updated Sep 16, 2024
Improper input validation in Kubernetes kubelet 1.22.0 through 1.22.1 allows remote authenticated users to access host files via subPath mounts. Kubelet exchanges symlinks while resolving a container's subPath volume mount, allowing a crafted path to escape the intended volume and reach files or directories on the node. The attacker needs permission to create pods; impact includes host data disclosure and modification, and potentially node service interruption.
Summary
What happened
Improper input validation in Kubernetes kubelet 1.22.0 through 1.22.1 allows remote authenticated users to access host files via subPath mounts. Kubelet exchanges symlinks while resolving a container's subPath volume mount, allowing a crafted path to escape the intended volume and reach files or directories on the node. The attacker needs permission to create pods; impact includes host data disclosure and modification, and potentially node service interruption.
The record
- CVE
- CVE-2021-25741
- Published
- Sep 20, 2021
- Updated
- Sep 16, 2024
- Vendor
- Kubernetes
- Product
- Kubernetes
- Classifications
- CWE-20, T1611
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 20, 2021CVE publishedPublication date reported by the CVE source.
- Sep 16, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=1.19.14
- Affected versionversion=1.20.0 <=1.20.10
- Affected versionversion=1.21.0 <=1.21.4
- Affected versionversion=1.22.0 <=1.22.1
- Affected versionversion=unspecified <=1.19.14
- Affected versionversion=unspecified <=1.20.10
- Affected versionversion=unspecified <=1.21.4
- Affected versionversion=unspecified <=1.22.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo