{"id":"CVE-2019-13638","state":"PUBLISHED","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 metachar","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.","publishedAt":"2019-07-26T12:22:43.000Z","updatedAt":"2024-08-04T23:57:39.539Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://security-tracker.debian.org/tracker/CVE-2019-13638","https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","https://www.debian.org/security/2019/dsa-4489","https://seclists.org/bugtraq/2019/Jul/54","https://seclists.org/bugtraq/2019/Aug/29","http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","https://security.gentoo.org/glsa/201908-22","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/","https://security.netapp.com/advisory/ntap-20190828-0001/","https://github.com/irsl/gnu-patch-vulnerabilities","https://access.redhat.com/errata/RHSA-2019:2798","https://access.redhat.com/errata/RHSA-2019:2964","https://access.redhat.com/errata/RHSA-2019:3757","https://access.redhat.com/errata/RHSA-2019:3758","https://access.redhat.com/errata/RHSA-2019:4061"],"weaknesses":[],"ingestedAt":"2026-10-29T19:45:27.952Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2019/13xxx/CVE-2019-13638.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2019-13638","state":"PUBLISHED","datePublished":"2019-07-26T12:22:43.000Z","dateUpdated":"2024-08-04T23:57:39.539Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2019-07-17T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"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","name":"DSA-4489","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://seclists.org/bugtraq/2019/Jul/54","name":"20190730 [SECURITY] [DSA 4489-1] patch security update","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://seclists.org/bugtraq/2019/Aug/29","name":"20190816 Details about recent GNU patch vulnerabilities","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","name":"GLSA-201908-22","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/","name":"FEDORA-2019-ac709da87f","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","name":"RHSA-2019:2798","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2964","name":"RHSA-2019:2964","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3757","name":"RHSA-2019:3757","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3758","name":"RHSA-2019:3758","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:4061","name":"RHSA-2019:4061","tags":["vendor-advisory","x_refsource_REDHAT"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2019-12-03T13:06:02.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-13638","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":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://security-tracker.debian.org/tracker/CVE-2019-13638","refsource":"MISC","url":"https://security-tracker.debian.org/tracker/CVE-2019-13638"},{"name":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","refsource":"MISC","url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0"},{"name":"DSA-4489","refsource":"DEBIAN","url":"https://www.debian.org/security/2019/dsa-4489"},{"name":"20190730 [SECURITY] [DSA 4489-1] patch security update","refsource":"BUGTRAQ","url":"https://seclists.org/bugtraq/2019/Jul/54"},{"name":"20190816 Details about recent GNU patch vulnerabilities","refsource":"BUGTRAQ","url":"https://seclists.org/bugtraq/2019/Aug/29"},{"name":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"},{"name":"GLSA-201908-22","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201908-22"},{"name":"FEDORA-2019-ac709da87f","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/"},{"name":"https://security.netapp.com/advisory/ntap-20190828-0001/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20190828-0001/"},{"name":"https://github.com/irsl/gnu-patch-vulnerabilities","refsource":"MISC","url":"https://github.com/irsl/gnu-patch-vulnerabilities"},{"name":"RHSA-2019:2798","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:2798"},{"name":"RHSA-2019:2964","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:2964"},{"name":"RHSA-2019:3757","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:3757"},{"name":"RHSA-2019:3758","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:3758"},{"name":"RHSA-2019:4061","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:4061"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://security-tracker.debian.org/tracker/CVE-2019-13638","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.debian.org/security/2019/dsa-4489","name":"DSA-4489","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://seclists.org/bugtraq/2019/Jul/54","name":"20190730 [SECURITY] [DSA 4489-1] patch security update","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"https://seclists.org/bugtraq/2019/Aug/29","name":"20190816 Details about recent GNU patch vulnerabilities","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.gentoo.org/glsa/201908-22","name":"GLSA-201908-22","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/","name":"FEDORA-2019-ac709da87f","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20190828-0001/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/irsl/gnu-patch-vulnerabilities","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2798","name":"RHSA-2019:2798","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2964","name":"RHSA-2019:2964","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3757","name":"RHSA-2019:3757","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3758","name":"RHSA-2019:3758","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:4061","name":"RHSA-2019:4061","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T23:57:39.539Z"}}]}}}