5.5Medium

CVE-2026-115207Patch: filename validation bypass in reversal fallback allows file creation outside the working directory

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 Enterpri… Published: (27 days ago)

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.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
enterprise linux 8 —
Red Hat Red Hat Enterprise Linux 10 all versions
Red Hat Red Hat Enterprise Linux 6 —
Red Hat Red Hat Enterprise Linux 7 all versions
Red Hat Red Hat Enterprise Linux 8 all versions
Red Hat Red Hat Enterprise Linux 9 all versions
Red Hat Red Hat Enterprise Linux 9.8 Extended Update Support all versions
Red Hat Red Hat Hardened Images all versions
rhel eus 9.8 —

References and patches