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.
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Link | Tags |
---|---|
https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0 | patch vendor advisory |
https://seclists.org/bugtraq/2019/Aug/29 | mailing list patch exploit third party advisory |
http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html | vdb entry third party advisory |
https://github.com/irsl/gnu-patch-vulnerabilities | |
https://access.redhat.com/errata/RHSA-2019:2798 | vendor advisory |
https://access.redhat.com/errata/RHSA-2019:2964 | vendor advisory |
https://access.redhat.com/errata/RHSA-2019:3757 | vendor advisory |
https://access.redhat.com/errata/RHSA-2019:3758 | vendor advisory |
https://access.redhat.com/errata/RHSA-2019:4061 | vendor advisory |