CVE-2018-1000001
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.
Severity
HIGH
CVSS v3
7.8
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
13.368%
chance of exploitation in the next 30 days
higher than 96.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 1
Nuclei templates: 0
Exploit-DB: 2
Weakness
- CWE-787: Out-of-bounds Write
Timeline
- 2018-01-16First Exploit-DB entry (EDB-ID 43775)15 days before publication
- 2018-01-31Published by the CNA14:00 UTC
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 44889 | local | linux | 2018-06-13 | yes |
| EDB-ID 43775 | local | linux | 2018-01-16 | yes |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| gnu glibc | through 2.26no fix listed | not listed |
| canonical ubuntu_linux | 12.04no fix listed14.04no fix listed16.04no fix listed17.10no fix listed | not listednot listednot listednot listed |
| redhat enterprise_linux_desktop | 7.0no fix listed | not listed |
| redhat enterprise_linux_server | 7.0no fix listed | not listed |
| redhat enterprise_linux_server_aus | 7.6no fix listed | not listed |
| redhat enterprise_linux_server_eus | 7.6no fix listed | not listed |
| redhat enterprise_linux_server_tus | 7.6no fix listed | not listed |
| redhat enterprise_linux_workstation | 7.0no fix listed | not listed |
| redhat virtualization_host | 4.0no fix listed | not listed |
References
- https://access.redhat.com/errata/RHSA-2018:0805
- https://usn.ubuntu.com/3534-1/
- https://usn.ubuntu.com/3536-1/
- https://www.exploit-db.com/exploits/43775/
- https://www.exploit-db.com/exploits/44889/
- http://seclists.org/oss-sec/2018/q1/38
- http://www.securityfocus.com/bid/102525
- http://www.securitytracker.com/id/1040162
- https://security.netapp.com/advisory/ntap-20190404-0003/
- https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-1000001'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-1000001'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-1000001'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-1000001'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).