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
3DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-48363
GHSA-95wq-2cx3-rp73