# CVE-2018-1000156: GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITORPROGRAM invocation (…

- Severity: High 7.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.37%, higher than 92% of CVEs (2026-12-01)
- Published: 2018-04-06T13:00:00.000Z
- Modified: 2026-06-17T01:32:33.143Z
- Weaknesses: CWE-20
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu patch: 2.7.6
- canonical ubuntu_linux: 12.04; 14.04; 16.04; 17.10
- debian debian_linux: 7.0
- redhat enterprise_linux_desktop: 6.0; 7.0
- redhat enterprise_linux_server: 6.0; 7.0
- redhat enterprise_linux_server_aus: 6.4; 6.5; 6.6; 7.2; 7.3; 7.4; 7.6
- redhat enterprise_linux_server_eus: 6.7; 7.3; 7.4; 7.5; 7.6
- redhat enterprise_linux_server_tus: 6.6; 7.2; 7.3; 7.4; 7.6
- redhat enterprise_linux_workstation: 6.0; 7.0

## Every score

- NVD: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://savannah.gnu.org/bugs/index.php?53566> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html> (mailing-list, third-party-advisory)
- <https://usn.ubuntu.com/3624-2/> (third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/3624-1/> (third-party-advisory, vendor-advisory)
- <http://rachelbythebay.com/w/2018/04/05/bangpatch/> (third-party-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://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19> (issue-tracking, third-party-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> (third-party-advisory, vendor-advisory)
- <https://seclists.org/bugtraq/2019/Jul/54> (mailing-list)
- <https://seclists.org/bugtraq/2019/Aug/29> (mailing-list)
- <http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html>
- <https://web.archive.org/web/20180405231329/https://twitter.com/kurtseifried/status/982028968877436928>
- <https://twitter.com/kurtseifried/status/982028968877436928> (third-party-advisory)

## Sources

- CVE List: [CVE-2018-1000156](https://www.cve.org/CVERecord?id=CVE-2018-1000156), CVE Terms of Use, modified 2025-04-14
- NVD: [CVE-2018-1000156](https://nvd.nist.gov/vuln/detail/CVE-2018-1000156), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-1000156 · Whole record: https://cve.day/CVE-2018-1000156.json · Rebuilt by cve.day 2026-11-25T22:57:37.163Z
