# CVE-2019-13638

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2019-07-26 · Modified: 2024-08-04
- Aliases: ALPINE-CVE-2019-13638, UBUNTU-CVE-2019-13638, DEBIAN-CVE-2019-13638, CGA-4m26-hvqv-px79, CGA-vpx4-486p-rrhq
- Record: https://cvemate.com/vulnerability/CVE-2019-13638 · JSON: https://cvemate.com/vulnerability/CVE-2019-13638/json

## Description

```text
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.
```

## Signals

- CVSS: 9.3 high (v2.0, NVD) AV:N/AC:M/Au:N/C:C/I:C/A:C
- EPSS: 4.53%, percentile 91.805%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine patch (Alpine Linux): \< 2.7.6-r6 \| \< 2.7.6-r0 \| \< 2.7.6-r4
- chainguard patch (Chainguard): \< 2.7.6-r3
- wolfi patch (Wolfi): \< 2.7.6-r3
- debian patch (Debian): \< 2.7.6-5
- ubuntu patch (Ubuntu): \< 2.7.1-4ubuntu2.4+esm1 \| \< 2.7.5-1ubuntu0.16.04.2 \| \< 2.7.6-2ubuntu1.1
- debian debian\_linux: 8.0 \| 9.0 \| 10.0
- gnu patch: 2.7.6

## References (first 20 of 21)

- <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>
- <https://security.alpinelinux.org/vuln/CVE-2019-13638>
- <https://ubuntu.com/security/CVE-2019-13638>
- <https://ubuntu.com/security/notices/USN-4071-1>
- <https://ubuntu.com/security/notices/USN-4071-2>
- <https://www.cve.org/CVERecord?id=CVE-2019-13638>

---

Data as of 2026-12-05T03:20:49.256Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
