# CVE-2018-20969

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2019-08-16 · Modified: 2024-08-05
- Aliases: ALPINE-CVE-2018-20969, UBUNTU-CVE-2018-20969, DEBIAN-CVE-2018-20969, CGA-7vwc-h6mq-fvr4, CGA-gf54-63hr-xx5x
- Record: https://cvemate.com/vulnerability/CVE-2018-20969 · JSON: https://cvemate.com/vulnerability/CVE-2018-20969/json

## Description

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

## Signals

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

## Affected

- alpine patch (Alpine Linux): \< 2.7.6-r6
- 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
- gnu patch: ≤ 2.7.6

## References

- <https://git.savannah.gnu.org/cgit/patch.git/commit/?id=3fcd042d26d70856e826a42b5f93dc4854d80bf0>
- <https://seclists.org/bugtraq/2019/Aug/29>
- <http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html>
- <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-2018-20969>
- <https://ubuntu.com/security/CVE-2018-20969>
- <https://ubuntu.com/security/notices/USN-4071-1>
- <https://ubuntu.com/security/notices/USN-4071-2>
- <https://www.cve.org/CVERecord?id=CVE-2018-20969>
- <https://security-tracker.debian.org/tracker/CVE-2018-20969>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-20969>

---

Data as of 2026-12-05T03:11:16.889Z. 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
