CVE-2018-20969
No exploitation reported by the sources we read.
- Published2019-08-16
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2019-08-1604:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.7 | ≤ 2.7.6 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- patchWolfiall versions · fixed in 2.7.6-r3
- patchUbuntu:Pro:14.04:LTSall versions · fixed in 2.7.1-4ubuntu2.4+esm1
- patchUbuntu:18.04:LTSall versions · fixed in 2.7.6-2ubuntu1.1
- patchUbuntu:16.04:LTSall versions · fixed in 2.7.5-1ubuntu0.16.04.2
- patchRed Hat:rhel_tus:7.4::serverall versions · fixed in 0:2.7.1-11.el7_4and 1 other package
- patchRed Hat:rhel_eus:7.6::serverall versions · fixed in 0:2.7.1-11.el7_6and 1 other package
- patchRed Hat:rhel_eus:7.6::computenodeall versions · fixed in 0:2.7.1-11.el7_6and 1 other package
- patchRed Hat:rhel_eus:7.5::serverall versions · fixed in 0:2.7.1-11.el7_5and 1 other package
35 more package ranges on OSV.dev
Vendor advisories
patch: do_ed_script in pch.c does not block strings beginning with a ! character
patch.src as a component of Red Hat Enterprise Linux 5
Red Hat Security Advisory: patch security update
Red Hat Security Advisory: patch security update
Red Hat Security Advisory: patch security update
Red Hat Security Advisory: patch security update
Red Hat Security Advisory: patch security update
Fix
- Vendor fix Red Hat Product Security RHSA-2019:4061 · 11 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- No fix planned, says the vendor Red Hat Product Security CVE-2018-20969 · 1 productOut of support scope
Advisories and patches
- git.savannah.gnu.orgPatch · Vendor Advisory
- seclists.orgPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.07.8read 2026-10-23
- NVDCVSS 2.09.3read 2026-10-23
- NVDweakness (CWE)CWE-78read 2026-10-23
- FIRST EPSSEPSS score2.7 %2026-11-08
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-35102same flawAzure Linux · MIT
- AZL-6786same flawAzure Linux · MIT
- CGA-7vwc-h6mq-fvr4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gf54-63hr-xx5xsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2018-13506same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-g5pm-269j-95rrsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2026-13same flawJulia Security Advisories · CC-BY-4.0
- DLA-1864-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-4489-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2020-0093advisory covering several CVEsMageia · LicenseRef-unstated
- RHSA-2019:2798advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2019:2964advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2019:3757advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2019:3758advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2019:4061advisory covering several CVEsRed Hat · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published
- 2019-08-16
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-g5pm-269j-95rr
Frequently asked questions
What is CVE-2018-20969?
Is CVE-2018-20969 actively exploited?
What is the CVSS score for CVE-2018-20969?
Running patch? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2018-6951same product
- CVE-2018-1000156same product
- CVE-2019-13638same product
- CVE-2019-13636same product
- CVE-2016-10713same product
- CVE-2019-20633same product
- CVE-2021-45261same product
- CVE-2026-115207same productPatch: filename validation bypass in reversal fallback allows file creation outside the working directory
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-g5pm-269j-95rr
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0