RCE in GNU Patch
CVE-2018-20969
- CVSS v3
- 7.8 High
- Public exploits
- None known
- EPSS
- 0.027 · 86.2th percentile
- Published
- 2019-08-16
do_ed_script in pch.c in GNU patch through 2.7.6 does not block strings beginning with a ! character. NOTE: this is the same commit as for CVE-2019-13638, but the ! syntax is specific to ed, and is unrelated to a shell metacharacter.
Vulnerability class: Command Injection (OS Command Injection)
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.027, 86.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, irsl/gnu-patch-vulnerabilities, phonito/phonito-vulnerable-container). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.savannah.gnu.org/cgit/patch.git/commit/ (Patch, Vendor Advisory)
- 20190816 Details about recent GNU patch vulnerabilities (mailing-list, Exploit, Patch, Mailing List, Third Party Advisory)
- packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Trav… (VDB Entry, Third Party Advisory)
- github.com/irsl/gnu-patch-vulnerabilities
- RHSA-2019:2798 (vendor-advisory)
- RHSA-2019:2964 (vendor-advisory)
- RHSA-2019:3757 (vendor-advisory)
- RHSA-2019:3758 (vendor-advisory)
- RHSA-2019:4061 (vendor-advisory)