{"id":"CVE-2018-20969","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-20969","generatedAt":"2026-10-28T22:41:52.864Z","title":"do_ed_script in pch.c in GNU patch through 2.7.6 does not block strings beginning with a ! character.","description":"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.","published":"2019-08-16T04:15:10.000Z","lastModified":"2026-06-17T01:53:51.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.0","score":7.8,"severity":"HIGH","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"cwe":["CWE-78"],"affected":["gnu/patch"],"epss":{"score":0.02684,"percentile":0.85757,"date":"2026-10-27","history":[{"date":"2026-09-21","score":0.04835,"percentile":0.91612},{"date":"2026-09-22","score":0.02684,"percentile":0.85182}]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (2.68%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","tags":["Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://access.redhat.com/errata/RHSA-2019:2798","source":"cve@mitre.org"},{"url":"https://access.redhat.com/errata/RHSA-2019:2964","source":"cve@mitre.org"},{"url":"https://access.redhat.com/errata/RHSA-2019:3757","source":"cve@mitre.org"},{"url":"https://access.redhat.com/errata/RHSA-2019:3758","source":"cve@mitre.org"},{"url":"https://access.redhat.com/errata/RHSA-2019:4061","source":"cve@mitre.org"},{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","tags":["Patch","Vendor Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/irsl/gnu-patch-vulnerabilities","source":"cve@mitre.org"},{"url":"https://seclists.org/bugtraq/2019/Aug/29","tags":["Exploit","Mailing List","Patch","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2019:2798","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2019:2964","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2019:3757","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2019:3758","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2019:4061","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","tags":["Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/irsl/gnu-patch-vulnerabilities","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://seclists.org/bugtraq/2019/Aug/29","tags":["Exploit","Mailing List","Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-20969","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}