REDHAT-BUG-2591241: Path Traversal

Published Dec 4, 2026
·
Updated

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.

Affected Software

1 affected component
Red Hat OpenShift CLI (oc)

Event History

Dec 4, 2026
Data Sourced
via Red Hat·09:20 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Users or automation running oc rsync from a pod are exposed when the operation uses the tar-based copy fallback and the pod-side filesystem content or tar behavior is attacker-controlled.

2

What must an attacker be able to do to exploit it?

The attacker must control content on the pod side, or control the tar output generated there. A victim must then run oc rsync against that pod, providing the required user interaction.

3

What is the security impact on a successful exploit?

A crafted tar entry can write files outside the requested local destination directory on the machine running oc. The demonstrated impact is local file modification; the report does not describe OpenShift cluster privilege escalation or a container escape.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203