Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2018-1000156

27
FAUCET Score

CVE-2018-1000156 is an input validation vulnerability in GNU Patch version 2.7.6, allowing code execution through specially crafted patch files when the EDITOR_PROGRAM invokes 'ed'. This affects Canonical, Debian, GNU, and Red Hat distributions. The vulnerability has a CVSS score of 7.8 (High), indicating a local attack vector with low complexity, requiring user interaction, and potentially leading to high impact on confidentiality, integrity, and availability. There is no evidence of active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage.

Impacted Technologies

VendorProductVersion(s)CPE
2.7.6CPE matchmatch criteria
cpe:2.3:a:gnu:patch:2.7.6:*:*:*:*:*:*:*
12.04CPE matchmatch criteria
cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*
14.04CPE matchmatch criteria
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
16.04CPE matchmatch criteria
cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
17.10CPE matchmatch criteria
cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.0

7.8HIGH

CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
1.8
Impact Score
5.9
CvssVersion
3.0

Exploit Intelligence

EPSS Score
5.51%
Probability of exploitation in next 30 days
EPSS Percentile
92.0%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0551 is in the 93rd percentile among its peer group of 11,616 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.2 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (44)

microsoftpatch availablevia msrc
Product: patch-2.7.6-9.azl3.aarch64.rpm on Azure Linux 3.0 ARMFixed in: 2.7.6-9
microsoftpatch availablevia msrc
Product: 16927-17084Fixed in: 2.7.6-9
microsoftpatch availablevia msrc
Product: 16927-16817Fixed in: 2.7.6-9
microsoftpatch availablevia msrc
Product: 16925-16820Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: azl3 patch 2.7.6-9 on Azure Linux 3.0Fixed in: 2.7.6-9
microsoftpatch availablevia msrc
Product: cm1 patch 2.7.6-7 on CBL Mariner 1.0Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: cbl2 patch 2.7.6-7 on CBL Mariner 2.0Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: CBL Mariner 1.0 ARMFixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: CBL Mariner 2.0 x64Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: CBL Mariner 2.0 ARMFixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: patch-2.7.6-7.cm1.x86_64.rpm on CBL Mariner 1.0 x64Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: patch-debuginfo-2.7.6-7.cm1.x86_64.rpm on CBL Mariner 1.0 x64Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: patch-2.7.6-7.cm1.aarch64.rpm on CBL Mariner 1.0 ARMFixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: patch-debuginfo-2.7.6-7.cm1.aarch64.rpm on CBL Mariner 1.0 ARMFixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: patch-2.7.6-7.cm2.x86_64.rpm on CBL Mariner 2.0 x64Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: patch-debuginfo-2.7.6-7.cm2.x86_64.rpm on CBL Mariner 2.0 x64Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: patch-2.7.6-7.cm2.aarch64.rpm on CBL Mariner 2.0 ARMFixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: patch-debuginfo-2.7.6-7.cm2.aarch64.rpm on CBL Mariner 2.0 ARMFixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: patch-2.7.6-9.azl3.x86_64.rpm on Azure Linux 3.0 x64Fixed in: 2.7.6-9
microsoftpatch availablevia msrc
Product: 16926-16823Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: 13120-12137Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: 13121-12137Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: 13122-12138Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: 13123-12138Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: 13124-12139Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: 13125-12139Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: 13126-12140Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: 13127-12140Fixed in: 2.7.6-7
microsoftpatch availablevia msrc
Product: 13128-12356Fixed in: 2.7.6-9
microsoftpatch availablevia msrc
Product: 13129-12357Fixed in: 2.7.6-9
microsoftpatch availablevia msrc
Product: CBL Mariner 1.0 x64Fixed in: 2.7.6-7
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 7.4 Extended Update SupportFixed in: patch-0:2.7.1-10.el7_4
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 6Fixed in: patch-0:2.6-8.el6_9
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 6.4 Advanced Update SupportFixed in: patch-0:2.6-8.el6_4
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 6.5 Advanced Update SupportFixed in: patch-0:2.6-8.el6_5
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 6.6 Advanced Update SupportFixed in: patch-0:2.6-8.el6_6
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 6.6 Telco Extended Update SupportFixed in: patch-0:2.6-8.el6_6
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 6.7 Extended Update SupportFixed in: patch-0:2.6-8.el6_7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 7Fixed in: patch-0:2.7.1-10.el7_5
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 7.2 Advanced Update SupportFixed in: patch-0:2.7.1-10.el7_2
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 7.2 Telco Extended Update SupportFixed in: patch-0:2.7.1-10.el7_2
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 7.2 Update Services for SAP SolutionsFixed in: patch-0:2.7.1-10.el7_2
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 7.3 Extended Update SupportFixed in: patch-0:2.7.1-10.el7_3
View patch
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 5Fixed in: patch

Vendor Advisories (4)

microsoft2024-Jun/CVE-2018-1000156

CVE-2018-1000156

Jun 11, 2024
microsoft2020-Aug/CVE-2018-1000156

CVE-2018-1000156

Aug 11, 2020
microsoft2018-Apr/CVE-2018-1000156Important

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.

Apr 10, 2018
redhatCVE-2018-1000156Important

patch: Malicious patch files cause ed to execute arbitrary commands

Apr 5, 2018

References

twitter.com / kurtseifried/status/982028968877436928
Third Party Advisory
packetstormsecurity.com / files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
rachelbythebay.com / w/2018/04/05/bangpatch
Third Party Advisory
access.redhat.com / errata/RHSA-2018:1199
Third Party Advisory
access.redhat.com / errata/RHSA-2018:1200
Third Party Advisory
access.redhat.com / errata/RHSA-2018:2091
Third Party Advisory
access.redhat.com / errata/RHSA-2018:2092
Third Party Advisory
access.redhat.com / errata/RHSA-2018:2093
Third Party Advisory
access.redhat.com / errata/RHSA-2018:2094
Third Party Advisory
access.redhat.com / errata/RHSA-2018:2095
Third Party Advisory
access.redhat.com / errata/RHSA-2018:2096
Third Party Advisory
access.redhat.com / errata/RHSA-2018:2097
Third Party Advisory
bugs.debian.org / cgi-bin/bugreport.cgi
Issue TrackingThird Party Advisory
lists.debian.org / debian-lts-announce/2018/04/msg00013.html
Mailing ListThird Party Advisory
savannah.gnu.org / bugs/index.php
Vendor Advisory
seclists.org / bugtraq/2019/Aug/29
seclists.org / bugtraq/2019/Jul/54
security.gentoo.org / glsa/201904-17
Third Party Advisory
usn.ubuntu.com / 3624-1
Third Party Advisory
usn.ubuntu.com / 3624-2
Third Party Advisory
web.archive.org / web/20180405231329/https://twitter.com/kurtseifried/status/982028968877436928