CVE-2018-20969: OS Command Injection
A vulnerability was found in doedscript 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.
Reference: https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0 https://seclists.org/bugtraq/2019/Aug/29
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2018-20969?
CVE-2018-20969 has been classified as a medium severity vulnerability.
How do I fix CVE-2018-20969?
To fix CVE-2018-20969, upgrade GNU patch to version 2.7.7 or later.
What software is affected by CVE-2018-20969?
CVE-2018-20969 affects GNU patch versions up to and including 2.7.6.
What type of vulnerability is CVE-2018-20969?
CVE-2018-20969 is a command injection vulnerability associated with the do_ed_script function.
Can CVE-2018-20969 be exploited remotely?
CVE-2018-20969 can potentially be exploited if an attacker can control the input to the affected GNU patch command.