CVE-2018-1000001In glibc 2.26 and earlier there is confusion in the usage of getcwd() by realpath() which can be used to write before the destination…
- 7.8HighCVSS base score
- 13.4%Exploitation in 30 daysEPSS · top 3.5% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and 2 Exploit-DB entries for it. 2 references of the record are tagged as an exploit.
Show the exploits5
Metasploit modules1 module
- glibc 'realpath()' Privilege Escalation (Metasploit module) (opens in a new tab)
exploit/linux/local/glibc_realpath_priv_escRank normaldisclosed 16 Jan 2018
Exploit-DB2 entries
- glibc - 'realpath()' Privilege Escalation (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 44889local, linuxpublished 13 Jun 2018Verified
- glibc < 2.26 - 'getcwd()' Local Privilege Escalation (Exploit-DB entry) (opens in a new tab)
EDB-ID 43775local, linuxpublished 16 Jan 2018Verified
References tagged exploit2 references
- 44889 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 43775 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 15 days later
· 15 days later
Published
- 7 years later
· 7 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | High7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 13.4% · top 3.5% of all CVEs (12 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
n/a
- affected n/a
References
References10
- [oss-security] 20180111 Libc Realpath Buffer Underflow CVE-2018-1000001 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- USN-3534-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/ (opens in a new tab)x_refsource_MISCx_transferred
- 102525 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 44889 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 43775 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- USN-3536-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- RHSA-2018:0805 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 1040162 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- https://security.netapp.com/advisory/ntap-20190404-0003/ (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2018-1773 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2018-1000001)Record last updated .