RCE in GNU Patch
CVE-2019-13638
- CVSS v3
- 7.8 High
- Public exploits
- None known
- EPSS
- 0.045 · 91.7th percentile
- Published
- 2019-07-26
GNU patch through 2.7.6 is vulnerable to OS shell command injection that can be exploited by opening a crafted patch file that contains an ed style diff payload with shell metacharacters. The ed editor does not need to be present on the vulnerable system. This is different from CVE-2018-1000156.
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.045, 91.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- GNU Patch — versions 2.7.6
- Debian Linux — versions 8.0, 9.0, 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (irsl/gnu-patch-vulnerabilities, seokjeon/SARD-vs-CVE). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- security-tracker.debian.org/tracker/CVE-2019-13638 (Third Party Advisory)
- git.savannah.gnu.org/cgit/patch.git/commit/ (Patch, Mailing List, Vendor Advisory)
- DSA-4489 (vendor-advisory, Third Party Advisory)
- 20190730 [SECURITY] [DSA 4489-1] patch security update (mailing-list, Mailing List, Third Party Advisory)
- 20190816 Details about recent GNU patch vulnerabilities (mailing-list)
- packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Trav…
- GLSA-201908-22 (vendor-advisory)
- FEDORA-2019-ac709da87f (vendor-advisory)
- security.netapp.com/advisory/ntap-20190828-0001/
- github.com/irsl/gnu-patch-vulnerabilities