CVE-2018-1000156

Summary

CVECVE-2018-1000156
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2018-04-06 13:29:00 UTC
Updated2019-07-30 10:15:00 UTC
DescriptionGNU 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.

Risk And Classification

Problem Types: CWE-20

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 12.04 All All All
Operating System Canonical Ubuntu Linux 14.04 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 17.10 All All All
Operating System Canonical Ubuntu Linux 12.04 All All All
Operating System Canonical Ubuntu Linux 14.04 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 17.10 All All All
Operating System Debian Debian Linux 7.0 All All All
Operating System Debian Debian Linux 7.0 All All All
Application Gnu Patch 2.7.6 All All All
Application Gnu Patch 2.7.6 All All All
Operating System Redhat Enterprise Linux Desktop 6.0 All All All
Operating System Redhat Enterprise Linux Desktop 7.0 All All All
Operating System Redhat Enterprise Linux Desktop 6.0 All All All
Operating System Redhat Enterprise Linux Desktop 7.0 All All All
Operating System Redhat Enterprise Linux Server 6.0 All All All
Operating System Redhat Enterprise Linux Server 7.0 All All All
Operating System Redhat Enterprise Linux Server 6.0 All All All
Operating System Redhat Enterprise Linux Server 7.0 All All All
Operating System Redhat Enterprise Linux Server Aus 6.4 All All All
Operating System Redhat Enterprise Linux Server Aus 6.5 All All All
Operating System Redhat Enterprise Linux Server Aus 6.6 All All All
Operating System Redhat Enterprise Linux Server Aus 7.2 All All All
Operating System Redhat Enterprise Linux Server Aus 7.3 All All All
Operating System Redhat Enterprise Linux Server Aus 7.4 All All All
Operating System Redhat Enterprise Linux Server Aus 7.6 All All All
Operating System Redhat Enterprise Linux Server Aus 6.4 All All All
Operating System Redhat Enterprise Linux Server Aus 6.5 All All All
Operating System Redhat Enterprise Linux Server Aus 6.6 All All All
Operating System Redhat Enterprise Linux Server Aus 7.2 All All All
Operating System Redhat Enterprise Linux Server Aus 7.3 All All All
Operating System Redhat Enterprise Linux Server Aus 7.4 All All All
Operating System Redhat Enterprise Linux Server Aus 7.6 All All All
Operating System Redhat Enterprise Linux Server Eus 6.7 All All All
Operating System Redhat Enterprise Linux Server Eus 7.3 All All All
Operating System Redhat Enterprise Linux Server Eus 7.4 All All All
Operating System Redhat Enterprise Linux Server Eus 7.5 All All All
Operating System Redhat Enterprise Linux Server Eus 7.6 All All All
Operating System Redhat Enterprise Linux Server Eus 6.7 All All All
Operating System Redhat Enterprise Linux Server Eus 7.3 All All All
Operating System Redhat Enterprise Linux Server Eus 7.4 All All All
Operating System Redhat Enterprise Linux Server Eus 7.5 All All All
Operating System Redhat Enterprise Linux Server Eus 7.6 All All All
Operating System Redhat Enterprise Linux Server Tus 6.6 All All All
Operating System Redhat Enterprise Linux Server Tus 7.2 All All All
Operating System Redhat Enterprise Linux Server Tus 7.3 All All All
Operating System Redhat Enterprise Linux Server Tus 7.4 All All All
Operating System Redhat Enterprise Linux Server Tus 7.6 All All All
Operating System Redhat Enterprise Linux Server Tus 6.6 All All All
Operating System Redhat Enterprise Linux Server Tus 7.2 All All All
Operating System Redhat Enterprise Linux Server Tus 7.3 All All All
Operating System Redhat Enterprise Linux Server Tus 7.4 All All All
Operating System Redhat Enterprise Linux Server Tus 7.6 All All All
Operating System Redhat Enterprise Linux Workstation 6.0 All All All
Operating System Redhat Enterprise Linux Workstation 7.0 All All All
Operating System Redhat Enterprise Linux Workstation 6.0 All All All
Operating System Redhat Enterprise Linux Workstation 7.0 All All All

References

ReferenceSourceLinkTags
GNU patch - Bugs: bug #53566, Ed support allows arbitrary... [Savannah] CONFIRM savannah.gnu.org Vendor Advisory
[SECURITY] [DLA 1348-1] patch security update MLIST lists.debian.org Mailing List, Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
USN-3624-1: Patch vulnerabilities | Ubuntu security notices UBUNTU usn.ubuntu.com Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
Bugtraq: Details about recent GNU patch vulnerabilities BUGTRAQ seclists.org
USN-3624-2: Patch vulnerabilities | Ubuntu security notices UBUNTU usn.ubuntu.com Third Party Advisory
Kurt Seifried Twitter ನಲ್ಲಿ: "So @drdavidawheeler pointed out this to me: https://t.co/YU6b9iTtwh TL;DR: patch can execute commands. A flaw right? No. A terrible horrible feature (that is also a flaw). 1/4" MISC twitter.com Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
Bugtraq: [SECURITY] [DSA 4489-1] patch security update BUGTRAQ seclists.org
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
#894667 - beep: CVE-2018-0492 - Debian Bug report logs MISC bugs.debian.org Issue Tracking, Third Party Advisory
Patch: Multiple vulnerabilities (GLSA 201904-17) — Gentoo security GENTOO security.gentoo.org Third Party Advisory
patch runs ed, and ed can run anything MISC rachelbythebay.com Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
GNU patch Command Injection / Directory Traversal ≈ Packet Storm MISC packetstormsecurity.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 296079 Oracle Solaris 11.4 Support Repository Update (SRU) 15.5.0 Missing (CPUOCT2019)
  • 500513 Alpine Linux Security Update for patch
  • 504272 Alpine Linux Security Update for patch
  • 900088 CBL-Mariner Linux Security Update for patch 2.7.6
  • 900907 Common Base Linux Mariner (CBL-Mariner) Security Update for patch (6785-1)
  • 903100 Common Base Linux Mariner (CBL-Mariner) Security Update for patch (1918)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report