Exploit database

Vulnerability

CVE-2018-1000001

Vulnerability details

Score
7.8
Severity
high

CVSS 3.0 · NVD

Vector string

CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

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.

CVE Program

Exploit source choices

11 sources
glibc 'realpath()' Privilege Escalation
MSF-linux--local--glibc_realpath_priv_escMetasploitLinux / remote

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.

2018-01-16glibc_realpath_priv_esc.rb
al1ex/linuxeelvation
GH-82dd0da071ea66f05194b9f200dbcaeeGitHubUnofficial GitHub source

Linux Eelvation(持续更新)

2021-03-30302 files · 412 stars
0x00-0x00/cve-2018-1000001
GH-7e78973146757389619080a1b1f7e8f9GitHubUnofficial GitHub source

glibc getcwd() local privilege escalation compiled binaries

2018-02-076 files · 31 stars
anoaghost/localroot_compile
GH-cb529ec43040e49cb46c85b183cdcf81GitHubUnofficial GitHub source

Localroot Compile

2019-08-0178 files · 23 stars
albinjoshy03/linux-kernel-exploits
GH-98c2b810524267a2a7d96cf79929f529GitHubUnofficial GitHub source

albinjoshy03/linux-kernel-exploits source repository

2023-04-26161 files · 1 stars
0xto/linux-kernel-exploits
GH-ae1a63db6eee825da96a76ac7e8a93c0GitHubUnofficial GitHub source

0xto/linux-kernel-exploits source repository

2020-02-02161 files · 0 stars
alian87/linux-kernel-exploits
GH-96bb91b89c84d22d6c0eae8e24274ec9GitHubUnofficial GitHub source

alian87/linux-kernel-exploits source repository

2023-06-14161 files · 0 stars