{"api_version":"1","generated_at":"2026-04-23T05:14:51+00:00","cve":"CVE-2018-20969","urls":{"html":"https://cve.report/CVE-2018-20969","api":"https://cve.report/api/cve/CVE-2018-20969.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-20969","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-20969"},"summary":{"title":"CVE-2018-20969","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2019-08-16 04:15:00","updated_at":"2019-09-05 16:15:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2019:2798","name":"RHSA-2019:2798","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://access.redhat.com/errata/RHSA-2019:3758","name":"RHSA-2019:3758","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://seclists.org/bugtraq/2019/Aug/29","name":"20190816 Details about recent GNU patch vulnerabilities","refsource":"BUGTRAQ","tags":["Exploit","Mailing List","Patch","Third Party Advisory"],"title":"Bugtraq: Details about recent GNU patch vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/irsl/gnu-patch-vulnerabilities","name":"https://github.com/irsl/gnu-patch-vulnerabilities","refsource":"MISC","tags":[],"title":"GitHub - irsl/gnu-patch-vulnerabilities: The GNU patch utility was prone vulnerable to multiple attacks through version 2.7.6. You can find my related PoC files here.","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://access.redhat.com/errata/RHSA-2019:2964","name":"RHSA-2019:2964","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://access.redhat.com/errata/RHSA-2019:3757","name":"RHSA-2019:3757","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://access.redhat.com/errata/RHSA-2019:4061","name":"RHSA-2019:4061","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","name":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","refsource":"MISC","tags":["Patch","Vendor Advisory"],"title":"patch.git - GNU patch","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","name":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","refsource":"MISC","tags":["Third Party Advisory","VDB Entry"],"title":"GNU patch Command Injection / Directory Traversal ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20969","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20969","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"20969","vulnerable":"1","versionEndIncluding":"2.7.6","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"patch","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2018-20969","qid":"377009","title":"Alibaba Cloud Linux Security Update for patch (ALINUX2-SA-2019:0114)"},{"cve":"CVE-2018-20969","qid":"378297","title":"Virtuozzo Linux Security Update for patch (VZLSA-2019:2964)"},{"cve":"CVE-2018-20969","qid":"500513","title":"Alpine Linux Security Update for patch"},{"cve":"CVE-2018-20969","qid":"504272","title":"Alpine Linux Security Update for patch"},{"cve":"CVE-2018-20969","qid":"671067","title":"EulerOS Security Update for patch (EulerOS-SA-2019-2645)"},{"cve":"CVE-2018-20969","qid":"900088","title":"CBL-Mariner Linux Security Update for patch 2.7.6"},{"cve":"CVE-2018-20969","qid":"901193","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for patch (6786-1)"},{"cve":"CVE-2018-20969","qid":"902978","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for patch (1917)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-20969","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","refsource":"MISC","name":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0"},{"refsource":"BUGTRAQ","name":"20190816 Details about recent GNU patch vulnerabilities","url":"https://seclists.org/bugtraq/2019/Aug/29"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"},{"refsource":"MISC","name":"https://github.com/irsl/gnu-patch-vulnerabilities","url":"https://github.com/irsl/gnu-patch-vulnerabilities"},{"refsource":"REDHAT","name":"RHSA-2019:2798","url":"https://access.redhat.com/errata/RHSA-2019:2798"},{"refsource":"REDHAT","name":"RHSA-2019:2964","url":"https://access.redhat.com/errata/RHSA-2019:2964"},{"refsource":"REDHAT","name":"RHSA-2019:3757","url":"https://access.redhat.com/errata/RHSA-2019:3757"},{"refsource":"REDHAT","name":"RHSA-2019:3758","url":"https://access.redhat.com/errata/RHSA-2019:3758"},{"refsource":"REDHAT","name":"RHSA-2019:4061","url":"https://access.redhat.com/errata/RHSA-2019:4061"}]}},"nvd":{"publishedDate":"2019-08-16 04:15:00","lastModifiedDate":"2019-09-05 16:15:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":9.3},"severity":"HIGH","exploitabilityScore":8.6,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gnu:patch:*:*:*:*:*:*:*:*","versionEndIncluding":"2.7.6","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"20969","Ordinal":"154423","Title":"CVE-2018-20969","CVE":"CVE-2018-20969","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"20969","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"20969","Ordinal":"2","NoteData":"2019-08-15","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"20969","Ordinal":"3","NoteData":"2019-12-03","Type":"Other","Title":"Modified"}]}}}