CVE-2026-115207

NameCVE-2026-115207
DescriptionA 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
patch (PTS)bookworm2.7.6-7vulnerable
forky, trixie2.8-2vulnerable
sid2.8.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
patchsource(unstable)2.8.1-1

Notes

[trixie] - patch <no-dsa> (Minor issue)
Fixed by: https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=0cd45bb2132a42cd38d84b20661f3eae9b4da7ce (v2.8.1)
https://bugzilla.redhat.com/show_bug.cgi?id=2558775

Search for package or bug name: Reporting problems