Search for vulnerabilities
Vulnerability details: VCID-2y24-bceg-x3hj
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
Weaknesses (2)
System Score Found at
cvssv3 7.0 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-1000001.json
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.44629 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45117 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45117 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.47265 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.47265 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.47265 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
cvssv2 7.2 https://nvd.nist.gov/vuln/detail/CVE-2018-1000001
cvssv3 7.8 https://nvd.nist.gov/vuln/detail/CVE-2018-1000001
archlinux High https://security.archlinux.org/AVG-590
Reference id Reference type URL
https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-1000001.json
https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000001
http://seclists.org/oss-sec/2018/q1/38
https://security.netapp.com/advisory/ntap-20190404-0003/
https://www.exploit-db.com/exploits/43775/
https://www.exploit-db.com/exploits/44889/
https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/
http://www.securityfocus.com/bid/102525
http://www.securitytracker.com/id/1040162
1533836 https://bugzilla.redhat.com/show_bug.cgi?id=1533836
887001 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887001
ASA-201801-18 https://security.archlinux.org/ASA-201801-18
ASA-201801-19 https://security.archlinux.org/ASA-201801-19
AVG-590 https://security.archlinux.org/AVG-590
cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:virtualization_host:4.0:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:redhat:virtualization_host:4.0:*:*:*:*:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
CVE-2018-1000001 Exploit https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/linux/local/43775.c
CVE-2018-1000001 Exploit https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/linux/local/44889.rb
CVE-2018-1000001 https://nvd.nist.gov/vuln/detail/CVE-2018-1000001
CVE-2018-1000001 Exploit https://raw.githubusercontent.com/rapid7/metasploit-framework/29f4870fa0f916e31300d1bc78aeabeb297c667f/modules/exploits/linux/local/glibc_realpath_priv_esc.rb
CVE-2018-1000001 Exploit https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/RationalLove.c
RHSA-2018:0805 https://access.redhat.com/errata/RHSA-2018:0805
USN-3534-1 https://usn.ubuntu.com/3534-1/
USN-3536-1 https://usn.ubuntu.com/3536-1/
USN-USN-4768-1 https://usn.ubuntu.com/USN-4768-1/
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
Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Found at https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-1000001.json
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

Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C Found at https://nvd.nist.gov/vuln/detail/CVE-2018-1000001
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

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Found at https://nvd.nist.gov/vuln/detail/CVE-2018-1000001
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

Exploit Prediction Scoring System (EPSS)
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