Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker compromises a Kubernetes pod
-
DeliveryCrafts pod filesystem with path-traversal filenames
-
ExploitWaits for privileged operator to run copyDirectoryFromPod with enableTarCompressing=false
-
ExecutionJava client resolves traversal paths without sanitization
-
ImpactAttacker-controlled files written to arbitrary locations on operator's local machine
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all three of the following conditions to be simultaneously true: (1) the attacker has already achieved control of a Kubernetes pod within the target cluster, (2) a high-privileged operator or automated pipeline explicitly invokes copyDirectoryFromPod targeting that compromised pod, and (3) the enableTarCompressing flag is set to false (the non-tar code path). The CVSS vector confirms PR:H (the invoking account must hold sufficient cluster privileges to perform pod copy operations) and UI:R (a user must actively trigger the copy command - it does not execute autonomously). Exploitation is further limited to integrity impact only (file creation on the client machine; no data exfiltration, no availability impact), and scope is unchanged (S:U), meaning the cluster control plane is not directly affected. |
| Impact | The CVSS 3.0 vector AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N yields a score of 2.7, correctly reflecting the narrow exploitability window. Three concurrent prerequisites must align: a compromised pod (attacker prerequisite), a high-privileged operator actively running copyDirectoryFromPod (PR:H, UI:R), and the non-default enableTarCompressing=false setting. The integrity impact is rated Low (I:L) because the vulnerability enables creation of new files in arbitrary locations rather than overwriting existing files - though depending on the target filesystem this distinction could meaningfully expand real-world impact (e.g., writing to cron directories or SSH authorized_keys). No EPSS data was provided, but given the multi-step prerequisites, opportunistic mass exploitation is implausible. This is not in CISA KEV and no POC has been identified. The realistic threat model is an insider or supply-chain attacker who has compromised a pod and passively waits for a privileged operator or automation pipeline to trigger the vulnerable code path - a narrow but credible persistence vector in DevOps workflows. |
| Exploit ScenarioDerived | An attacker who has gained control of a Kubernetes pod - through a compromised container image, a code execution vulnerability in a running workload, or misconfigured RBAC - crafts filenames containing path traversal sequences within the pod's filesystem. When a high-privileged operator or automation pipeline subsequently runs a copyDirectoryFromPod call against that pod with enableTarCompressing=false, the Java client writes attacker-controlled content to arbitrary locations on the operator's local machine, potentially enabling persistence (e.g., writing to cron directories or shell profiles). No public POC has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Path traversal in the Kubernetes Java client library's copyDirectoryFromPod function allows a compromised pod to write files to arbitrary locations on the local machine of a high-privileged operator performing copy operations. The vulnerability is only reachable when enableTarCompressing is set to false, and requires both an attacker-controlled pod and an operator actively running a copy command. With a CVSS score of 2.7 (PR:H, UI:R), no public exploit, and no CISA KEV listing, this is a narrow but credible lateral-movement vector in DevOps and CI/CD operator workflows rather than a broadly exploitable flaw.
RemediationAI
The immediate workaround is to avoid invoking copyDirectoryFromPod with enableTarCompressing=false - enabling tar compression (omit the flag or set it to true) eliminates the vulnerable non-tar code path with minimal operational impact. Operators should also restrict pod copy operations to fully trusted pods and avoid running copy commands against pods from untrusted namespaces or sources. No confirmed patched release version is available in the current data; monitor the upstream issue at https://github.com/kubernetes-client/java/issues/4861 for a tagged fix release. As a defense-in-depth measure, restrict Kubernetes RBAC permissions for exec and copy operations to the smallest set of operators or service accounts that require them, reducing the population of accounts that could trigger the vulnerable code path.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the official Kubernetes Java client library (cpe:2.3:a:kubernetes:kubernetes-client/java:*:*:*:*:*:*:*:*), the Java SDK used to interact programmatically with Kubernetes cluster APIs. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - Path Traversal) is the root cause: when copyDirectoryFromPod is invoked with enableTarCompressing=false, file paths returned by the source pod are not sufficiently sanitized before being used to construct destination paths on the local client filesystem. This allows a malicious pod to inject traversal sequences (e.g., ../../etc/cron.d/backdoor) into filenames, escaping the intended destination directory. The tar-based code path is not affected; only the non-tar branch exhibits this behavior.
Know when Kubernetes gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N
Network vector as compromised pod is remote; PR:H because the operator executing the copy must hold cluster permissions; UI:R for active copy invocation; I:L for arbitrary file creation without overwrite.
Primary rating from Vendor (kubernetes).
CVSS VectorVendor: kubernetes
Lifecycle Timeline
2DescriptionCVE.org
A security issue was discovered in the Kubernetes Java client library where a compromised pod may be able to create new files in arbitrary locations on the client machine executing copy operations via non-tar copyDirectoryFromPod when enableTarCompressing is false.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
More in Kubernetes
View allA critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c
Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter
A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne
Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai
The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4
Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
EUVD-2026-48363
GHSA-95wq-2cx3-rp73
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB