Buffer overflow in GNU Glibc
CVE-2018-1000001
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.134, 96.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- GNU Glibc
- Canonical Ubuntu Linux — versions 12.04, 14.04, 16.04
- Red Hat Enterprise Linux Desktop — versions 7.0
- Red Hat Enterprise Linux Server — versions 7.0
- Red Hat Enterprise Linux Server Aus — versions 7.6
- Red Hat Enterprise Linux Server Eus — versions 7.6
- Red Hat Enterprise Linux Server Tus — versions 7.6
- Red Hat Enterprise Linux Workstation — versions 7.0
- Red Hat Virtualization Host — versions 4.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
2 public repositories with exploit or proof-of-concept code for this CVE:
- 0x00-0x00/CVE-2018-1000001 (31 stars, last pushed 2018-02-09): glibc getcwd() local privilege escalation compiled binaries
- usernameid0/tools-for-CVE-2018-1000001 (last pushed 2022-03-28): Tools for get offsets and adding patch for support i386
Also mentioned in 37 other repositories (0xT11/CVE-POC, 0xTo/linux-kernel-exploits, Al1ex/LinuxEelvation, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- [oss-security] 20180111 Libc Realpath Buffer Underflow CVE-2018-1000001 (mailing-list, Mailing List, Third Party Advisory)
- USN-3534-1 (vendor-advisory, Third Party Advisory)
- www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/ (Third Party Advisory)
- www.securityfocus.com/bid/102525 (Third Party Advisory, VDB Entry, vdb-entry)
- www.exploit-db.com/exploits/44889/ (Exploit, exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/43775/ (Exploit, exploit, Third Party Advisory, VDB Entry)
- USN-3536-1 (vendor-advisory, Third Party Advisory)
- RHSA-2018:0805 (vendor-advisory, Third Party Advisory)
- www.securitytracker.com/id/1040162 (Third Party Advisory, VDB Entry, vdb-entry)
- security.netapp.com/advisory/ntap-20190404-0003/
This CVE has public exploit evidence. See the latest CVEs with public exploits.