Search for vulnerabilities
Vulnerability details: VCID-z25y-bsee-aaac
Vulnerability ID VCID-z25y-bsee-aaac
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
generic_textual High http://people.canonical.com/~ubuntu-security/cve/2018/CVE-2018-1000001.html
rhas Moderate https://access.redhat.com/errata/RHSA-2018:0805
cvssv3 7.0 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-1000001.json
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00525 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00844 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00844 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00844 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.00844 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.16652 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.16652 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.2038 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.43407 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.43407 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.43407 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.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45085 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.45557 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
epss 0.55179 https://api.first.org/data/v1/epss?cve=CVE-2018-1000001
rhbs high https://bugzilla.redhat.com/show_bug.cgi?id=1533836
generic_textual High https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000001
generic_textual High https://lists.samba.org/archive/rsync/2018-February/031478.html
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
generic_textual High https://sourceware.org/bugzilla/show_bug.cgi?id=18203
generic_textual High https://ubuntu.com/security/notices/USN-3534-1
generic_textual High https://ubuntu.com/security/notices/USN-3536-1
generic_textual High https://usn.ubuntu.com/usn/usn-3534-1
generic_textual High https://usn.ubuntu.com/usn/usn-3536-1
generic_textual High https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/
generic_textual High http://www.openwall.com/lists/oss-security/2018/01/11/5
Reference id Reference type URL
http://people.canonical.com/~ubuntu-security/cve/2018/CVE-2018-1000001.html
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://lists.samba.org/archive/rsync/2018-February/031478.html
https://security.netapp.com/advisory/ntap-20190404-0003/
https://sourceware.org/bugzilla/show_bug.cgi?id=18203
https://ubuntu.com/security/notices/USN-3534-1
https://ubuntu.com/security/notices/USN-3536-1
https://usn.ubuntu.com/3534-1/
https://usn.ubuntu.com/3536-1/
https://usn.ubuntu.com/usn/usn-3534-1
https://usn.ubuntu.com/usn/usn-3536-1
https://www.exploit-db.com/exploits/43775/
https://www.exploit-db.com/exploits/44889/
https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/
http://www.openwall.com/lists/oss-security/2018/01/11/5
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
GLSA-201804-02 https://security.gentoo.org/glsa/201804-02
RHSA-2018:0805 https://access.redhat.com/errata/RHSA-2018:0805
USN-USN-4768-1 https://usn.ubuntu.com/USN-4768-1/
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
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
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
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.77372
EPSS Score 0.00525
Published At Nov. 1, 2024, midnight
Date Actor Action Source VulnerableCode Version
There are no relevant records.