Skip to content
OpenAdvisories
Unscored Public exploit CVE-2018-1000001 EUVD-2018-1773GHSA-gxfx-pp2w-7f8c

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 buffe…

Published Jan 31, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glibc 2.26-4 —
Debian 13 glibc 2.26-4 —
Debian 12 glibc 2.26-4 —
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS glibc 2.23-0ubuntu10 USN-3534-1
Ubuntu 14.04 LTS eglibc 2.19-0ubuntu6.14 USN-3534-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS musl 1.1.9-1ubuntu0.1~esm2 USN-4768-1
Ubuntu Pro 14.04 LTS musl 0.9.15-1ubuntu0.1~esm1 USN-4768-1
ReleasePackageFixed inAdvisory
RHEL 7 nscd +7 2.17-222.el7 RHSA-2018:0805
ReleasePackageFixed inAdvisory
SLES 12 SP3 glibc 2.22-62.3.4 SUSE-SU-2018:0451-1, SUSE-SU-2018:0074-1
SLES 12 SP2 glibc 2.22-62.3.4 SUSE-SU-2018:0451-1, SUSE-SU-2018:0074-1
SLES 12 SP1 glibc 2.19-40.9.5 SUSE-SU-2018:0071-1
SLES 12 glibc 2.19-22.24.5 SUSE-SU-2018:2187-1, SUSE-SU-2018:0076-1
SLES 11 SP4 glibc 2.11.3-17.110.3.1 SUSE-SU-2018:0565-1, SUSE-SU-2018:0075-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 11 SP3 glibc 2.11.3-17.110.3.1 SUSE-SU-2018:0565-1, SUSE-SU-2018:0075-1
SLES for SAP 12 SP3 glibc 2.22-62.3.4 SUSE-SU-2018:0451-1, SUSE-SU-2018:0074-1
SLES for SAP 12 SP2 glibc 2.22-62.3.4 SUSE-SU-2018:0451-1, SUSE-SU-2018:0074-1
SLES for SAP 12 SP1 glibc 2.19-40.9.5 SUSE-SU-2018:0071-1
SLES for SAP 11 SP4 glibc 2.11.3-17.110.3.1 SUSE-SU-2018:0565-1, SUSE-SU-2018:0075-1
SUSE OpenStack Cloud 6 glibc 2.19-40.9.5 SUSE-SU-2018:0071-1
SUSE Linux Enterprise Point of Sale 11 SP3 glibc 2.11.3-17.110.3.1 SUSE-SU-2018:0565-1, SUSE-SU-2018:0075-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed glibc 2.34-1.2 openSUSE-SU-2024:10792-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 nscd +6 2.17-222.el7 ELSA-2018-0805

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 2

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 12

References