CVE-2026-115207
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by redhat
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
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

Product or packageVersionsReported by
patchNot specified
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 *
CVE List

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-115207 changed 2026-11-28CVE Terms of Use
NVDCVE-2026-115207 changed 2026-11-28Public domain