logo

When Copy Means Compromise: How kubectl cp Enables RCE on Windows

ID: 070e22e4-4089-528c-87b4-fcb4f34dabe1

STIX ID: report--070e22e4-4089-528c-87b4-fcb4f34dabe1

Feed Name: Security Boulevard

Threat Score
70/100

Date Published: 2026-10-06

Date Updated: 2026-10-07

Author: Moriel Harush

...
...

**kubectl cp on Windows can be abused for remote code execution:** A path-validation bug in kubectl's archive unpacking ignores Windows-style backslash traversal, allowing a compromised pod to craft tar entries that write executables (for example into the user's Startup folder) on the client. Administrators and Windows CI/CD runners copying files from untrusted pods should assume exposure and upgrade to kubectl 1.34.12, 1.35.9, or 1.36.5+ as immediate remediation.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.