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.
Published: 2026-07-23
Score: 2.7 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

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 yet.

History

Thu, 30 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Kubernetes
Kubernetes java
Vendors & Products Kubernetes
Kubernetes java

Thu, 23 Jul 2026 21:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: kubernetes

Published:

Updated: 2026-07-23T19:03:12.469Z

Reserved: 2026-07-13T23:31:31.228Z

Link: CVE-2026-15687

cve-icon Vulnrichment

Updated: 2026-07-23T19:03:09.190Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-23T19:16:53.390

Modified: 2026-07-23T20:17:07.627

Link: CVE-2026-15687

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T21:15:04Z

Weaknesses
  • CWE-22

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