Bug 2591241 (CVE-2026-133516)

Summary: CVE-2026-133516 openshift-clients: openshift-clients: oc rsync pod-to-local copy can write outside the intended local destination directory
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: akhatavk, aos-team-art-private, asdas, dpaolell, jdelft, jupierce, lgarciaa, mbiarnes, ppalepu, ppostler, prdhamdh, security-response-team, sghai, sidsharm, suppawar, vlaad
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-04 21:20:57 UTC
Reporter: PSIRTSUPT-29706

The reporter identified a path-containment issue in the OpenShift oc client's pod-to-local rsync flow. When oc rsync falls back to the tar-based copy path, crafted pod-side tar output can include entries that escape the requested local destination directory. The reporter provided shell logs showing oc rsync srcpod:/tmp/src/ /tmp/dest/ creating /tmp/should-not-be-touched/evil-from-pod.txt outside /tmp/dest/ with exit code 0 and no unsafe-path rejection.

Security assessment: this is a client-side arbitrary file write/path traversal issue. The attacker must control pod-side filesystem content or tar behavior, and the victim user or automation must run oc rsync from that pod. The demonstrated impact is local file modification on the machine running oc, not OpenShift cluster privilege escalation or container escape.

Suggested CVSS: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L = 6.3 Moderate.
Suggested CWE: CWE-22.