CVE-2018-20969

HIGH

GNU Patch < 2.7.6 - OS Command Injection

Title source: rule

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.

Scores

CVSS v3 7.8
EPSS 0.0035
EPSS Percentile 57.3%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE
CWE-78
Status published

Affected Products (1)

gnu/patch < 2.7.6

Timeline

Published Aug 16, 2019
Tracked Since Feb 18, 2026