9.3

CVE-2018-20969: gnu patch OS Command Injection

CVSS: 9.3v2.0HighModified
AliasesALPINE-CVE-2018-20969UBUNTU-CVE-2018-20969DEBIAN-CVE-2018-20969
Published 16-08-2019Last modified 05-08-2024

Vulnerability summary

CVE-2018-20969 is a high (CVSS 9.3) OS Command Injection vulnerability in gnu patch. EPSS estimates a 2.68% chance of exploitation in the next 30 days, higher than 85.6% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.3/10
010
High · v2.0 (NVD)
EPSS score
2.68%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 8 · Related 4

Timeline

  1. 16-08-2019
    PublishedVulnerability first disclosed.
  2. 05-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 6 sources · 2 versions

EPSS trend

Probability

2.68%

Chance of exploitation in the next 30 days

Percentile

86%

Versus all other CVEs

30-day change

0.00 pp

From 2.68% on 19-09-2026

19-09-202619-10-2026
EPSS score
2.68%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (seclists.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Alpine1 product
  • patch< 2.7.6-r6
Chainguard1 product
  • patch< 2.7.6-r3
Debian1 product
  • patch< 2.7.6-5
Gnu1 product
Ubuntu1 product
  • patch< 2.7.1-4ubuntu2.4+esm1 | < 2.7.5-1ubuntu0.16.04.2 | < 2.7.6-2ubuntu1.1
Wolfi1 product
  • patch< 2.7.6-r3

6 vendors · 6 products

References

16 links
Show all 16 references