CVE-2018-1000156 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 t...
HighCVSS 7.8
EPSS 5.3%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/patch(Debian:12) | < 2.7.6-2 | 2.7.6-2 |
| debian/patch(Debian:13) | < 2.7.6-2 | 2.7.6-2 |
| debian/patch(Debian:14) | < 2.7.6-2 | 2.7.6-2 |
| GNU patch | = 2.7.6 | No fix listed |
| Canonical Ubuntu Linux | = 12.04 | No fix listed |
| Canonical Ubuntu Linux | = 14.04 | No fix listed |
| Canonical Ubuntu Linux | = 16.04 | No fix listed |
| Canonical Ubuntu Linux | = 17.10 | No fix listed |
| debian linux | = 7.0 | No fix listed |
| redhat enterprise linux desktop | = 6.0 | No fix listed |
| redhat enterprise linux desktop | = 7.0 | No fix listed |
| redhat enterprise linux server | = 6.0 | No fix listed |
| redhat enterprise linux server | = 7.0 | No fix listed |
| redhat enterprise linux server aus | = 6.4 | No fix listed |
| redhat enterprise linux server aus | = 6.5 | No fix listed |
| redhat enterprise linux server aus | = 6.6 | No fix listed |
| redhat enterprise linux server aus | = 7.2 | No fix listed |
| redhat enterprise linux server aus | = 7.3 | No fix listed |
| redhat enterprise linux server aus | = 7.4 | No fix listed |
| redhat enterprise linux server aus | = 7.6 | No fix listed |
| redhat enterprise linux server eus | = 6.7 | No fix listed |
| redhat enterprise linux server eus | = 7.3 | No fix listed |
| redhat enterprise linux server eus | = 7.4 | No fix listed |
| redhat enterprise linux server eus | = 7.5 | No fix listed |
| redhat enterprise linux server eus | = 7.6 | No fix listed |
Show 33 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat enterprise linux server tus | = 6.6 | No fix listed |
| redhat enterprise linux server tus | = 7.2 | No fix listed |
| redhat enterprise linux server tus | = 7.3 | No fix listed |
| redhat enterprise linux server tus | = 7.4 | No fix listed |
| redhat enterprise linux server tus | = 7.6 | No fix listed |
| redhat enterprise linux workstation | = 6.0 | No fix listed |
| redhat enterprise linux workstation | = 7.0 | No fix listed |
| alpine/patch(Alpine:v3.10) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.11) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.12) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.13) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.14) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.15) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.16) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.17) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.18) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.19) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.20) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.21) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.22) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.23) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.24) | < 2.7.6-r6 | 2.7.6-r6 |
| alpine/patch(Alpine:v3.7) | < 2.7.6-r0 | 2.7.6-r0 |
| alpine/patch(Alpine:v3.8) | < 2.7.6-r4 | 2.7.6-r4 |
| alpine/patch(Alpine:v3.9) | < 2.7.6-r6 | 2.7.6-r6 |
| ubuntu/patch(Ubuntu:14.04) | < 2.7.1-4ubuntu2.4 | 2.7.1-4ubuntu2.4 |
| ubuntu/patch(Ubuntu:14.04) | = 2.7.1-3 | No fix listed |
| ubuntu/patch(Ubuntu:14.04) | = 2.7.1-4 | No fix listed |
| ubuntu/patch(Ubuntu:14.04) | = 2.7.1-4ubuntu1 | No fix listed |
| ubuntu/patch(Ubuntu:14.04) | = 2.7.1-4ubuntu2 | No fix listed |
| ubuntu/patch(Ubuntu:14.04) | = 2.7.1-4ubuntu2.3 | No fix listed |
| ubuntu/patch(Ubuntu:16.04) | < 2.7.5-1ubuntu0.16.04.1 | 2.7.5-1ubuntu0.16.04.1 |
| ubuntu/patch(Ubuntu:16.04) | = 2.7.5-1 | No fix listed |
References
- Debian Security Tracker CVE-2018-1000156 vendor-advisory
- packetstormsecurity.com
- rachelbythebay.com third-party-advisory
- RHSA-2018:1199 third-party-advisory vendor-advisory
- RHSA-2018:1200 third-party-advisory vendor-advisory
- RHSA-2018:2091 third-party-advisory vendor-advisory
- RHSA-2018:2092 third-party-advisory vendor-advisory
- RHSA-2018:2093 third-party-advisory vendor-advisory
- RHSA-2018:2094 third-party-advisory vendor-advisory
- RHSA-2018:2095 third-party-advisory vendor-advisory
- RHSA-2018:2096 third-party-advisory vendor-advisory
- RHSA-2018:2097 third-party-advisory vendor-advisory
- bugs.debian.org issue-tracking third-party-advisory
- [debian-lts-announce] 20180416 [SECURITY] [DLA 1348-1] patch security update mailing-list third-party-advisory
- savannah.gnu.org vendor-advisory
- 20190816 Details about recent GNU patch vulnerabilities mailing-list
- 20190730 [SECURITY] [DSA 4489-1] patch security update mailing-list
- GLSA-201904-17 third-party-advisory vendor-advisory
- USN-3624-1 third-party-advisory vendor-advisory
- USN-3624-2 third-party-advisory vendor-advisory
- web.archive.org
- twitter.com issue-tracking third-party-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- rachelbythebay.com issue-tracking
- ubuntu.com vendor-advisory
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking