{"id":"UBUNTU-CVE-2026-115207","details":"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.","modified":"2026-10-27T04:17:42.685431982Z","published":"2026-10-26T00:00:00Z","upstream":["CVE-2026-115207"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-115207"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-115207"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-115207"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2558775"}],"affected":[{"package":{"name":"patch","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=esm-infra-legacy%2Ftrusty"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"patch","binary_version":"2.7.1-4ubuntu2.4+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-115207.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=xenial"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"patch","binary_version":"2.7.5-1ubuntu0.16.04.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-115207.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.5-1build1","2.7.6-1","2.7.6-2ubuntu1","2.7.6-2ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.6-2ubuntu1.1","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-115207.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-6"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.6-6","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-115207.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-7","2.7.6-7build1","2.7.6-7build2"],"ecosystem_specific":{"binaries":[{"binary_name":"patch","binary_version":"2.7.6-7build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-115207.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-7build2","2.7.6-7build3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.6-7build3","binary_name":"patch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-115207.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/patch?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"patch","binary_version":"2.8-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-115207.json"}},{"package":{"name":"patch","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/patch?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-2","2.8-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"patch","binary_version":"2.8-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-115207.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}