CVE-2026-15687

Path traversal via non-tar copyDirectoryFromPod

Published Jul 23, 2026 CVSS 3.0 · 2.7 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The bug lies in the copyDirectoryFromPod method when tar compression is disabled. It allows a pod that has been compromised or is malicious to write files to any location relative to the client’s working directory, effectively performing a local path traversal. The vulnerability is a CWE‑22 type flaw and could let an attacker overwrite system files or write arbitrary data, impacting confidentiality, integrity, and availability of the client machine.

Affected Systems

Affected systems include any application that imports the Kubernetes Java client library and calls copyDirectoryFromPod with enableTarCompressing set to false. This encompasses custom controllers, operators, or any client‑side tooling that interacts with pod file systems. No specific product versions are listed, so the risk applies broadly to all builds that use the vulnerable method.

Risk and Exploitability

The CVSS score of 2.7 rates the flaw as low severity and the EPSS score of less than 1% indicates a low probability of exploitation. The bug is not part of the CISA KEV catalog. The typical attack requires a compromised pod that invokes the insecure copy path; as a result, the attacker can write files on the client when that client initiates the copy. The mitigation is available through a workaround that restricts pod trust or enables the tar‑based copy route.

Remediation

Vendor Workaround

Prior to upgrading, this vulnerability can be mitigated by ensuring you only copy files from trusted pods, or by ensuring tar is available in the container to use the secure tar-based copy path.


OpenCVE Recommended Actions

  • Limit copyDirectoryFromPod usage to pods that are explicitly trusted by applying stricter role‑based access control or network policies.
  • Install tar in the container and enable the tar‑based copy path by setting enableTarCompressing to true so that the secure method is used.
  • Scan the Kubernetes Java client library in your environment for the presence of the unsafe copy method and upgrade to a patched release once it becomes available.
  • Monitor file system logs for unexpected file creation events that may indicate an abuse of the copy function.

Generated by OpenCVE AI on August 3, 2026 at 21:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Kubernetes
Kubernetes java
Vendors & Products Kubernetes
Kubernetes java
Type Values Removed Values Added
Description 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.
Title Path traversal via non-tar copyDirectoryFromPod
Weaknesses CWE-22
References
Metrics cvssV3_0

{'score': 2.7, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
kubernetes
Published
Updated
Jul 23, 2026, 7:03 PM
Reserved
Jul 13, 2026, 11:31 PM
Status
Awaiting Analysis
Published
Jul 23, 2026, 7:16 PM
Modified
Oct 24, 2026, 1:10 PM