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.
Metrics
CVSS 3.0 7.8/10
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
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
- 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://twitter.com/kurtseifried/status/982028968877436928Third Party Advisory
- https://usn.ubuntu.com/3624-1/Third Party Advisory
- https://usn.ubuntu.com/3624-2/Third Party Advisory
Timeline
- Published
- Apr 6, 2018
- Last modified
- Jun 17, 2026
- NVD status
- Modified