# CVE-2019-13638: 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…

- Severity: High 7.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.53%, higher than 91% of CVEs (2026-12-01)
- Published: 2019-07-26T12:22:43.000Z
- Modified: 2026-06-17T02:17:07.817Z
- Weaknesses: CWE-78
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu patch: 2.7.6
- debian debian_linux: 8.0; 9.0; 10.0

## Every score

- NVD: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.3 High `AV:N/AC:M/Au:N/C:C/I:C/A:C`

## References

- <https://security-tracker.debian.org/tracker/CVE-2019-13638> (third-party-advisory)
- <https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0> (mailing-list, patch, vendor-advisory)
- <https://www.debian.org/security/2019/dsa-4489> (third-party-advisory, vendor-advisory)
- <https://seclists.org/bugtraq/2019/Jul/54> (mailing-list, third-party-advisory)
- <https://seclists.org/bugtraq/2019/Aug/29> (mailing-list)
- <http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html>
- <https://security.gentoo.org/glsa/201908-22> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20190828-0001/>
- <https://github.com/irsl/gnu-patch-vulnerabilities>
- <https://access.redhat.com/errata/RHSA-2019:2798> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2019:2964> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2019:3757> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2019:3758> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2019:4061> (vendor-advisory)

## Sources

- CVE List: [CVE-2019-13638](https://www.cve.org/CVERecord?id=CVE-2019-13638), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2019-13638](https://nvd.nist.gov/vuln/detail/CVE-2019-13638), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-13638 · Whole record: https://cve.day/CVE-2019-13638.json · Rebuilt by cve.day 2026-11-25T22:57:46.233Z
