
CVE catalog
CVE-2019-13638
patch: CVE-2019-13638
- Severity
- High · CVSS 7.8
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 4.49% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | patch | sid | 2.8.1-1 | fixed |
| Debian | patch | forky | 2.8.1-1 | fixed |
| Debian | patch | trixie | 2.8-2 | fixed |
| Debian | patch | bookworm | 2.7.6-7 | fixed |
| Alpine | patch | 3.10 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.11 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.12 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.13 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.14 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.15 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.16 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.17 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.18 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.19 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.20 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.21 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.22 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.23 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.24 | 2.7.6-r6 | fixed |
| Alpine | patch | 3.7 | 2.7.6-r0 | fixed |
| Alpine | patch | 3.8 | 2.7.6-r4 | fixed |
| Alpine | patch | 3.9 | 2.7.6-r6 | fixed |
| Ubuntu | patch | pro | 2.7.1-3 | vulnerable |
| Ubuntu | patch | pro | 2.7.1-4 | vulnerable |
| Ubuntu | patch | pro | 2.7.1-4ubuntu1 | vulnerable |
| Ubuntu | patch | pro | 2.7.1-4ubuntu2 | vulnerable |
| Ubuntu | patch | pro | 2.7.1-4ubuntu2.3 | vulnerable |
| Ubuntu | patch | pro | 2.7.1-4ubuntu2.4 | vulnerable |
| Ubuntu | patch | pro | 2.7.1-4ubuntu2.4+esm1 | fixed |
| Ubuntu | patch | 16.04 | 2.7.5-1 | vulnerable |
| Ubuntu | patch | 16.04 | 2.7.5-1ubuntu0.16.04.1 | vulnerable |
| Ubuntu | patch | 16.04 | 2.7.5-1ubuntu0.16.04.2 | fixed |
| Ubuntu | patch | 18.04 | 2.7.5-1build1 | vulnerable |
| Ubuntu | patch | 18.04 | 2.7.6-1 | vulnerable |
| Ubuntu | patch | 18.04 | 2.7.6-2ubuntu1 | vulnerable |
| Ubuntu | patch | 18.04 | 2.7.6-2ubuntu1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | patch | source | sid | 2.7.6-5 | not yet assigned | Not reported | Not reported |
| Debian | patch | source | forky | 2.7.6-5 | not yet assigned | Not reported | Not reported |
| Debian | patch | source | trixie | 2.7.6-5 | not yet assigned | Not reported | Not reported |
| Debian | patch | source | bookworm | 2.7.6-5 | not yet assigned | Not reported | Not reported |
| Alpine | patch | apk | 3.10 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.11 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.12 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.13 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.14 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.15 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.16 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.17 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.18 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.19 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.20 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.21 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.22 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.23 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.24 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.7 | 2.7.6-r0 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.8 | 2.7.6-r4 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Alpine | patch | apk | 3.9 | 2.7.6-r6 | Not reported | ALPINE-CVE-2019-13638 | Not reported |
| Ubuntu | patch | deb | pro | 2.7.1-4ubuntu2.4+esm1 | Not reported | UBUNTU-CVE-2019-13638 | Not reported |
| Ubuntu | patch | deb | 16.04 | 2.7.5-1ubuntu0.16.04.2 | Not reported | UBUNTU-CVE-2019-13638 | Not reported |
| Ubuntu | patch | deb | 18.04 | 2.7.6-2ubuntu1.1 | Not reported | UBUNTU-CVE-2019-13638 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [patch]Fixed
Details (2)
2.7.6-7· amd64 · bookwormFixed · Fixed:
2.7.6-5dsa · patch · debian · bookworm; dsa · patch · debian · 12
2.7.6-7· arm64 · bookwormFixed · Fixed:
2.7.6-5dsa · patch · debian · bookworm; dsa · patch · debian · 12
[Debian 13 (Trixie)]
- [patch]Fixed
Details (2)
2.8-2· amd64 · trixieFixed · Fixed:
2.7.6-5dsa · patch · debian · 13
2.8-2· arm64 · trixieFixed · Fixed:
2.7.6-5dsa · patch · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2019:2798]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2019_2798.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2019-13638]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2019-13638]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2019-13638]
- [https://security-tracker.debian.org/tracker/CVE-2019-13638]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]