CVEfocus › CVE database › CVE-2026-115207

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

CVSS 5.5 MediumEPSS 0.2% (higher than 5% of CVEs)Published 2026-10-22Updated 2026-11-24Assigner: redhat

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.

CWE-22

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fixed
8Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10patchFix pendingUBUNTU-CVE-2026-115207
Ubuntu 26.04patchUnder investigationUBUNTU-CVE-2026-115207
Ubuntu 24.04patchUnder investigationUBUNTU-CVE-2026-115207
Ubuntu 22.04patchUnder investigationUBUNTU-CVE-2026-115207
Ubuntu 20.04patchFix pendingUBUNTU-CVE-2026-115207
Ubuntu 18.04patchFix pendingUBUNTU-CVE-2026-115207
Ubuntu 16.04patchFix pendingUBUNTU-CVE-2026-115207
Ubuntu 14.04patchFix pendingUBUNTU-CVE-2026-115207
Debian 14patchFixed2.8.1-1DEBIAN-CVE-2026-115207
Debian 13patchFixed2.8-2+deb13u1DEBIAN-CVE-2026-115207
Debian 12patchFix pendingDEBIAN-CVE-2026-115207
Red Hat Enterprise Linux 10patchFixed0:2.7.6-26.el10_3.1RHSA-2026:102274
Red Hat Enterprise Linux 9patchFix pending
Affected
Red Hat Enterprise Linux 8patchFixed0:2.7.6-12.el8_10RHSA-2026:96215
Red Hat Enterprise Linux 7patchFix pending
Fix deferred
Red Hat Enterprise Linux 6patchWill not fix
Out of support scope
AlmaLinux 10patchFixed2.7.6-26.el10_3.1ALSA-2026:102274
AlmaLinux 8patchFixed2.7.6-12.el8_10ALSA-2026:96215
Rocky Linux 10patchFixed0:2.7.6-26.el10_3.1RLSA-2026:102274
Rocky Linux 8patchFixed0:2.7.6-12.el8_10RLSA-2026:96215

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.