CVE-2018-1000156
GNU Patch Code Injection Vulnerability
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.
INFO
Published Date :
April 6, 2018, 1:29 p.m.
Last Modified :
July 30, 2019, 10:15 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2018-1000156 has a 7 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2018-1000156
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2018-1000156
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Dockerfile Makefile Python
None
Dockerfile Makefile Python
None
Python Makefile Dockerfile
Tool for collecting vulnerability data from various sources (used to build the grype database)
vulnerability grype data hacktoberfest
Makefile Python Dockerfile
Test container known to be vulnerable. Do NOT use this apart from for testing
Dockerfile
The GNU patch utility was prone vulnerable to multiple attacks through version 2.7.6. You can find my related PoC files here.
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2018-1000156
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2018-1000156
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Aug. 16, 2019
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html [No Types Assigned] -
CVE Modified by [email protected]
Aug. 16, 2019
Action Type Old Value New Value Added Reference https://seclists.org/bugtraq/2019/Aug/29 [No Types Assigned] -
CVE Modified by [email protected]
Jul. 30, 2019
Action Type Old Value New Value Added Reference https://seclists.org/bugtraq/2019/Jul/54 [No Types Assigned] -
Modified Analysis by [email protected]
Apr. 26, 2019
Action Type Old Value New Value Changed Reference Type https://security.gentoo.org/glsa/201904-17 No Types Assigned https://security.gentoo.org/glsa/201904-17 Third Party Advisory -
CVE Modified by [email protected]
Apr. 17, 2019
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/201904-17 [No Types Assigned] -
Modified Analysis by [email protected]
Mar. 27, 2019
Action Type Old Value New Value Changed Reference Type https://access.redhat.com/errata/RHSA-2018:2096 No Types Assigned https://access.redhat.com/errata/RHSA-2018:2096 Third Party Advisory Changed Reference Type https://access.redhat.com/errata/RHSA-2018:2097 No Types Assigned https://access.redhat.com/errata/RHSA-2018:2097 Third Party Advisory Changed Reference Type https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html Third Party Advisory https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html Mailing List, Third Party Advisory Changed Reference Type https://access.redhat.com/errata/RHSA-2018:2094 No Types Assigned https://access.redhat.com/errata/RHSA-2018:2094 Third Party Advisory Changed Reference Type https://access.redhat.com/errata/RHSA-2018:2095 No Types Assigned https://access.redhat.com/errata/RHSA-2018:2095 Third Party Advisory Changed Reference Type https://access.redhat.com/errata/RHSA-2018:2092 No Types Assigned https://access.redhat.com/errata/RHSA-2018:2092 Third Party Advisory Changed Reference Type https://access.redhat.com/errata/RHSA-2018:2093 No Types Assigned https://access.redhat.com/errata/RHSA-2018:2093 Third Party Advisory Changed Reference Type https://access.redhat.com/errata/RHSA-2018:2091 No Types Assigned https://access.redhat.com/errata/RHSA-2018:2091 Third Party Advisory Changed CPE Configuration OR *cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* OR *cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:6.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:6.5:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:6.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.2:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.3:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_eus:6.7:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_eus:7.3:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:6.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:7.2:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:7.3:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Jun. 29, 2018
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2018:2097 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2018:2096 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2018:2095 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2018:2094 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2018:2093 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2018:2092 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2018:2091 [No Types Assigned] -
Initial Analysis by [email protected]
May. 15, 2018
Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 (AV:N/AC:M/Au:N/C:P/I:P/A:P) Added CVSS V3 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html No Types Assigned https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html Third Party Advisory Changed Reference Type https://usn.ubuntu.com/3624-2/ No Types Assigned https://usn.ubuntu.com/3624-2/ Third Party Advisory Changed Reference Type https://usn.ubuntu.com/3624-1/ No Types Assigned https://usn.ubuntu.com/3624-1/ Third Party Advisory Changed Reference Type https://savannah.gnu.org/bugs/index.php?53566 No Types Assigned https://savannah.gnu.org/bugs/index.php?53566 Vendor Advisory Changed Reference Type http://rachelbythebay.com/w/2018/04/05/bangpatch/ No Types Assigned http://rachelbythebay.com/w/2018/04/05/bangpatch/ Third Party Advisory Changed Reference Type https://access.redhat.com/errata/RHSA-2018:1200 No Types Assigned https://access.redhat.com/errata/RHSA-2018:1200 Third Party Advisory Changed Reference Type https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19 No Types Assigned https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894667#19 Issue Tracking, Third Party Advisory Changed Reference Type https://twitter.com/kurtseifried/status/982028968877436928 No Types Assigned https://twitter.com/kurtseifried/status/982028968877436928 Third Party Advisory Changed Reference Type https://access.redhat.com/errata/RHSA-2018:1199 No Types Assigned https://access.redhat.com/errata/RHSA-2018:1199 Third Party Advisory Added CWE CWE-20 Added CPE Configuration OR *cpe:2.3:a:gnu:patch:2.7.6:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Apr. 25, 2018
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2018:1200 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2018:1199 [No Types Assigned] -
CVE Modified by [email protected]
Apr. 18, 2018
Action Type Old Value New Value Added Reference https://usn.ubuntu.com/3624-2/ [No Types Assigned] Added Reference https://lists.debian.org/debian-lts-announce/2018/04/msg00013.html [No Types Assigned] -
CVE Modified by [email protected]
Apr. 12, 2018
Action Type Old Value New Value Added Reference https://usn.ubuntu.com/3624-1/ [No Types Assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2018-1000156
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2018-1000156
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
1.62 }} 0.81%
score
0.85701
percentile