Search for vulnerabilities
| Vulnerability ID | VCID-2y24-bceg-x3hj |
| Aliases |
CVE-2018-1000001
|
| Summary | 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. |
| Status | Published |
| Exploitability | 2.0 |
| Weighted Severity | 8.0 |
| Risk | 10.0 |
| Affected and Fixed Packages | Package Details |
| CWE-122 | Heap-based Buffer Overflow |
| CWE-787 | Out-of-bounds Write |
| Data source | Metasploit |
|---|---|
| Description | This module attempts to gain root privileges on Linux systems by abusing a vulnerability in GNU C Library (glibc) version 2.26 and prior. This module uses halfdog's RationalLove exploit to exploit a buffer underflow in glibc realpath() and create a SUID root shell. The exploit has offsets for glibc versions 2.23-0ubuntu9 and 2.24-11+deb9u1. The target system must have unprivileged user namespaces enabled. This module has been tested successfully on Ubuntu Linux 16.04.3 (x86_64) with glibc version 2.23-0ubuntu9; and Debian 9.0 (x86_64) with glibc version 2.24-11+deb9u1. |
| Note | AKA: - RationalLove.c Stability: - unknown-stability Reliability: - unknown-reliability SideEffects: - unknown-side-effects |
| Ransomware campaign use | Unknown |
| Source publication date | Jan. 16, 2018 |
| Platform | Linux |
| Source URL | https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/linux/local/glibc_realpath_priv_esc.rb |
| Data source | Exploit-DB |
|---|---|
| Date added | Jan. 18, 2018 |
| Description | glibc < 2.26 - 'getcwd()' Local Privilege Escalation |
| Ransomware campaign use | Known |
| Source publication date | Jan. 16, 2018 |
| Exploit type | local |
| Platform | linux |
| Source update date | Nov. 17, 2018 |
| Source URL | https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/RationalLove.c |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Exploitability (E) | Access Vector (AV) | Access Complexity (AC) | Authentication (Au) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|
high functional unproven proof_of_concept not_defined |
local adjacent_network network |
high medium low |
multiple single none |
none partial complete |
none partial complete |
none partial complete |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Percentile | 0.97464 |
| EPSS Score | 0.44629 |
| Published At | Aug. 11, 2025, 12:55 p.m. |
| Date | Actor | Action | Source | VulnerableCode Version |
|---|---|---|---|---|
| 2025-07-31T08:35:21.851613+00:00 | Ubuntu USN Importer | Import | https://usn.ubuntu.com/3536-1/ | 37.0.0 |