cve.bz

CVE-2018-1000156 Improper Input Validation

7.8 highEPSS 5.3%

High (7.8). EPSS 5.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
5.3% (unchanged from 5.3% a week ago; 5.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-1000156 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1000156?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1000156?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-1000156 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:patch2.7.6
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
debian:debian_linux7.0
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus6.4
redhat:enterprise_linux_server_aus6.5
redhat:enterprise_linux_server_aus6.6
redhat:enterprise_linux_server_aus7.2
redhat:enterprise_linux_server_aus7.3
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus6.7
redhat:enterprise_linux_server_eus7.3
redhat:enterprise_linux_server_eus7.4
redhat:enterprise_linux_server_eus7.5
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus6.6
redhat:enterprise_linux_server_tus7.2
redhat:enterprise_linux_server_tus7.3
redhat:enterprise_linux_server_tus7.4
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7patch2.6.1-3+deb7u1DLA-1348-1
Debian12, 13, 14patch2.7.6-2DEBIAN-CVE-2018-1000156
Ubuntu14.04:LTSpatch2.7.1-4ubuntu2.4UBUNTU-CVE-2018-1000156 USN-3624-1
Ubuntu16.04:LTSpatch2.7.5-1ubuntu0.16.04.1UBUNTU-CVE-2018-1000156 USN-3624-1
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 morepatch, patch-debuginfo0:2.6-8.el6_9RHSA-2018:1199
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepatch, patch-debuginfo0:2.7.1-10.el7_5RHSA-2018:1200
Red Hatrhel_aus:6.4::serverpatch, patch-debuginfo0:2.6-8.el6_4RHSA-2018:2097
Red Hatrhel_aus:6.5::serverpatch, patch-debuginfo0:2.6-8.el6_5RHSA-2018:2096
Red Hatrhel_aus:6.6::server, rhel_tus:6.6::serverpatch, patch-debuginfo0:2.6-8.el6_6RHSA-2018:2095
Red Hatrhel_aus:7.2::server, rhel_e4s:7.2::server, rhel_tus:7.2::serverpatch, patch-debuginfo0:2.7.1-10.el7_2RHSA-2018:2093
Red Hatrhel_eus:6.7::computenode, rhel_eus:6.7::serverpatch, patch-debuginfo0:2.6-8.el6_7RHSA-2018:2094
Red Hatrhel_eus:7.3::computenode, rhel_eus:7.3::serverpatch, patch-debuginfo0:2.7.1-10.el7_3RHSA-2018:2092
Red Hatrhel_eus:7.4::computenode, rhel_eus:7.4::serverpatch, patch-debuginfo0:2.7.1-10.el7_4RHSA-2018:2091
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3patch2.7.5-8.5.1SUSE-SU-2018:1128-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 2 morepatch2.5.9-252.22.7.1SUSE-SU-2018:1162-1
openSUSETumbleweedpatch2.7.6-3.43openSUSE-SU-2024:11151-1
Alpinev3.7patch2.7.6-r0ALPINE-CVE-2018-1000156
Alpinev3.8patch2.7.6-r4ALPINE-CVE-2018-1000156
Alpinev3.9, v3.10, v3.11 and 13 morepatch2.7.6-r6ALPINE-CVE-2018-1000156
Azure Linux2patch2.7.6-7AZL-6785
Azure Linux3patch2.7.6-9AZL-35101

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6patch-0:2.6-8.el6_9Fixed 2018-04-23RHSA-2018:1199
Red Hat Enterprise Linux 6.4 Advanced Update Supportpatch-0:2.6-8.el6_4Fixed 2018-06-27RHSA-2018:2097
Red Hat Enterprise Linux 6.5 Advanced Update Supportpatch-0:2.6-8.el6_5Fixed 2018-06-27RHSA-2018:2096
Red Hat Enterprise Linux 6.6 Advanced Update Supportpatch-0:2.6-8.el6_6Fixed 2018-06-27RHSA-2018:2095
Red Hat Enterprise Linux 6.6 Telco Extended Update Supportpatch-0:2.6-8.el6_6Fixed 2018-06-27RHSA-2018:2095
Red Hat Enterprise Linux 6.7 Extended Update Supportpatch-0:2.6-8.el6_7Fixed 2018-06-27RHSA-2018:2094
Red Hat Enterprise Linux 7patch-0:2.7.1-10.el7_5Fixed 2018-04-23RHSA-2018:1200
Red Hat Enterprise Linux 7.2 Advanced Update Supportpatch-0:2.7.1-10.el7_2Fixed 2018-06-27RHSA-2018:2093
Red Hat Enterprise Linux 7.2 Telco Extended Update Supportpatch-0:2.7.1-10.el7_2Fixed 2018-06-27RHSA-2018:2093
Red Hat Enterprise Linux 7.2 Update Services for SAP Solutionspatch-0:2.7.1-10.el7_2Fixed 2018-06-27RHSA-2018:2093
Red Hat Enterprise Linux 7.3 Extended Update Supportpatch-0:2.7.1-10.el7_3Fixed 2018-06-27RHSA-2018:2092
Red Hat Enterprise Linux 7.4 Extended Update Supportpatch-0:2.7.1-10.el7_4Fixed 2018-06-27RHSA-2018:2091
Red Hat Enterprise Linux 5patchWill not fix
Red Hat Enterprise Linux 8patchNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-1000156.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON