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.
Public exploit: 1 sourceFixVendor fixNo build named by the sources
e.g. OID 1.3.6.1.4.1.25623.1.0.843793
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- Check which version of the
patchprogram you have installed (look for GNU Patch and whether it is 2.7.6). - If you are on GNU Patch 2.7.6, upgrade to a version newer than 2.7.6 from your distro’s updates.
- Stop applying patch files from email, the internet, or unknown sources; only apply patches from trusted repositories or vendors.
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 recordIf 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.
- 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.
- EPSS band changemoderate → lowepss band change
- EPSS band changelow → moderateepss band change
- EPSS band changemoderate → 0epss band change
- EPSS band change0 → moderateepss band change
- EPSS band changemoderate → 0epss band change
- EPSS band changelow → moderate
Affected products
- OpenSUSE LeapOperating Systems / linux-distro
- Suse Linux Enterprise DesktopOperating Systems / linux-distro
- SUSE Linux Enterprise Server for SAP ApplicationsOperating Systems / linux-distro
- SUSE Linux Enterprise Module for BasesystemOperating Systems / linux-distro
- SUSE Linux Enterprise Module for Development ToolsOperating Systems / linux-distro
- SUSE Linux Enterprise Point of SaleOperating Systems / linux-distro
- SUSE Linux Enterprise High Performance ComputingOperating Systems / linux-distro
And 11 more affected products. See all after sign-in
Technical detail
CVSS 3.0 vector
Open in the CVSS calculatorCVSS: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.
- Initial AccessT1190Exploit Public-Facing Applicationlow confidence
Sources
References in the record
- packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- rachelbythebay.com/w/2018/04/05/bangpatch/
- access.redhat.com/errata/RHSA-2018:1199
And 28 more references. See all after sign-in
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 articlesWatch 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.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI