CVE Tools

CVE-2018-1000156

CVE-2018-1000156 is an input validation in Gnu Patch (CVSS 7.8, High).

Public exploit available. Not confirmed exploited in the wild yet. A vendor fix is available.

Check it yourself

OpenVAS · 32 checks

e.g. OID 1.3.6.1.4.1.25623.1.0.843793

Run the check

Published Updated Sources: CVE.org, NVD, BDU

What to do

The vendor has published a fix. Version details are below where the sources state them.

  • Canonical Ltd. UbuntuAffected: 14.04 LTSUpgrade to: not statedStated by: BDU
  • RusBITech-Astra Astra Linux Special EditionAffected: 1.5 «Smolensk»Upgrade to: not statedStated by: BDU
  • Red Hat Inc. Red Hat Enterprise LinuxAffected: 5Upgrade to: not statedStated by: BDU
  • Open-source community Debian GNU/LinuxAffected: 9Upgrade to: not statedStated by: BDU
  • Novell Inc. OpenSUSE LeapAffected: 42.3Upgrade to: not statedStated by: BDU

Versions as the sources state them. 9 more products have version data. Full version matrix after sign-in

Steps

Written by AI from the record
  1. Check which version of the patch program you have installed (look for GNU Patch and whether it is 2.7.6).
  2. If you are on GNU Patch 2.7.6, upgrade to a version newer than 2.7.6 from your distro’s updates.
  3. Stop applying patch files from email, the internet, or unknown sources; only apply patches from trusted repositories or vendors.
Check it yourselfA free OpenVAS check exists for this CVE. Run it against your hosts.
Is your organisation exposed?Request a free pilot to establish which checks fit your systems.

SeguriScan is made by IntruForce, a cybersecurity company in Madrid, Spain. Links open intruforce.com.

What it is

From the CVE record

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.

In plain language

Written by AI from the record

If your system runs GNU Patch 2.7.6, a malicious patch file could make the patch tool run code—this is mainly a risk for people who apply untrusted patch files.

CVE-2018-1000156 is a local code execution issue in GNU Patch 2.7.6 where processing a crafted patch file can trigger unsafe invocation of the internal `ed` editor with unsanitized input.

If you're affected

  • Malicious code on server
  • System takeover risk
  • Data theft risk
  • Service disruption

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS93rd
Public exploit
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

1 source with a proof of concept or module.

Exploit links, PoCs and Metasploit modules after sign-in
EPSS

5.4% chance of exploitation activity in the next 30 days, which ranks it in the 93rd percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

The patch came 326 days before any public exploit.

  1. EPSS band changemoderate → lowepss band change
  2. EPSS band changelow → moderateepss band change
  3. EPSS band changemoderate → 0epss band change
  4. EPSS band change0 → moderateepss band change
  5. EPSS band changemoderate → 0epss band change
  6. EPSS band changelow → moderate

Affected products

Technical detail

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

Scored 7.8 by NVD.

How it is reached

  • Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
  • Attack Complexity LowNo special conditions — the attack can be reliably reproduced
  • Privileges Required NoneNo authentication required — anyone can exploit this
  • User Interaction RequiredA user must click a link, open a file, or perform some action

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality HighTotal information disclosure — all data in the component is compromised
  • Integrity HighTotal loss of integrity — attacker can modify any data in the component
  • Availability HighTotal denial of service — the component is completely unavailable

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2018-1000156

Is CVE-2018-1000156 being exploited?
Not confirmed. Public exploit code exists (1 source), but CVE-2018-1000156 is not in CISA KEV. EPSS puts the chance of exploitation in the next 30 days at 5.4%.
Which versions are affected by CVE-2018-1000156?
Ubuntu: 14.04 LTS. Astra Linux Special Edition: 1.5 «Smolensk». Red Hat Enterprise Linux: 5. 11 more products are listed in the record.
How do I fix or mitigate CVE-2018-1000156?
The vendor has published a fix. The advisory is on packetstormsecurity.com.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Patch, not every advisory. This one: public exploit.