CVE-2018-20969
publishedpatch: do_ed_script in pch.c does not block strings beginning with a ! character
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 |
| Amazon Linux | AL2 | patchaarch64 | Listed in advisory | Not stated | ALAS2-2019-1317 |
| Alpine Linux | v3.10 | patch | Fixed | 2.7.6-r6 | Package fix record |
Show 67 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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.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 |
| 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
do_ed_script in pch.c in GNU patch through 2.7.6 does not block strings beginning with a ! character. NOTE: this is the same commit as for CVE-2019-13638, but the ! syntax is specific to ed, and is unrelated to a shell metacharacter.
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
9- 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
- 20190816 Details about recent GNU patch vulnerabilities https://seclists.org/bugtraq/2019/Aug/29
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a39302ad559790703dcc776763fdfa2027b5e51d721321b0707118fe0acc3164
- Ingested
- 23 Sep 2026, 07:44:24 UTC
- Source record
- Official CVE record