{"schemaVersion":3,"id":"CVE-2019-13638","aliases":["ALPINE-CVE-2019-13638","UBUNTU-CVE-2019-13638","DEBIAN-CVE-2019-13638","CGA-4m26-hvqv-px79","CGA-vpx4-486p-rrhq"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2019-07-26T12:22:43.000Z","modified":"2024-08-04T23:57:39.539Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9.3,"severity":"high","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","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","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","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","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","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","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Wolfi","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","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Chainguard","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","exploitability":4.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.04493,"percentile":0.91385,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.04493},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.09334,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04493,"percentile":0.91385}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.09334,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04493,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04493,"percentile":0.91385}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"alpine","product":"patch","name":"patch","label":"patch","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/patch","purlType":"apk","versions":[{"text":"< 2.7.6-r6","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.6-r0","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.6-r4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.6-r6 | < 2.7.6-r0 | < 2.7.6-r4","eol":null,"hubHref":null},{"vendor":"chainguard","product":"patch","name":"patch","label":"patch","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/patch","purlType":"apk","versions":[{"text":"< 2.7.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.6-r3","eol":null,"hubHref":null},{"vendor":"wolfi","product":"patch","name":"patch","label":"patch","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/patch","purlType":"apk","versions":[{"text":"< 2.7.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.6-r3","eol":null,"hubHref":null},{"vendor":"debian","product":"patch","name":"patch","label":"patch","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/patch","purlType":"deb","versions":[{"text":"< 2.7.6-5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.6-5","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"patch","name":"patch","label":"patch","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/patch","purlType":"deb","versions":[{"text":"< 2.7.1-4ubuntu2.4+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.5-1ubuntu0.16.04.2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.6-2ubuntu1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.1-4ubuntu2.4+esm1 | < 2.7.5-1ubuntu0.16.04.2 | < 2.7.6-2ubuntu1.1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null},{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0 | 9.0 | 10.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"gnu","product":"patch","name":"patch","label":"patch","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.7.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.7.6","eol":null,"hubHref":"/vendor/gnu/patch"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://security-tracker.debian.org/tracker/CVE-2019-13638","label":"security-tracker.debian.org/tracker/CVE-2019-13638","hostname":"security-tracker.debian.org","tags":["X Refsource MISC","Third Party Advisory","Advisory"]},{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","label":"git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0","hostname":"git.savannah.gnu.org","tags":["X Refsource MISC","Mailing List","Patch","Vendor Advisory","FIX"]},{"url":"https://www.debian.org/security/2019/dsa-4489","label":"www.debian.org/security/2019/dsa-4489","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory","Advisory"]},{"url":"https://seclists.org/bugtraq/2019/Jul/54","label":"seclists.org/bugtraq/2019/Jul/54","hostname":"seclists.org","tags":["Mailing List","X Refsource BUGTRAQ","Third Party Advisory","Advisory"]},{"url":"https://seclists.org/bugtraq/2019/Aug/29","label":"seclists.org/bugtraq/2019/Aug/29","hostname":"seclists.org","tags":["Mailing List","X Refsource BUGTRAQ","WEB"]},{"url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","label":"packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","WEB"]},{"url":"https://security.gentoo.org/glsa/201908-22","label":"security.gentoo.org/glsa/201908-22","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20190828-0001/","label":"security.netapp.com/advisory/ntap-20190828-0001/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Advisory"]},{"url":"https://github.com/irsl/gnu-patch-vulnerabilities","label":"github.com/irsl/gnu-patch-vulnerabilities","hostname":"github.com","tags":["X Refsource MISC","PACKAGE"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2798","label":"access.redhat.com/errata/RHSA-2019:2798","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2964","label":"access.redhat.com/errata/RHSA-2019:2964","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3757","label":"access.redhat.com/errata/RHSA-2019:3757","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3758","label":"access.redhat.com/errata/RHSA-2019:3758","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:4061","label":"access.redhat.com/errata/RHSA-2019:4061","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2019-13638","label":"security.alpinelinux.org/vuln/CVE-2019-13638","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-13638","label":"ubuntu.com/security/CVE-2019-13638","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4071-1","label":"ubuntu.com/security/notices/USN-4071-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4071-2","label":"ubuntu.com/security/notices/USN-4071-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-13638","label":"www.cve.org/CVERecord?id=CVE-2019-13638","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-13638","label":"nvd.nist.gov/vuln/detail/CVE-2019-13638","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-1864-1","DSA-4489-1","MGASA-2020-0093","RHSA-2019:2798","RHSA-2019:2964","RHSA-2019:3757","RHSA-2019:3758","RHSA-2019:4061","USN-4071-1","USN-4071-2"],"duplicates":[],"related":["CGA-4WMR-7QP3-55FX","CGA-H9FG-VMQH-CGMW","USN-4071-1","USN-4071-2"]},"timeline":[{"kind":"published","date":"2019-07-26T12:22:43.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T23:57:39.539Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:01:18.620Z","stale":false,"partial":false}}