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.
CVE-2018-1000001
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2022-05-13. NVD baseline CVSS 7.8; sources differ by 0.0.
- Public exploit code is available (Metasploit, Exploit-DB (verified), epss top5pct, public exploit)
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EG Risk
- 66(Track)EG Risk 66/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity78% × 45%Exploitation65% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 13%
- EPSS %ILE
- 96%
- KEV
- Not listed
Published
January 31, 2018
Last Modified
November 21, 2024
References (20)
- cve@mitrehttp://seclists.org/oss-sec/2018/q1/38
- cve@mitrehttp://www.securityfocus.com/bid/102525
- cve@mitrehttp://www.securitytracker.com/id/1040162
- cve@mitrehttps://access.redhat.com/errata/RHSA-2018:0805
- cve@mitrehttps://security.netapp.com/advisory/ntap-20190404-0003/
- cve@mitrehttps://usn.ubuntu.com/3534-1/
- cve@mitrehttps://usn.ubuntu.com/3536-1/
- cve@mitrehttps://www.exploit-db.com/exploits/43775/
- cve@mitrehttps://www.exploit-db.com/exploits/44889/
- cve@mitrehttps://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/
- af854a3a-2127-422b-91ae-364da2661108http://seclists.org/oss-sec/2018/q1/38
- af854a3a-2127-422b-91ae-364da2661108http://www.securityfocus.com/bid/102525
- af854a3a-2127-422b-91ae-364da2661108http://www.securitytracker.com/id/1040162
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2018:0805
- af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20190404-0003/
Patch Availability(4)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | nscd (2.23-0ubuntu10) @ xenial | 2026-05-23 | ubuntu |
| ubuntu | libc6 (2.15-0ubuntu10.21) @ precise | 2026-05-23 | ubuntu |
| ubuntu | musl (1.1.9-1ubuntu0.1~esm2) @ xenial | 2026-05-23 | ubuntu |
| redhat | glibc-0:2.17-222.el7 | 2018-04-10 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(4 across 4 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| glibc | — | 2.26-4 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| glibc | — | 2.26-4 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| glibc | — | 2.26-4 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| glibc | — | 2.26-4 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(4)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 5× in last 7d / 22× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 122 total refreshes for this CVE.
- 2026-09-05 15:24 UTCEPSS rescore
- 2026-09-04 13:56 UTCEPSS rescore
- 2026-09-04 05:02 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 03:31 UTCEPSS rescore
- 2026-08-31 15:34 UTCOSV refresh
- 2026-08-30 19:13 UTCEPSS rescore
- 2026-08-28 21:36 UTCEPSS rescore
- 2026-08-27 14:21 UTCEPSS rescore
- 2026-08-26 14:41 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-23 00:14 UTCEPSS rescore
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-19 16:59 UTCEPSS rescore
- 2026-08-18 13:43 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:10 UTCEPSS rescore
- 2026-08-15 01:26 UTCEPSS rescore
- 2026-08-14 20:54 UTCOSV refresh
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-09 13:42 UTCEPSS rescore
- 2026-08-08 16:32 UTCEPSS rescore
- 2026-08-07 16:22 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:13 UTCEPSS rescore
- 2026-08-02 02:23 UTCEPSS rescore
- 2026-08-02 02:23 UTCEPSS rescore
- 2026-08-01 04:12 UTCEPSS rescore
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-30 09:44 UTCOSV refresh
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-28 15:32 UTCEPSS rescore
- 2026-07-26 14:51 UTCEPSS rescore
- 2026-07-26 14:51 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:31 UTCEG score recompute
- 2026-07-22 22:11 UTCEG score recompute
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-18 10:01 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-12 18:38 UTCOSV refresh
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-02 16:54 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-29 14:03 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 02:59 UTCOSV refresh
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-10 22:15 UTCEPSS rescore
- 2026-06-10 13:19 UTCEPSS rescore
Publicly available exploits
(4 references)Working exploit code is in the public domain (1 Metasploit module) (1 GitHub PoC) (2 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-44889✓ verifiedFirst seen Jun 13, 2018
glibc - 'realpath()' Privilege Escalation (Metasploit)
Open source ↗ - GitHub PoC0x00-0x00/CVE-2018-1000001First seen Feb 7, 2018
glibc getcwd() local privilege escalation compiled binaries
Open source ↗ - Exploit-DBEDB-43775✓ verifiedFirst seen Jan 16, 2018
glibc < 2.26 - 'getcwd()' Local Privilege Escalation
Open source ↗ - Metasploitexploit/linux/local/glibc_realpath_priv_esc✓ verifiedFirst seen Jan 16, 2018
glibc 'realpath()' Privilege Escalation
Open source ↗
Frequently asked(5)
What is CVE-2018-1000001?
When was CVE-2018-1000001 disclosed?
Is CVE-2018-1000001 actively exploited?
What is the CVSS score of CVE-2018-1000001?
How do I remediate CVE-2018-1000001?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2018-1000001
Is Your Infrastructure Affected by CVE-2018-1000001?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.