CVE-2018-1000156
HIGHGNU Patch 2.7.6 - Remote Code Execution via EDITOR_PROGRAM Invocation
Title source: llmDescription
GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD's CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.
References (21)
Core 21
Core References
Third Party Advisory
http://rachelbythebay.com/w/2018/04/05/bangpatch/
Issue Tracking, Third Party Advisory
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19
Vendor Advisory
https://savannah.gnu.org/bugs/index.php?53566
Various Sources
https://web.archive.org/web/20180405231329/https://twitter.com/kurtseifried/status/982028968877436928
Third Party Advisory
https://twitter.com/kurtseifried/status/982028968877436928
Mailing List, Third Party Advisory mailing-list
https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html
Third Party Advisory vendor-advisory
https://usn.ubuntu.com/3624-2/
Third Party Advisory vendor-advisory
https://usn.ubuntu.com/3624-1/
Third Party Advisory vendor-advisory
https://access.redhat.com/errata/RHSA-2018:2091
Third Party Advisory vendor-advisory
https://access.redhat.com/errata/RHSA-2018:2094
Third Party Advisory vendor-advisory
https://access.redhat.com/errata/RHSA-2018:2093
Third Party Advisory vendor-advisory
https://access.redhat.com/errata/RHSA-2018:1200
Third Party Advisory vendor-advisory
https://access.redhat.com/errata/RHSA-2018:2095
Third Party Advisory vendor-advisory
https://access.redhat.com/errata/RHSA-2018:1199
Third Party Advisory vendor-advisory
https://access.redhat.com/errata/RHSA-2018:2092
Third Party Advisory vendor-advisory
https://access.redhat.com/errata/RHSA-2018:2097
Third Party Advisory vendor-advisory
https://access.redhat.com/errata/RHSA-2018:2096
Third Party Advisory vendor-advisory
https://security.gentoo.org/glsa/201904-17
Mailing List mailing-list
https://seclists.org/bugtraq/2019/Aug/29
Mailing List mailing-list
https://seclists.org/bugtraq/2019/Jul/54
Exploit, Third Party Advisory
http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
Scores
CVSS v3
7.8
EPSS
0.3676
EPSS Percentile
97.2%
Attack Vector
LOCAL
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Details
CWE
CWE-20
Status
published
Products (29)
canonical/ubuntu_linux
12.04
canonical/ubuntu_linux
14.04
canonical/ubuntu_linux
16.04
canonical/ubuntu_linux
17.10
debian/debian_linux
7.0
gnu/patch
2.7.6
redhat/enterprise_linux_desktop
6.0
redhat/enterprise_linux_desktop
7.0
redhat/enterprise_linux_server
6.0
redhat/enterprise_linux_server
7.0
... and 19 more
Published
Apr 06, 2018
Tracked Since
Feb 18, 2026