{"id":"CVE-2018-1000156","published":"2018-04-06T13:00:00Z","modified":"2025-04-14T19:36:21Z","title":"GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.05329,"percentile":0.92806,"provenance":"source"},"cwes":[],"references":[{"url":"https://savannah.gnu.org/bugs/index.php?53566","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html","tags":["mailing-list"]},{"url":"https://usn.ubuntu.com/3624-2/","tags":["vendor-advisory"]},{"url":"https://usn.ubuntu.com/3624-1/","tags":["vendor-advisory"]},{"url":"http://rachelbythebay.com/w/2018/04/05/bangpatch/","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2018:2091","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2094","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2093","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1200","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2095","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1199","tags":["vendor-advisory"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2018:2092","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2097","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2096","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/201904-17","tags":["vendor-advisory"]},{"url":"https://seclists.org/bugtraq/2019/Jul/54","tags":["mailing-list"]},{"url":"https://seclists.org/bugtraq/2019/Aug/29","tags":["mailing-list"]},{"url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","tags":[]},{"url":"https://web.archive.org/web/20180405231329/https://twitter.com/kurtseifried/status/982028968877436928","tags":[]},{"url":"https://twitter.com/kurtseifried/status/982028968877436928","tags":["x_refsource_MISC","x_transferred"]}],"priority":{"score":23.6,"factors":[{"name":"EPSS percentile","points":18.56},{"name":"Public exploit code","points":5.0}]},"summary":{"text":"The flaw is an input validation weakness in GNU Patch version 2.7.6 when it processes patch files, specifically in how the EDITOR_PROGRAM invocation (which uses ed) handles input. An attacker can achieve code execution by supplying a crafted patch file that is processed by the patch utility, and this is believed to be exploitable through that file alone.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:06:32Z"},"euvd":{"id":"EUVD-2018-1862","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"],"lineage":{"parents":[{"from":"CVE-2015-1418","to":"CVE-2018-1000156","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This is similar to FreeBSD's CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.","from":"CVE.org","in":"CVE-2018-1000156"}]}]}}