{"id":"CVE-2019-13638","details":"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.","modified":"2026-04-16T01:39:47.418585673Z","published":"2019-07-26T13:15:12.783Z","related":["CGA-4wmr-7qp3-55fx"],"references":[{"type":"WEB","url":"https://seclists.org/bugtraq/2019/Aug/29"},{"type":"WEB","url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2798"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2964"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:3757"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Jul/54"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201908-22"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:3758"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:4061"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2019-13638"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20190828-0001/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4489"},{"type":"FIX","url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0"},{"type":"PACKAGE","url":"https://github.com/irsl/gnu-patch-vulnerabilities"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://cgit.git.savannah.gnu.org/cgit/patch.git","events":[{"introduced":"0"},{"fixed":"3fcd042d26d70856e826a42b5f93dc4854d80bf0"}]},{"type":"GIT","repo":"https://git.savannah.gnu.org/git/patch.git/","events":[{"introduced":"0"},{"last_affected":"40b387de08653a1e46872b8ac1a6a14b9b94feb3"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.7.6"}]}}],"versions":["v2.1","v2.2","v2.3","v2.4","v2.5","v2.5.3","v2.5.4","v2.5.7","v2.5.8","v2.5.9","v2.6","v2.6.1","v2.7","v2.7.1","v2.7.2","v2.7.3","v2.7.4","v2.7.5","v2.7.6"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-13638.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]},{"events":[{"introduced":"0"},{"last_affected":"10.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}