# CVE-2018-1000156

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-04-06 · Modified: 2025-04-14
- Aliases: ALPINE-CVE-2018-1000156, RHSA-2018:1199, RHSA-2018:1200, RHSA-2018:2091, RHSA-2018:2092, RHSA-2018:2093, RHSA-2018:2094, RHSA-2018:2095, RHSA-2018:2096, RHSA-2018:2097, UBUNTU-CVE-2018-1000156, DEBIAN-CVE-2018-1000156, DLA-1348-1, CGA-47j9-mr7r-r6jr, CGA-9wmv-7xvc-wjg6
- Record: https://cvemate.com/vulnerability/CVE-2018-1000156 · JSON: https://cvemate.com/vulnerability/CVE-2018-1000156/json

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

## Signals

- CVSS: 7.8 high (v3.0, NVD) CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 5.373%, percentile 92.872%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine patch (Alpine Linux): \< 2.7.6-r6 \| \< 2.7.6-r0 \| \< 2.7.6-r4
- chainguard patch (Chainguard): \< 2.7.6-r3
- wolfi patch (Wolfi): \< 2.7.6-r3
- canonical ubuntu\_linux: 12.04 \| 14.04 \| 16.04 \| 17.10
- debian patch (Debian): \< 2.7.6-2 \| \< 2.6.1-3+deb7u1
- ubuntu patch (Ubuntu): \< 2.7.1-4ubuntu2.4 \| \< 2.7.5-1ubuntu0.16.04.1
- debian debian\_linux: 7.0
- gnu patch: 2.7.6
- 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
- redhat patch (Red Hat): \< 0:2.6-8.el6\_9 \| \< 0:2.7.1-10.el7\_5 \| \< 0:2.7.1-10.el7\_4 \| \< 0:2.7.1-10.el7\_3 \| \< 0:2.7.1-10.el7\_2 \| \< 0:2.6-8.el6\_7 \| \< 0:2.6-8.el6\_6 \| \< 0:2.6-8.el6\_5 \| \< 0:2.6-8.el6\_4
- redhat patch-debuginfo (Red Hat): \< 0:2.6-8.el6\_9 \| \< 0:2.7.1-10.el7\_5 \| \< 0:2.7.1-10.el7\_4 \| \< 0:2.7.1-10.el7\_3 \| \< 0:2.7.1-10.el7\_2 \| \< 0:2.6-8.el6\_7 \| \< 0:2.6-8.el6\_6 \| \< 0:2.6-8.el6\_5 \| \< 0:2.6-8.el6\_4

## References (first 20 of 41)

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

---

Data as of 2026-12-05T03:12:17.224Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
