---
id: CVE-2026-115424
title: >-
  oc: oc: Symlink/hardlink target validation bypass in oc image extract allows
  file write outside destination (CVE-2026-115424)
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 th…
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: vendor
cwe: CWE-61
vendor: Red Hat
product: Red Hat OpenShift Container Platform 4
affected:
  - openshift_container_platform 4
published: '2026-10-21'
updated: '2026-10-23'
sourceUpdated: '2026-10-23T00:37:56+00:00'
source: CSAF
sourceUrl: 'https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-115424.json'
references:
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-115424.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-115424'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2558338'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-115424'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-115424'
tags:
  - csaf
  - vex
  - red-hat
  - cve.org
ingestedAt: '2026-10-22T22:00:50.440Z'
epss: 0.00164
epssPercentile: 0.05536
---

## Overview

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 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.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat OpenShift Container Platform 4 · updated 2026-10-23 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-115424.json)

**oc: oc: Symlink/hardlink target validation bypass in oc image extract allows file write outside destination** — rated Moderate by Red Hat. Released 2026-10-21, updated 2026-10-23.

Affected:

- Red Hat OpenShift Container Platform 4

No fix planned:

- Red Hat OpenShift Container Platform 4

## Remediation

Fix deferred

Workarounds / mitigations:

- Treat 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.

Where 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.

There is no configuration option to disable only this link…
