CVE-2018-20969
HIGHGNU patch < 2.7.6 - OS Command Injection via ed Script ! Character Handling
Title source: llmDescription
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.
References (9)
Core 9
Core References
Patch, Vendor Advisory x_refsource_misc
https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0
Exploit, Mailing List, Patch, Third Party Advisory mailing-list
x_refsource_bugtraq
https://seclists.org/bugtraq/2019/Aug/29
Third Party Advisory, VDB Entry x_refsource_misc
http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
Various Sources x_refsource_misc
https://github.com/irsl/gnu-patch-vulnerabilities
Vendor Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:2798
Vendor Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:2964
Vendor Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:3757
Vendor Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:3758
Vendor Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:4061
Scores
CVSS v3
7.8
EPSS
0.0035
EPSS Percentile
57.8%
Attack Vector
LOCAL
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Details
CWE
CWE-78
Status
published
Products (1)
gnu/patch
< 2.7.6
Published
Aug 16, 2019
Tracked Since
Feb 18, 2026