{"id":"JLSEC-2026-17","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-03-31T17:00:32.579825Z","published":"2026-03-31T16:50:26.988Z","upstream":["CVE-2019-13638"],"database_specific":{"sources":[{"id":"CVE-2019-13638","modified":"2024-11-21T04:25:25.007Z","imported":"2026-03-31T16:10:31.554Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2019-13638","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2019-13638","published":"2019-07-26T13:15:12.783Z"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:2798"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:2964"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:3757"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:3758"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:4061"},{"type":"WEB","url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0"},{"type":"WEB","url":"https://github.com/irsl/gnu-patch-vulnerabilities"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/"},{"type":"WEB","url":"https://seclists.org/bugtraq/2019/Aug/29"},{"type":"WEB","url":"https://seclists.org/bugtraq/2019/Jul/54"},{"type":"WEB","url":"https://security-tracker.debian.org/tracker/CVE-2019-13638"},{"type":"WEB","url":"https://security.gentoo.org/glsa/201908-22"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20190828-0001/"},{"type":"WEB","url":"https://www.debian.org/security/2019/dsa-4489"},{"type":"WEB","url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:2798"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:2964"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:3757"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:3758"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2019:4061"},{"type":"WEB","url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0"},{"type":"WEB","url":"https://github.com/irsl/gnu-patch-vulnerabilities"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/"},{"type":"WEB","url":"https://seclists.org/bugtraq/2019/Aug/29"},{"type":"WEB","url":"https://seclists.org/bugtraq/2019/Jul/54"},{"type":"WEB","url":"https://security-tracker.debian.org/tracker/CVE-2019-13638"},{"type":"WEB","url":"https://security.gentoo.org/glsa/201908-22"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20190828-0001/"},{"type":"WEB","url":"https://www.debian.org/security/2019/dsa-4489"}],"affected":[{"package":{"name":"patch_jll","ecosystem":"Julia","purl":"pkg:julia/patch_jll?uuid=c7bec4a6-5215-51fd-b0a3-64ceaaad3a34"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.8.0+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-17.json"}}],"schema_version":"1.7.5"}