{"id":"CVE-2018-20969","details":"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.","modified":"2026-04-16T01:38:33.251230301Z","published":"2019-08-16T04:15:09.860Z","related":["CGA-r86q-78r7-8mwq"],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:3757"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:3758"},{"type":"ADVISORY","url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2798"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2964"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:4061"},{"type":"FIX","url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0"},{"type":"FIX","url":"https://seclists.org/bugtraq/2019/Aug/29"},{"type":"PACKAGE","url":"https://github.com/irsl/gnu-patch-vulnerabilities"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://cgit.git.savannah.gnu.org/cgit/patch.git","events":[{"introduced":"0"},{"fixed":"3fcd042d26d70856e826a42b5f93dc4854d80bf0"}]},{"type":"GIT","repo":"https://git.savannah.gnu.org/git/patch.git/","events":[{"introduced":"0"},{"last_affected":"40b387de08653a1e46872b8ac1a6a14b9b94feb3"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.7.6"}]}}],"versions":["v2.1","v2.2","v2.3","v2.4","v2.5","v2.5.3","v2.5.4","v2.5.7","v2.5.8","v2.5.9","v2.6","v2.6.1","v2.7","v2.7.1","v2.7.2","v2.7.3","v2.7.4","v2.7.5","v2.7.6"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-20969.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}