{"id":"CVE-2019-13638","published":"2019-07-26T12:22:43Z","modified":"2024-08-04T23:57:39Z","title":"GNU patch through 2.7.6 is vulnerable to OS shell command injection that can be exploited by opening a crafted patch…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04493,"percentile":0.91705,"provenance":"source"},"cwes":[],"references":[{"url":"https://security-tracker.debian.org/tracker/CVE-2019-13638","tags":["x_refsource_MISC"]},{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2019/dsa-4489","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://seclists.org/bugtraq/2019/Jul/54","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://seclists.org/bugtraq/2019/Aug/29","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/201908-22","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.netapp.com/advisory/ntap-20190828-0001/","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/irsl/gnu-patch-vulnerabilities","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2798","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2964","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3757","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3758","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:4061","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":23.3,"factors":[{"name":"EPSS percentile","points":18.34},{"name":"Public exploit code","points":5.0}]},"summary":{"text":"GNU patch through version 2.7.6 contains an OS shell command injection flaw in its handling of ed-style diff payloads, and the ed editor does not need to be installed for the issue to apply. An attacker can trigger it by getting a user to open a crafted patch file containing shell metacharacters in an ed-style diff payload, so user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:09:33Z"},"euvd":{"id":"EUVD-2019-5066","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"]}