{"id":"CVE-2026-115207","aliases":["ALSA-2026:96215","AZL-112121","BELL-CVE-2026-115207","DEBIAN-CVE-2026-115207","EUVD-2026-108112","GHSA-m74w-h57v-xv36","OESA-2026-4617","OESA-2026-4618","OESA-2026-4619","OESA-2026-4620","RLSA-2026:96215","UBUNTU-CVE-2026-115207","openSUSE-SU-2026:12302-1"],"status":"published","title":"Patch: filename validation bypass in reversal fallback allows file creation outside the working directory","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.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00186,"percentile":0.0835,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2026-10-22T10:16:12Z","modified":"2026-11-12T06:30:20Z","fixes":[{"ecosystem":"AlmaLinux:8","package":"patch","fixed_in":["2.7.6-12.el8_10"],"sources":["osv"]},{"ecosystem":"Alpaquita:23","package":"patch","fixed_in":["2.7.6-r11"],"sources":["osv"]},{"ecosystem":"Alpaquita:25","package":"patch","fixed_in":["2.8.1-r0"],"sources":["osv"]},{"ecosystem":"BellSoft Hardened Containers:23","package":"patch","fixed_in":["2.7.6-r11"],"sources":["osv"]},{"ecosystem":"BellSoft Hardened Containers:25","package":"patch","fixed_in":["2.8.1-r0"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"patch","fixed_in":["2.8.1-1"],"sources":["osv"]},{"ecosystem":"openEuler:22.03-LTS-SP4","package":"patch","fixed_in":["2.7.6-17.oe2203sp4"],"sources":["osv"]},{"ecosystem":"openEuler:24.03-LTS-SP1","package":"patch","fixed_in":["2.7.6-24.oe2403sp1"],"sources":["osv"]},{"ecosystem":"openEuler:24.03-LTS-SP3","package":"patch","fixed_in":["2.7.6-24.oe2403sp3"],"sources":["osv"]},{"ecosystem":"openEuler:24.03-LTS-SP4","package":"patch","fixed_in":["2.7.6-24.oe2403sp4"],"sources":["osv"]},{"ecosystem":"Rocky Linux:8","package":"patch","fixed_in":["0:2.7.6-12.el8_10"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"patch","fixed_in":["2.8.1-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"AlmaLinux:8","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-12.el8_10"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.7.6-10"}]}]},{"source":"osv","ecosystem":"Alpaquita:23","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.6-r8"},{"fixed":"2.7.6-r11"}]}]},{"source":"osv","ecosystem":"Alpaquita:25","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8-r0"},{"fixed":"2.8.1-r0"}]}]},{"source":"osv","ecosystem":"BellSoft Hardened Containers:23","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.6-r8"},{"fixed":"2.7.6-r11"}]}]},{"source":"osv","ecosystem":"BellSoft Hardened Containers:25","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8-r0"},{"fixed":"2.8.1-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-7","2.8-1","2.8-2","2.8.1-1"]},{"source":"osv","ecosystem":"Debian:13","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-2","2.8-2+deb13u1","2.8.1-1"]},{"source":"osv","ecosystem":"Debian:14","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.1-1"}]}],"versions":["2.8-2"]},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP4","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-17.oe2203sp4"}]}]},{"source":"osv","ecosystem":"openEuler:24.03-LTS-SP1","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-24.oe2403sp1"}]}]},{"source":"osv","ecosystem":"openEuler:24.03-LTS-SP3","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-24.oe2403sp3"}]}]},{"source":"osv","ecosystem":"openEuler:24.03-LTS-SP4","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-24.oe2403sp4"}]}]},{"source":"osv","ecosystem":"Rocky Linux:8","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.7.6-12.el8_10"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.1-3","2.7.1-4","2.7.1-4ubuntu1","2.7.1-4ubuntu2","2.7.1-4ubuntu2.3","2.7.1-4ubuntu2.4","2.7.1-4ubuntu2.4+esm1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.5-1","2.7.5-1ubuntu0.16.04.1","2.7.5-1ubuntu0.16.04.2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.5-1build1","2.7.6-1","2.7.6-2ubuntu1","2.7.6-2ubuntu1.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-6"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-7","2.7.6-7build1","2.7.6-7build2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-7build2","2.7.6-7build3"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-2build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-2","2.8-2build1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.1-1.1"}]}]}],"products":[{"vendor":"red hat","product":"red hat enterprise linux 10"},{"vendor":"red hat","product":"red hat enterprise linux 6"},{"vendor":"red hat","product":"red hat enterprise linux 7"},{"vendor":"red hat","product":"red hat enterprise linux 8"},{"vendor":"red hat","product":"red hat enterprise linux 9"},{"vendor":"red hat","product":"red hat enterprise linux 9.8 extended update support"},{"vendor":"red hat","product":"red hat hardened images"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:96215","tags":["vendor-advisory","x_refsource_REDHAT","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:99161","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-115207","tags":["vdb-entry","x_refsource_REDHAT","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2558775","tags":["issue-tracking","x_refsource_REDHAT","report"]},{"url":"http://www.openwall.com/lists/oss-security/2026/10/26/14"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115207","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-m74w-h57v-xv36"},{"url":"https://bugzilla.redhat.com/2558775","tags":["report"]},{"url":"https://errata.almalinux.org/8/ALSA-2026-96215.html","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2026-115207","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-115207","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-4617","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-4618","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-4619","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-4620","tags":["advisory"]},{"url":"https://errata.rockylinux.org/RLSA-2026:96215","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-115207","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-115207","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2026-115207","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2026-115207","title":"Patch: filename validation bypass in reversal fallback allows file creation outside the working directory","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.","status":"published","published":"2026-10-22T10:16:12.93Z","modified":"2026-11-12T05:52:52.873Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-22"],"updated_at":"2026-11-12T06:38:26.896586Z"}],"euvd":[{"id":"EUVD-2026-108112","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.","status":"published","published":"2026-10-22T10:16:12Z","modified":"2026-11-12T05:52:52Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-12T07:32:21.931304Z"}],"ghsa":[{"id":"GHSA-m74w-h57v-xv36","title":"A flaw was found in GNU patch. An attacker can achieve arbitrary file creation outside the...","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.","status":"published","published":"2026-10-22T12:31:16Z","modified":"2026-11-12T06:30:20Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-12T06:38:20.494135Z"}],"nvd":[{"id":"CVE-2026-115207","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.","status":"published","published":"2026-10-22T11:17:50.537Z","modified":"2026-11-09T17:17:10.74Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-22"],"updated_at":"2026-11-09T20:15:32.44383Z"}],"osv":[{"id":"BELL-CVE-2026-115207","status":"published","published":"2026-10-24T06:06:21.439773Z","modified":"2026-11-04T07:15:54.527869438Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-04T07:31:49.594962Z"},{"id":"DEBIAN-CVE-2026-115207","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.","status":"published","published":"2026-10-22T11:17:50.537Z","modified":"2026-11-10T10:00:08.875713612Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-10T10:26:30.347596Z"},{"id":"OESA-2026-4617","title":"patch security update","description":"Patch takes a patch file containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions.\r\n\r\nSecurity Fix(es):\n\nA 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.(CVE-2026-115207)","status":"published","published":"2026-10-29T09:03:38Z","modified":"2026-10-29T09:15:40.036380317Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:47.981622Z"},{"id":"OESA-2026-4618","title":"patch security update","description":"Patch takes a patch file containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions.\r\n\r\nSecurity Fix(es):\n\nA 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.(CVE-2026-115207)","status":"published","published":"2026-10-29T09:03:39Z","modified":"2026-10-29T09:15:39.429488668Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:47.981622Z"},{"id":"OESA-2026-4619","title":"patch security update","description":"Patch takes a patch file containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions.\r\n\r\nSecurity Fix(es):\n\nA 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.(CVE-2026-115207)","status":"published","published":"2026-10-29T09:03:40Z","modified":"2026-10-29T09:15:39.66870466Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:47.981622Z"},{"id":"OESA-2026-4620","title":"patch security update","description":"Patch takes a patch file containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions.\r\n\r\nSecurity Fix(es):\n\nA 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.(CVE-2026-115207)","status":"published","published":"2026-10-29T09:03:40Z","modified":"2026-10-29T09:15:40.027206049Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:47.981622Z"},{"id":"RLSA-2026:96215","title":"Moderate: patch security update","description":"The patch program applies diff files to originals. The diff command is used to compare an original to a changed file. Diff lists the changes made to the file. A person who has the original file can then use the patch command with the diff file to add the changes to their original file (patching the file).\n\nSecurity Fix(es):\n\n* patch: Filename validation bypass in reversal fallback allows file creation outside the working directory (CVE-2026-115207)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.","status":"published","published":"2026-11-10T12:01:05.33172Z","modified":"2026-11-10T12:30:03.480692726Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-10T12:59:03.619613Z"},{"id":"UBUNTU-CVE-2026-115207","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.","status":"published","published":"2026-10-22T11:17:00Z","modified":"2026-10-28T17:50:37Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T16:55:59.591851Z"},{"id":"ALSA-2026:96215","title":"Moderate: patch security update","description":"The patch program applies diff files to originals. The diff command is used to compare an original to a changed file. Diff lists the changes made to the file. A person who has the original file can then use the patch command with the diff file to add the changes to their original file (patching the file).  \n\nSecurity Fix(es):  \n\n  * patch: Filename validation bypass in reversal fallback allows file creation outside the working directory (CVE-2026-115207)\n\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.\n","status":"published","published":"2026-11-09T00:00:00Z","modified":"2026-11-10T09:45:02.616930848Z","updated_at":"2026-11-10T09:56:02.898004Z"},{"id":"AZL-112121","title":"CVE-2026-115207 affecting package patch 2.7.6-10","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.","status":"published","published":"2026-10-22T11:17:50Z","modified":"2026-11-05T05:40:51Z","updated_at":"2026-11-05T16:41:19.001909Z"},{"id":"openSUSE-SU-2026:12302-1","title":"patch-2.8.1-1.1 on GA media","description":"These are all security issues fixed in the patch-2.8.1-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-10-27T00:00:00Z","modified":"2026-10-28T17:23:15.827736576Z","updated_at":"2026-11-02T16:58:40.245664Z"}]}}
