{"id":"CVE-2026-115424","title":"Oc: oc: symlink/hardlink target validation bypass in oc image extract allows file write outside destination","summary":"A flaw was found in the OpenShift client oc. When extracting container image layers with oc image extract, the application fails to properly sanitize symbolic and hard link targets pointing to absolute paths or to sibling directories of …","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","cvssSource":"cna","cwe":["CWE-61"],"vendor":"Red Hat","product":"openshift-clients","affected":["openshift-clients (all versions)","openshift/ose-rhel-coreos-8 (all versions)","openshift/ose-rhel-coreos-9 (all versions)"],"published":"2026-10-22","updated":"2026-10-22","sourceUpdated":"2026-10-22T21:12:27.259Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-115424","references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-115424"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2558338","label":"RHBZ#2558338"}],"tags":["cve.org"],"ingestedAt":"2026-10-22T22:00:50.440Z","slug":"CVE-2026-115424","body":"## Overview\n\nA flaw was found in the OpenShift client oc. When extracting container image layers with oc image extract, the application fails to properly sanitize symbolic and hard link targets pointing to absolute paths or to sibling directories of the extraction destination. An attacker who supplies a malicious container image can exploit this vulnerability by embedding links, and a chained file entry, that reference locations outside the intended extraction directory. This allows the attacker to write attacker-controlled content to arbitrary locations on the host filesystem with the privileges of the user running the command, potentially leading to file modification outside the destination directory.\n\n## Affected\n\n- `openshift-clients (all versions)`\n- `openshift/ose-rhel-coreos-8 (all versions)`\n- `openshift/ose-rhel-coreos-9 (all versions)`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n### Workarounds\n\nTreat container images as trusted inputs when using oc image extract. Do not extract images from registries or publishers you do not control or have not verified.\n\nWhere possible, run oc image extract as an unprivileged user and into a dedicated, isolated destination directory, and avoid fixed/predictable destination paths in automated or CI pipelines. Restrict who can modify the image references that automated extraction jobs consume.\n\nThere is no configuration option to disable only this link-extraction behavior. Apply updated oc client packages or rebuilt platform images when Red Hat publishes them for your product and stream.","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}