← Vulnerability feed

Vulnerability record · CVE-2018-1000156 · published 6 April 2018

CVE-2018-1000156: Gnu patch improper input validation vulnerability

Gnu · Patch

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.

7.8 CVSS 3.0 High EPSS 5.3% · top 7.7% CWE-20 · Improper input validation
7.8CVSS 3.0 base score, v2 6.8
5.3%EPSS exploitation probability, 30 days
NoNot in CISA KEV
9Affected product versions listed by NVD
40References
17 Jun 2026Last modified by NVD

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/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

9 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
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:1199 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:1200 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2091 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2092 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2093 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2094 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2095 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2096 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2097 Third Party Advisory
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19 Issue TrackingThird Party Advisory
https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html Mailing ListThird Party Advisory
https://savannah.gnu.org/bugs/index.php?53566 Vendor Advisory
https://seclists.org/bugtraq/2019/Aug/29
https://seclists.org/bugtraq/2019/Jul/54
https://security.gentoo.org/glsa/201904-17 Third 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:1199 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:1200 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2091 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2092 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2093 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2094 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2095 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2096 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:2097 Third Party Advisory
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19 Issue TrackingThird Party Advisory
https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html Mailing ListThird Party Advisory
https://savannah.gnu.org/bugs/index.php?53566 Vendor Advisory
https://seclists.org/bugtraq/2019/Aug/29
https://seclists.org/bugtraq/2019/Jul/54
https://security.gentoo.org/glsa/201904-17 Third Party Advisory
https://twitter.com/kurtseifried/status/982028968877436928 Third Party Advisory
https://usn.ubuntu.com/3624-1/ Third Party Advisory
https://usn.ubuntu.com/3624-2/ Third Party Advisory

Track CVE-2018-1000156 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2018-1000156), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.