CVE-2018-1000001 is a buffer underflow vulnerability in the glibc realpath() function, present in glibc 2.26 and earlier. The flaw is triggered when the Linux kernel's getcwd() system call returns a path prefixed with '(unreachable)' (introduced in kernel 2.6.36 for certain namespace scenarios). realpath() assumes getcwd() always returns an absolute path starting with '/', leading to incorrect buffer calculations and a write before the destination buffer. This can be exploited, particularly via SUID binaries such as umount, to achieve local privilege escalation, even bypassing ASLR. The vulnerability is especially dangerous on systems with unprivileged user namespaces enabled, but may also be exploitable in other namespace configurations. The vulnerable code is in glibc's __realpath implementation (stdlib/canonicalize.c).
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository contains a single Metasploit module (modules/exploits/linux/local/glibc_realpath_priv_esc.rb) that exploits a local privilege escalation vulnerability in GNU C Library (glibc) versions 2.26 and prior (notably 2.23-0ubuntu9 and 2.24-11+deb9u1). The exploit leverages a buffer underflow in the realpath() function (CVE-2018-1000001), as demonstrated by halfdog's RationalLove.c exploit. The module uploads and executes a SUID root shell payload, either by compiling the C source on the target or dropping a pre-compiled binary. The exploit requires the target to have unprivileged user namespaces enabled and a writable directory (default: /tmp). Upon successful exploitation, the attacker gains root privileges. The module is operational and part of the Metasploit framework, with the main entry point being the provided Ruby file.
This repository contains a local privilege escalation exploit for CVE-2018-1000001, targeting a buffer underflow vulnerability in glibc's realpath() function. The main exploit is implemented in '43775.c', a C program that, when compiled and executed on a vulnerable Linux system (Debian Stretch or Ubuntu Xenial with specific libc6 versions), attempts to escalate privileges to root. The exploit adapts to different distributions by detecting the OS version and using specific offsets for exploitation. The exploit works by manipulating environment variables and process namespaces, and checks for successful privilege escalation by inspecting '/proc/self/exe'. A shell script 'vulncheck.sh' is included to help users determine if their system is vulnerable by checking the libc6 version and kernel namespace configuration. The README.md provides background, usage instructions, and remediation advice. No network endpoints are involved; the attack vector is purely local. The exploit is operational and provides a working local root shell if successful.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.