CVE-2018-1000156
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (5.43%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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.
- CVSS 3.0
- 7.8 HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 5.43% probability · 92th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-20
- Affected
- gnu/patch · canonical/ubuntu linux · debian/debian linux · redhat/enterprise linux desktop · redhat/enterprise linux server · redhat/enterprise linux server aus · redhat/enterprise linux server eus · redhat/enterprise linux server tus · redhat/enterprise linux workstation
- Source
- cve@mitre.org
References
- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- http://rachelbythebay.com/w/2018/04/05/bangpatch/Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1199Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1200Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2091Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2092Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2093Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2094Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2095Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2096Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2097Third Party Advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/04/msg00013.htmlMailing List, Third Party Advisory
- https://savannah.gnu.org/bugs/index.php?53566Vendor Advisory
- https://seclists.org/bugtraq/2019/Aug/29
- https://seclists.org/bugtraq/2019/Jul/54
- https://security.gentoo.org/glsa/201904-17Third Party Advisory
- https://usn.ubuntu.com/3624-1/Third Party Advisory
- https://usn.ubuntu.com/3624-2/Third Party Advisory
- https://web.archive.org/web/20180405231329/https://twitter.com/kurtseifried/status/982028968877436928
- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- http://rachelbythebay.com/w/2018/04/05/bangpatch/Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1199Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1200Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2091Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2092Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2093Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2094Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2095Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2096Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.