Improper input validation in GNU Patch
CVE-2018-1000156
- CVSS v3
- 7.8 High
- Public exploits
- None known
- EPSS
- 0.053 · 92.8th percentile
- Published
- 2018-04-06
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- Required
UI:R - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.053, 92.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- GNU Patch — versions 2.7.6
- Canonical Ubuntu Linux — versions 12.04, 14.04, 16.04
- Debian Linux — versions 7.0
- Red Hat Enterprise Linux Desktop — versions 6.0, 7.0
- Red Hat Enterprise Linux Server — versions 6.0, 7.0
- Red Hat Enterprise Linux Server Aus — versions 6.4, 6.5, 6.6
- Red Hat Enterprise Linux Server Eus — versions 6.7, 7.3, 7.4
- Red Hat Enterprise Linux Server Tus — versions 6.6, 7.2, 7.3
- Red Hat Enterprise Linux Workstation — versions 6.0, 7.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 8 other repositories (anchore/vunnel, andir/nixos-issue-db-example, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- savannah.gnu.org/bugs/index.php (Vendor Advisory)
- [debian-lts-announce] 20180416 [SECURITY] [DLA 1348-1] patch security update (mailing-list, Mailing List, Third Party Advisory)
- USN-3624-2 (vendor-advisory, Third Party Advisory)
- USN-3624-1 (vendor-advisory, Third Party Advisory)
- rachelbythebay.com/w/2018/04/05/bangpatch/ (Third Party Advisory)
- RHSA-2018:2091 (vendor-advisory, Third Party Advisory)
- RHSA-2018:2094 (vendor-advisory, Third Party Advisory)
- RHSA-2018:2093 (vendor-advisory, Third Party Advisory)
- RHSA-2018:1200 (vendor-advisory, Third Party Advisory)
- RHSA-2018:2095 (vendor-advisory, Third Party Advisory)