CVE-2018-1000001 in the critical feed json
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 8y ago modified 4mo ago also EUVD-2018-1773
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 13.4%
- EPSS 13.4% chance of exploitation in 30 days, percentile 96%
- public exploits
- 3
- Metasploit and Exploit-DB
Summary
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.
Patch / fix
- glibc Debian 14, Debian 13, Debian 12 2.26-4
debian advisories DEBIAN-CVE-2018-1000001
- glibc Ubuntu 16.04 LTS 2.23-0ubuntu10
- eglibc Ubuntu 14.04 LTS 2.19-0ubuntu6.14
- musl Ubuntu Pro 14.04 LTS 0.9.15-1ubuntu0.1~esm1
- musl Ubuntu Pro 16.04 LTS 1.1.9-1ubuntu0.1~esm2
ubuntu advisories UBUNTU-CVE-2018-1000001
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- glibc RHEL 7 2.17-222.el7
- nscd RHEL 7 2.17-222.el7
- glibc-utils RHEL 7 2.17-222.el7
- glibc-common RHEL 7 2.17-222.el7
- glibc-debuginfo-common RHEL 7 2.17-222.el7
red hat advisories RHSA-2018:0805
- glibc SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +3 more 2.11.3-17.110.6.2
- glibc SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +6 more 2.22-62.6.2
- glibc SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +3 more 2.11.3-17.110.3.1
- glibc SLES for SAP 12 SP1, SLES 12 SP1-LTSS, OpenStack Cloud 6 2.19-40.9.5
- glibc SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +6 more 2.22-62.3.4
- glibc SLES 12-LTSS 2.19-22.27.958
- glibc SLES 12-LTSS 2.19-22.24.5
suse advisories SUSE-SU-2018:2187-1SUSE-SU-2018:0565-1SUSE-SU-2018:0451-1SUSE-SU-2018:0075-1SUSE-SU-2018:0071-1SUSE-SU-2018:0074-1
- glibc openSUSE Tumbleweed 2.34-1.2
opensuse advisories openSUSE-SU-2024:10792-1
- glibc Arch Linux 2.26-11
- lib32-glibc Arch Linux 2.26-11
arch linux advisories AVG-590
Is CVE-2018-1000001 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-1000001 updated cvss 7.0
glibc: realpath() buffer underflow when getcwd() returns relative path allows privilege escalation
-
Red Hat Enterprise Linux 6 nscd, glibc, glibc-utils, glibc-commonaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux Client (v. 7) nscd 2.17-222.el7, glibc 2.17-222.el7, glibc-utils 2.17-222.el7, glibc-common 2.17-222.el7, glibc-debuginfo-common 2.17-222.el7 Red Hat Enterprise Linux Client Optional (v. 7) glibc-debuginfo-common 2.17-222.el7 Red Hat Enterprise Linux ComputeNode (v. 7) nscd 2.17-222.el7, glibc 2.17-222.el7, glibc-utils 2.17-222.el7, glibc-common 2.17-222.el7, glibc-debuginfo-common 2.17-222.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) glibc-debuginfo-common 2.17-222.el7 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) nscd 2.17-222.el7, glibc 2.17-222.el7, glibc-utils 2.17-222.el7, glibc-common 2.17-222.el7, glibc-debuginfo-common 2.17-222.el7 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) glibc-debuginfo-common 2.17-222.el7fixed: vendor fix RHSA-2018:0805
+4 more productsfewer
Red Hat Enterprise Linux Server (v. 7) nscd 2.17-222.el7, glibc 2.17-222.el7, glibc-utils 2.17-222.el7, glibc-common 2.17-222.el7, glibc-debuginfo-common 2.17-222.el7 Red Hat Enterprise Linux Server Optional (v. 7) glibc-debuginfo-common 2.17-222.el7 Red Hat Enterprise Linux Workstation (v. 7) nscd 2.17-222.el7, glibc 2.17-222.el7, glibc-utils 2.17-222.el7, glibc-common 2.17-222.el7, glibc-debuginfo-common 2.17-222.el7 Red Hat Enterprise Linux Workstation Optional (v. 7) glibc-debuginfo-common 2.17-222.el7 -
Red Hat Enterprise Linux 5 glibc, compat-glibc Red Hat Enterprise Linux 6 compat-glibc Red Hat Enterprise Linux 7 compat-glibc Red Hat Enterprise Linux 8 nscd, glibc, libnsl, nss_db, nss_hesiod, glibc-utils, +7 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (Metasploit exploit/linux/local/glibc_realpath_priv_esc)
- Published
Exploit prediction
13.37% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit exploit/linux/local/glibc_realpath_priv_esc glibc 'realpath()' Privilege Escalation metasploit exploit, normal rank, 2018-01-16
- EDB-44889 glibc - 'realpath()' Privilege Escalation (Metasploit) local, 2018-06-13
- EDB-43775 glibc < 2.26 - 'getcwd()' Local Privilege Escalation local, 2018-01-16
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
exploit-db.com
/exploits/44889/
exploit, third-party-advisory, vdb-entry
-
exploit-db.com
/exploits/43775/
exploit, third-party-advisory, vdb-entry
-
usn.ubuntu.com
/3534-1/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3536-1/
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:0805
vendor-advisory, third-party-advisory
-
seclists.org
/oss-sec/2018/q1/38
mailing-list, third-party-advisory
-
halfdog.net
/Security/2017/LibcRealpathBufferUnderflow/
third-party-advisory
-
securityfocus.com
/bid/102525
vdb-entry, third-party-advisory
-
securitytracker.com
/id/1040162
vdb-entry, third-party-advisory
- security.netapp.com /advisory/ntap-20190404-0003/
Sources
- CVE List CVE-2018-1000001
- NVD CVE-2018-1000001
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.