CVE-2018-1000156
Public exploit available. Not confirmed exploited in the wild yet. A vendor fix is available.
What to do
The vendor has published a fix. Version details are below where the sources state them.
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.
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.3% chance of exploitation activity in the next 30 days, which ranks it in the 92nd percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
- Attention now
unknown.
Real risk signals with little public attention so far.
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
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 OpenSUSE Leap, 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