CVE-2018-1000156
Reported by mitre · Published April 6, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| patch | Chainguard | 2.7.6-r3 |
| patch | Ubuntu:14.04:LTS | 2.7.1-4ubuntu2.4 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| chainguard | patch | 0 |
| n/a | n/a | * |
| alpine | patch | 0, 0, 0 |
| amazon:2 | patch | 0 |
| arch | patch | 0, 0 |
| wolfi | patch | 0 |
Timeline
- Apr 6, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (11 in total, the first dated here)
- Mar 6, 2026 Security Advisory (13 in total, the first dated here)
- Sep 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-1000156
vulnetix vdb fixes CVE-2018-1000156
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-1000156/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20180416 [SECURITY] [DLA 1348-1] patch security update mailing-list
- USN-3624-2 vendor-advisory
- USN-3624-1 vendor-advisory
- RHSA-2018:2091 vendor-advisory
- RHSA-2018:2094 vendor-advisory
- RHSA-2018:2093 vendor-advisory
- RHSA-2018:1200 vendor-advisory
- RHSA-2018:2095 vendor-advisory
- RHSA-2018:1199 vendor-advisory
- RHSA-2018:2092 vendor-advisory
- RHSA-2018:2097 vendor-advisory
- RHSA-2018:2096 vendor-advisory
- GLSA-201904-17 vendor-advisory
- 20190730 [SECURITY] [DSA 4489-1] patch security update mailing-list
- 20190816 Details about recent GNU patch vulnerabilities mailing-list
…and 1 more