Severity
7.8HIGH
EPSS
36.8%
top 2.86%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedApr 6
Latest updateMay 14

Description

GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD's CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.

CVSS vector

CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9

Affected Packages6 packages

Debianpatch< 2.7.6-2+3
Ubuntupatch< 2.7.1-4ubuntu2.4+1
NVDgnu/patch2.7.6

Also affects: Debian Linux 7.0, Ubuntu Linux 12.04, 14.04, 16.04, 17.10, Enterprise Linux 6.4, 6.5, 6.6, 7.2, 7.3, 7.4, 7.6, 6.7, 7.5

🔴Vulnerability Details

4
GHSA
GHSA-r9rq-mhxg-686q: GNU Patch version 22022-05-14
OSV
patch vulnerabilities2018-04-10
OSV
CVE-2018-1000156: GNU Patch version 22018-04-06
CVEList
CVE-2018-1000156: GNU Patch version 22018-04-06

📋Vendor Advisories

7
Red Hat
patch: OS shell command injection when processing crafted patch files2019-07-29
Microsoft
GNU patch through 2.7.6 is vulnerable to OS shell command injection that can be exploited by opening a crafted patch file that contains an ed style diff payload with shell metacharacters. The ed edito2019-07-09
Ubuntu
Patch vulnerabilities2018-04-16
Microsoft
GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear t2018-04-10
Ubuntu
Patch vulnerabilities2018-04-10

💬Community

3
Bugzilla
CVE-2019-13638 patch: OS shell command injection when processing crafted patch files2019-07-29
Bugzilla
CVE-2018-1000156 patch: Malicious patch files cause ed to execute arbitrary commands [fedora-all]2018-04-06
Bugzilla
CVE-2018-1000156 patch: Malicious patch files cause ed to execute arbitrary commands2018-04-06
CVE-2018-1000156 (HIGH CVSS 7.8) | GNU Patch version 2.7.6 contains an | cvebase.io