Vulnerabilities · 2018 · Gnu
CVE-2018-20969
Gnu Patch vulnerability
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.
Affected products
Patch. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gnu Patch runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0 · Patch
- seclists.org/bugtraq/2019/Aug/29 · Exploit
- packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html · Third Party Advisory
- access.redhat.com/errata/RHSA-2019:2798
- access.redhat.com/errata/RHSA-2019:2964
- access.redhat.com/errata/RHSA-2019:3757
- access.redhat.com/errata/RHSA-2019:3758
- access.redhat.com/errata/RHSA-2019:4061
- nvd.nist.gov/vuln/detail/CVE-2018-20969
- cve.org/CVERecord?id=CVE-2018-20969
More vulnerabilities in Gnu products
CVE-2026-24061CVE-2026-0915CVE-2026-0861CVE-2025-66866CVE-2025-66865CVE-2025-66864CVE-2025-66863CVE-2025-66862All 1,147
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.