CVE-2019-13638
publishedpatch: OS shell command injection when processing crafted patch files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2019-1317 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | patch | Fixed | 2.7.6-r6 | Package fix record |
| Debian | buster | patch | Advisory build | 2.7.6-3+deb10u1 | DSA-4489-1 |
| Oracle Linux | 7 | patchaarch64 | Advisory build | 0:2.7.1-12.el7_7 | ELSA-2019-2964 |
| Red Hat Enterprise Linux | RHEL-7 | patchppc64 | Advisory build | 2.7.1-11.el7_5 | RHSA-2019:3757 |
| Ubuntu | bionic | patch | Advisory build | 2.7.6-2ubuntu1.1 | USN-4071-1 |
| Amazon Linux | AL2 | patchaarch64 | Listed in advisory | Not stated | ALAS2-2019-1317 |
Show 72 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.10 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.11 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.12 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.13 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.14 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.15 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.16 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.17 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.18 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.19 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.20 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.21 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.22 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.23 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.24 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Alpine Linux | v3.7 | patch | Fixed | 2.7.6-r0 | Package fix record |
| Alpine Linux | v3.8 | patch | Fixed | 2.7.6-r4 | Package fix record |
| Alpine Linux | v3.9 | patch | Fixed | 2.7.6-r6 | Package fix record |
| Debian | jessie | patch | Advisory build | 2.7.5-1+deb8u3 | DLA-1864-1 |
| Debian | stretch | patch | Advisory build | 2.7.5-1+deb9u2 | DSA-4489-1 |
| Oracle Linux | 7 | patchx86_64 | Advisory build | 0:2.7.1-12.el7_7 | ELSA-2019-2964 |
| Oracle Linux | 8 | patchaarch64 | Advisory build | 0:2.7.6-9.el8_0 | ELSA-2019-2798 |
| Oracle Linux | 8 | patchx86_64 | Advisory build | 0:2.7.6-9.el8_0 | ELSA-2019-2798 |
| Red Hat Enterprise Linux | RHEL-7 | patchppc64 | Advisory build | 2.7.1-11.el7_6 | RHSA-2019:3758 |
| Red Hat Enterprise Linux | RHEL-7 | patchppc64 | Advisory build | 2.7.1-12.el7_7 | RHSA-2019:2964 |
| Red Hat Enterprise Linux | RHEL-7 | patchppc64le | Advisory build | 2.7.1-11.el7_4 | RHSA-2019:4061 |
| Red Hat Enterprise Linux | RHEL-7 | patchppc64le | Advisory build | 2.7.1-11.el7_5 | RHSA-2019:3757 |
| Red Hat Enterprise Linux | RHEL-7 | patchppc64le | Advisory build | 2.7.1-11.el7_6 | RHSA-2019:3758 |
| Red Hat Enterprise Linux | RHEL-7 | patchppc64le | Advisory build | 2.7.1-12.el7_7 | RHSA-2019:2964 |
| Red Hat Enterprise Linux | RHEL-7 | patchs390x | Advisory build | 2.7.1-11.el7_5 | RHSA-2019:3757 |
| Red Hat Enterprise Linux | RHEL-7 | patchs390x | Advisory build | 2.7.1-11.el7_6 | RHSA-2019:3758 |
| Red Hat Enterprise Linux | RHEL-7 | patchs390x | Advisory build | 2.7.1-12.el7_7 | RHSA-2019:2964 |
| Red Hat Enterprise Linux | RHEL-7 | patchsrc | Advisory build | 2.7.1-11.el7_4 | RHSA-2019:4061 |
| Red Hat Enterprise Linux | RHEL-7 | patchsrc | Advisory build | 2.7.1-11.el7_5 | RHSA-2019:3757 |
| Red Hat Enterprise Linux | RHEL-7 | patchsrc | Advisory build | 2.7.1-11.el7_6 | RHSA-2019:3758 |
| Red Hat Enterprise Linux | RHEL-7 | patchsrc | Advisory build | 2.7.1-12.el7_7 | RHSA-2019:2964 |
| Red Hat Enterprise Linux | RHEL-7 | patchx86_64 | Advisory build | 2.7.1-11.el7_4 | RHSA-2019:4061 |
| Red Hat Enterprise Linux | RHEL-7 | patchx86_64 | Advisory build | 2.7.1-11.el7_5 | RHSA-2019:3757 |
| Red Hat Enterprise Linux | RHEL-7 | patchx86_64 | Advisory build | 2.7.1-11.el7_6 | RHSA-2019:3758 |
| Red Hat Enterprise Linux | RHEL-7 | patchx86_64 | Advisory build | 2.7.1-12.el7_7 | RHSA-2019:2964 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfoppc64 | Advisory build | 2.7.1-11.el7_5 | RHSA-2019:3757 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfoppc64 | Advisory build | 2.7.1-11.el7_6 | RHSA-2019:3758 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfoppc64 | Advisory build | 2.7.1-12.el7_7 | RHSA-2019:2964 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfoppc64le | Advisory build | 2.7.1-11.el7_4 | RHSA-2019:4061 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfoppc64le | Advisory build | 2.7.1-11.el7_5 | RHSA-2019:3757 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfoppc64le | Advisory build | 2.7.1-11.el7_6 | RHSA-2019:3758 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfoppc64le | Advisory build | 2.7.1-12.el7_7 | RHSA-2019:2964 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfos390x | Advisory build | 2.7.1-11.el7_5 | RHSA-2019:3757 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfos390x | Advisory build | 2.7.1-11.el7_6 | RHSA-2019:3758 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfos390x | Advisory build | 2.7.1-12.el7_7 | RHSA-2019:2964 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfox86_64 | Advisory build | 2.7.1-11.el7_4 | RHSA-2019:4061 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfox86_64 | Advisory build | 2.7.1-11.el7_5 | RHSA-2019:3757 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfox86_64 | Advisory build | 2.7.1-11.el7_6 | RHSA-2019:3758 |
| Red Hat Enterprise Linux | RHEL-7 | patch-debuginfox86_64 | Advisory build | 2.7.1-12.el7_7 | RHSA-2019:2964 |
| Red Hat Enterprise Linux | RHEL-8 | patchaarch64 | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patchppc64le | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patchs390x | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patchsrc | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patchx86_64 | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patch-debuginfoaarch64 | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patch-debuginfoppc64le | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patch-debuginfos390x | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patch-debuginfox86_64 | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patch-debugsourceaarch64 | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patch-debugsourceppc64le | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patch-debugsources390x | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Red Hat Enterprise Linux | RHEL-8 | patch-debugsourcex86_64 | Advisory build | 2.7.6-9.el8_0 | RHSA-2019:2798 |
| Ubuntu | esm | patch | Advisory build | 2.7.1-4ubuntu2.4+esm1 | USN-4071-2 |
| Ubuntu | xenial | patch | Advisory build | 2.7.5-1ubuntu0.16.04.2 | USN-4071-1 |
| Amazon Linux | AL2 | patchi686 | Listed in advisory | Not stated | ALAS2-2019-1317 |
| Amazon Linux | AL2 | patchsrc | Listed in advisory | Not stated | ALAS2-2019-1317 |
| Amazon Linux | AL2 | patchx86_64 | Listed in advisory | Not stated | ALAS2-2019-1317 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
15- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- RHSA-2019:2798 https://access.redhat.com/errata/RHSA-2019:2798
- RHSA-2019:2964 https://access.redhat.com/errata/RHSA-2019:2964
- RHSA-2019:3757 https://access.redhat.com/errata/RHSA-2019:3757
- RHSA-2019:3758 https://access.redhat.com/errata/RHSA-2019:3758
- RHSA-2019:4061 https://access.redhat.com/errata/RHSA-2019:4061
- https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0
- https://github.com/irsl/gnu-patch-vulnerabilities
- FEDORA-2019-ac709da87f https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/
- 20190816 Details about recent GNU patch vulnerabilities https://seclists.org/bugtraq/2019/Aug/29
- 20190730 [SECURITY] [DSA 4489-1] patch security update https://seclists.org/bugtraq/2019/Jul/54
- https://security-tracker.debian.org/tracker/CVE-2019-13638
- GLSA-201908-22 https://security.gentoo.org/glsa/201908-22
- https://security.netapp.com/advisory/ntap-20190828-0001/
- DSA-4489 https://www.debian.org/security/2019/dsa-4489
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- cda045964653c9f993a4fe3b16fbddb57d19c5104abe7e49fd52f10c45993e8d
- Ingested
- 23 Sep 2026, 07:45:55 UTC
- Source record
- Official CVE record