cve.bz

CVE-2018-1000001 Out-of-bounds Write

7.8 highExploitEPSS 13%

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

On this page
In glibc 2.26 and earlier there is confusion in the usage of getcwd() by realpath() which can be used to write before the destination buffer leading to a buffer underflow and potential code execution.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
13% (unchanged from 13% a week ago; 13% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
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-1000001 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1000001?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1000001?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-1000001 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:glibcthrough 2.26
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
redhat:virtualization_host4.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_workstation7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14glibc2.26-4DEBIAN-CVE-2018-1000001
Ubuntu14.04:LTSeglibc2.19-0ubuntu6.14UBUNTU-CVE-2018-1000001 USN-3534-1
Ubuntu16.04:LTSglibc2.23-0ubuntu10UBUNTU-CVE-2018-1000001 USN-3534-1
UbuntuPro:14.04:LTSmusl0.9.15-1ubuntu0.1~esm1UBUNTU-CVE-2018-1000001 USN-4768-1
UbuntuPro:16.04:LTSmusl1.1.9-1ubuntu0.1~esm2UBUNTU-CVE-2018-1000001 USN-4768-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morenscd, glibc, glibc-devel and 6 more0:2.17-222.el7RHSA-2018:0805
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP2 and 6 moreglibc2.22-62.3.4SUSE-SU-2018:0074-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP2 and 6 moreglibc2.22-62.6.2SUSE-SU-2018:0451-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 3 moreglibc2.11.3-17.110.3.1SUSE-SU-2018:0075-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 3 moreglibc2.11.3-17.110.6.2SUSE-SU-2018:0565-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1, OpenStack Cloud 6glibc2.19-40.9.5SUSE-SU-2018:0071-1
SUSELinux Enterprise Server 12-LTSSglibc2.19-22.24.5SUSE-SU-2018:0076-1
SUSELinux Enterprise Server 12-LTSSglibc2.19-22.27.958SUSE-SU-2018:2187-1
openSUSETumbleweedglibc2.34-1.2openSUSE-SU-2024:10792-1

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability affected the glibc package on Red Hat Enterprise Linux 7.4, however it can only be exploited when mount namespaces owned by user namespaces are enabled, which requires manually configuring a kernel parameter and sysctl that are not enabled by default. Please see the Bugzilla link for more details.

This vulnerability affects glibc on Red Hat Enterprise Linux 6. However the kernel included in Red Hat Enterprise Linux 6 does not violate glibc's assumption about the behaviour of getcwd(), so this vulnerability can not be exploited when running with the default kernel. Red Hat Enterprise Linux 6 containers may be vulnerable when running on a host with kernel 2.6.36 or greater.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7glibc-0:2.17-222.el7Fixed 2018-04-10RHSA-2018:0805
Red Hat Enterprise Linux 5compat-glibcNot affected
Red Hat Enterprise Linux 5glibcNot affected
Red Hat Enterprise Linux 6compat-glibcNot affected
Red Hat Enterprise Linux 6glibcWill not fix
Red Hat Enterprise Linux 7compat-glibcNot affected
Red Hat Enterprise Linux 8glibcNot 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-1000001.

Public exploits

References

Check your stackJSON