RCE: copyDirectoryFromPod allows arbitrary file creation (K8s Java Client)
CVE-2026-15687 Published on July 23, 2026
Path traversal via non-tar copyDirectoryFromPod
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.
Weakness Type
What is a Directory traversal Vulnerability?
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2026-15687 has been classified to as a Directory traversal vulnerability or weakness.
Products Associated with CVE-2026-15687
Want to know whenever a new CVE is published for Kubernetes? stack.watch will email you.
Affected Versions
kubernetes-client/java:- Version 10.0.0 and below 25.0.1 is affected.
- Version 26.0.0 is affected.
- Version 25.0.1 is unaffected.
- Version 26.0.1 is unaffected.
- Version 27.0.0 is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.