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.
Loading...
Loading...
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2022-05-13. NVD baseline CVSS 7.8; sources differ by 0.0.
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.
January 31, 2018
November 21, 2024
| 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.
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
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.
Every time one of our enrichment pipelines (NVD, MITRE cvelistV5, EPSS, CISA KEV, GHSA, OSV, vendor advisories) ran against this CVE. Most recent first.
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.
glibc - 'realpath()' Privilege Escalation (Metasploit)
Open source ↗glibc getcwd() local privilege escalation compiled binaries
Open source ↗glibc < 2.26 - 'getcwd()' Local Privilege Escalation
Open source ↗glibc 'realpath()' Privilege Escalation
Open source ↗See which npm, PyPI, Go, and Maven packages are affected by CVE-2018-1000001
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.
redhat
CWE-787