Exploitation Summary
EIP tracks 1 public exploit for CVE-2017-16997. PoCs published by Xiami2012.
AI-analyzed exploit summary This PoC demonstrates CVE-2017-16997, a vulnerability in glibc's dynamic linker where $ORIGIN in RPATH/RUNPATH can lead to loading libraries from the current working directory, potentially allowing privilege escalation via SUID binaries. The script compiles a test binary, sets SUID permissions, and checks if the system is vulnerable.
Description
elf/dl-load.c in the GNU C Library (aka glibc or libc6) 2.19 through 2.26 mishandles RPATH and RUNPATH containing $ORIGIN for a privileged (setuid or AT_SECURE) program, which allows local users to gain privileges via a Trojan horse library in the current working directory, related to the fillin_rpath and decompose_rpath functions. This is associated with misinterpretion of an empty RPATH/RUNPATH token as the "./" directory. NOTE: this configuration of RPATH/RUNPATH for a privileged program is apparently very uncommon; most likely, no such program is shipped with any common Linux distribution.
Exploits (1)
This PoC demonstrates CVE-2017-16997, a vulnerability in glibc's dynamic linker where $ORIGIN in RPATH/RUNPATH can lead to loading libraries from the current working directory, potentially allowing privilege escalation via SUID binaries. The script compiles a test binary, sets SUID permissions, and checks if the system is vulnerable.
References (6)
Scores
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H