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

- Severity: Medium 5.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-10-22T10:16:12.930Z
- Modified: 2026-11-28T01:16:40.390Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- patch: no versions given (not affected: from 0:2.7.6-26.el10_3.1 before *; from 0:2.7.6-26.el10_2.1 before *; from 0:2.7.6-12.el8_10 before *; from 0:2.7.6-16.el9_8.1 before *)

## References

- <https://access.redhat.com/errata/RHSA-2026:102252> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:102274> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:96215> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:99161> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-115207> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2558775> (issue-tracking)
- <http://www.openwall.com/lists/oss-security/2026/10/26/14>
- <https://lists.debian.org/debian-lts-announce/2026/11/msg00072.html>

## Sources

- CVE List: [CVE-2026-115207](https://www.cve.org/CVERecord?id=CVE-2026-115207), CVE Terms of Use, modified 2026-11-28
- NVD: [CVE-2026-115207](https://nvd.nist.gov/vuln/detail/CVE-2026-115207), Public domain, modified 2026-11-28

---

Page: https://cve.day/CVE-2026-115207 · Whole record: https://cve.day/CVE-2026-115207.json · Rebuilt by cve.day 2026-11-28T01:17:32.771Z
