Skip to content

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

MediumCVSS 5.5 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

19 packages: 6 fixed, 1 partially fixed, 12 with no fix yet.

PackageAffectedFixed inStatus
azure linux patch(Azure Linux 3.0) All versions No fix listed No fix yet
debian/patch(Debian 12) = 2.7.6-7; = 2.8-1; = 2.8-2; = 2.8.1-1 +1 more No fix listed No fix yet
redhat hummingbird All versions No fix listed No fix yet
redhat rhel els = 6; All versions No fix listed No fix yet
redhat/patch(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
redhat/patch(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/patch(Red Hat hummingbird 1) All versions No fix listed No fix yet
redhat/patch(Red Hat rhel_els 7) All versions No fix listed No fix yet
ubuntu/patch(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/patch(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/patch(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/patch(Ubuntu 26.10) All versions No fix listed No fix yet
redhat enterprise linux < 0:2.7.6-12.el8_10; All versions 0:2.7.6-12.el8_10 Partially fixed
azure linux patch(Azure Linux 4.0) < 0:2.8.1-6.azl4 0:2.8.1-6.azl4 Fixed
debian/patch(Debian 13) < 2.8-2+deb13u1; = 2.8-2 2.8-2+deb13u1 Fixed
debian/patch(Debian 14) < 2.8.1-1; = 2.8-2 2.8.1-1 Fixed
redhat rhel eus < 0:2.7.6-16.el9_8.1 0:2.7.6-16.el9_8.1 Fixed
redhat/patch(Red Hat enterprise_linux 8) < 2.7.6-12.el8_10 2.7.6-12.el8_10 Fixed
redhat/patch(Red Hat rhel_eus 9.8) < 2.7.6-16.el9_8.1 2.7.6-16.el9_8.1 Fixed

Affected products

ProductAffected versionsFixed in
ubuntu/patch(Ubuntu:22.04) All versions No fix listed
ubuntu/patch(Ubuntu:24.04) All versions No fix listed
ubuntu/patch(Ubuntu:26.04) All versions No fix listed
ubuntu/patch(Ubuntu:26.10) All versions No fix listed
redhat enterprise linux < 0:2.7.6-12.el8_10 0:2.7.6-12.el8_10
redhat rhel eus < 0:2.7.6-16.el9_8.1 0:2.7.6-16.el9_8.1
redhat enterprise linux All versions No fix listed
redhat rhel els = 6 No fix listed
redhat rhel els All versions No fix listed
redhat hummingbird All versions No fix listed
redhat/patch(Red Hat:enterprise_linux:8) < 2.7.6-12.el8_10 2.7.6-12.el8_10
redhat/patch(Red Hat:rhel_eus:9.8) < 2.7.6-16.el9_8.1 2.7.6-16.el9_8.1
redhat/patch(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/patch(Red Hat:rhel_els:6) All versions No fix listed
redhat/patch(Red Hat:rhel_els:7) All versions No fix listed
redhat/patch(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/patch(Red Hat:hummingbird:1) All versions No fix listed
debian/patch(Debian:12) All versions No fix listed
debian/patch(Debian:12) = 2.7.6-7 No fix listed
debian/patch(Debian:12) = 2.8-1 No fix listed
debian/patch(Debian:12) = 2.8-2 No fix listed
debian/patch(Debian:12) = 2.8.1-1 No fix listed
debian/patch(Debian:13) < 2.8-2+deb13u1 2.8-2+deb13u1
debian/patch(Debian:13) = 2.8-2 No fix listed
debian/patch(Debian:14) < 2.8.1-1 2.8.1-1
Show 3 more
ProductAffected versionsFixed in
debian/patch(Debian:14) = 2.8-2 No fix listed
azure linux patch(Azure Linux:4.0) < 0:2.8.1-6.azl4 0:2.8.1-6.azl4
azure linux patch(Azure Linux:3.0) All versions No fix listed

References