Skip to content
OpenAdvisories
Medium · 5.5 CVE-2026-115207 EUVD-2026-108112GHSA-m74w-h57v-xv36

Patch: filename validation bypass in reversal fallback allows file creation outside the working directory

Published Oct 22, 2026 · Updated Nov 12, 2026 · Assigned by redhat

Description

A flaw was found in GNU patch. An attacker can achieve arbitrary file creation outside the intended working directory by enticing a user or automated workflow to apply a specially crafted patch file. Due to missing validation during automatic patch reversal, absolute file paths in patch headers are accepted rather than rejected. Consequently, the utility can create files in arbitrary locations with the permissions of the executing user.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9.8 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Hardened Images — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 patch 2.8.1-1 —
Debian 13 patch No fix yet —
Debian 12 patch No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 patch No fix yet —
Ubuntu 26.04 LTS patch No fix yet —
Ubuntu 24.04 LTS patch No fix yet —
Ubuntu 22.04 LTS patch No fix yet —
Ubuntu 20.04 LTS patch No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS patch No fix yet —
Ubuntu 16.04 LTS patch No fix yet —
Ubuntu Pro 14.04 LTS patch No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 patch 2.7.6-12.el8_10 RHSA-2026:96215
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.8 EUS patch 2.7.6-16.el9_8.1 RHSA-2026:99161

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 patch 2.7.6-12.el8_10 ALSA-2026:96215

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 patch 2.7.6-12.el8_10 RLSA-2026:96215
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed patch 2.8.1-1.1 openSUSE-SU-2026:12302-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 patch No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 patch 2.7.6-12.el8_10 ELSA-2026-96215

Advisories 7

References