
CVE catalog
CVE-2018-1000156
patch: CVE-2018-1000156
- Severity
- High · CVSS 7.8
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 5.33% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | patch | sid | 2.8.1-1 | fixed |
| Debian | patch | forky | 2.8.1-1 | fixed |
| Debian | patch | trixie | 2.8-2 | fixed |
| Debian | patch | bookworm | 2.7.6-7 | fixed |
| Alpine | patch | 3.10 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.11 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.12 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.13 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.14 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.15 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.16 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.17 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.18 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.19 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.20 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.21 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.22 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.23 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.24 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.7 | 2.7.6-r0 | fixed |
| Alpine | patch | 3.8 | 2.7.6-r4 | fixed |
| Alpine | patch | 3.9 | 2.7.6-r6 | fixed |
| Ubuntu | patch | 14.04 | 2.7.1-3 | vulnerable |
| Ubuntu | patch | 14.04 | 2.7.1-4 | vulnerable |
| Ubuntu | patch | 14.04 | 2.7.1-4ubuntu1 | vulnerable |
| Ubuntu | patch | 14.04 | 2.7.1-4ubuntu2 | vulnerable |
| Ubuntu | patch | 14.04 | 2.7.1-4ubuntu2.3 | vulnerable |
| Ubuntu | patch | 14.04 | 2.7.1-4ubuntu2.4 | fixed |
| Ubuntu | patch | 16.04 | 2.7.5-1 | vulnerable |
| Ubuntu | patch | 16.04 | 2.7.5-1ubuntu0.16.04.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | patch | source | sid | 2.7.6-2 | not yet assigned | Not reported | [894993] |
| Debian | patch | source | forky | 2.7.6-2 | not yet assigned | Not reported | [894993] |
| Debian | patch | source | trixie | 2.7.6-2 | not yet assigned | Not reported | [894993] |
| Debian | patch | source | bookworm | 2.7.6-2 | not yet assigned | Not reported | [894993] |
| Alpine | patch | apk | 3.10 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.11 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.12 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.13 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.14 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.15 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.16 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.17 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.18 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.19 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.20 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.21 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.22 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.23 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.24 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.7 | 2.7.6-r0 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.8 | 2.7.6-r4 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Alpine | patch | apk | 3.9 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-1000156 | Not reported |
| Ubuntu | patch | deb | 14.04 | 2.7.1-4ubuntu2.4 | Not reported | UBUNTU-CVE-2018-1000156 | Not reported |
| Ubuntu | patch | deb | 16.04 | 2.7.5-1ubuntu0.16.04.1 | Not reported | UBUNTU-CVE-2018-1000156 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [patch]Fixed
Details (2)
2.7.6-7· amd64 · bookwormFixed · Fixed:
2.7.6-2dsa · patch · debian · bookworm; dsa · patch · debian · 12
2.7.6-7· arm64 · bookwormFixed · Fixed:
2.7.6-2dsa · patch · debian · bookworm; dsa · patch · debian · 12
[Debian 13 (Trixie)]
- [patch]Fixed
Details (2)
2.8-2· amd64 · trixieFixed · Fixed:
2.7.6-2dsa · patch · debian · 13
2.8-2· arm64 · trixieFixed · Fixed:
2.7.6-2dsa · patch · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2018:2093]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2018_1200.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2018-1000156]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-1000156]
- [https://osv.dev/vulnerability/DLA-1348-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-1000156]
- [https://security-tracker.debian.org/tracker/CVE-2018-1000156]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]