
CVE catalog
CVE-2018-20969
patch: CVE-2018-20969
- 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
- 2.68% · Oct 25, 2026
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.
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.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-2018-20969 | Not reported |
| Alpine | patch | apk | 3.11 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.12 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.13 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.14 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.15 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.16 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.17 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.18 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.19 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.20 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.21 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.22 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.23 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.24 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Alpine | patch | apk | 3.9 | 2.7.6-r6 | Not reported | ALPINE-CVE-2018-20969 | Not reported |
| Ubuntu | patch | deb | pro | 2.7.1-4ubuntu2.4+esm1 | Not reported | UBUNTU-CVE-2018-20969 | Not reported |
| Ubuntu | patch | deb | 16.04 | 2.7.5-1ubuntu0.16.04.2 | Not reported | UBUNTU-CVE-2018-20969 | Not reported |
| Ubuntu | patch | deb | 18.04 | 2.7.6-2ubuntu1.1 | Not reported | UBUNTU-CVE-2018-20969 | 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-2018-20969]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-20969]
- [https://osv.dev/vulnerability/DLA-1864-1]
- [https://osv.dev/vulnerability/DSA-4489-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-20969]
- [https://security-tracker.debian.org/tracker/CVE-2018-20969]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]