{"id":"CVE-2019-13638","url":"https://www.cyber-defence.io/tools/cve/CVE-2019-13638","generatedAt":"2026-10-29T01:57:31.822Z","title":"GNU patch through 2.7.6 is vulnerable to OS shell command injection that can be exploited by opening a crafted patch file that contains an ed style diff payload with shell metacharacters.","description":"GNU patch through 2.7.6 is vulnerable to OS shell command injection that can be exploited by opening a crafted patch file that contains an ed style diff payload with shell metacharacters. The ed editor does not need to be present on the vulnerable system. This is different from CVE-2018-1000156.","published":"2019-07-26T13:15:13.000Z","lastModified":"2026-06-17T02:17:08.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","debian/debian linux"],"epss":{"score":0.04493,"percentile":0.91439,"date":"2026-10-27","history":[{"date":"2026-09-21","score":0.09334,"percentile":0.95218},{"date":"2026-09-22","score":0.04493,"percentile":0.91052}]},"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 (4.49%). 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","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":["Mailing List","Patch","Vendor Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/irsl/gnu-patch-vulnerabilities","source":"cve@mitre.org"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/","source":"cve@mitre.org"},{"url":"https://seclists.org/bugtraq/2019/Aug/29","source":"cve@mitre.org"},{"url":"https://seclists.org/bugtraq/2019/Jul/54","tags":["Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-13638","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/201908-22","source":"cve@mitre.org"},{"url":"https://security.netapp.com/advisory/ntap-20190828-0001/","source":"cve@mitre.org"},{"url":"https://www.debian.org/security/2019/dsa-4489","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","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":["Mailing List","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://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://seclists.org/bugtraq/2019/Aug/29","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://seclists.org/bugtraq/2019/Jul/54","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-13638","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/201908-22","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20190828-0001/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.debian.org/security/2019/dsa-4489","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-13638","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."}