CVE-2026-133516: Openshift-clients: openshift-clients: oc rsync pod-to-local copy can write outside the intended local destination directory
A flaw was found in the OpenShift oc client. When using oc rsync to copy files from a pod to a local directory, the tar-based fallback extraction path does not properly ensure that archive entries remain confined to the requested destination directory. A crafted pod-side filesystem or tar stream can include path traversal, symlink, or hardlink entries that cause oc rsync to write files outside the destination directory on the machine running the oc client. This can allow an attacker who controls the pod-side content to modify files on the client system if a user or automation runs oc rsync from that pod.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The exposed system is the machine running the OpenShift oc client, not necessarily the OpenShift cluster itself. Risk exists when oc rsync is used to copy from a pod to a local destination and the pod-side content is controlled by an attacker.
What does an attacker need to exploit this vulnerability?
The attacker needs control over files in the source pod filesystem or the tar stream used by oc rsync, and must cause a user or automation to run a pod-to-local oc rsync operation. User interaction is required because the client-side copy must be initiated.
What is the potential impact on the client machine?
Crafted traversal paths, symlinks, or hardlinks can cause files to be written outside the requested local destination directory. This may allow modification of files on the system running oc, affecting integrity and potentially availability.