Vulnerability in GNU Glibc
CVE-2017-16997
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.029, 87.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- GNU Glibc — versions 2.19, 2.20, 2.21
- Red Hat Enterprise Linux Desktop — versions 7.0
- Red Hat Enterprise Linux Server — versions 7.0
- Red Hat Enterprise Linux Workstation — versions 7.0
- Glibc 2.19 Through 2.26 — versions glibc 2.19 through 2.26
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- Xiami2012/CVE-2017-16997-poc (last pushed 2018-01-03): A proof-of-concept for CVE-2017-16997
Also mentioned in 2 other repositories (ericcalabretta/inspec_resource_hab_pkg_deps, flyrev/security-scan-ci-presentation). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- sourceware.org/bugzilla/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)
- www.securityfocus.com/bid/102228 (Third Party Advisory, VDB Entry, vdb-entry)
- sourceware.org/ml/libc-alpha/2017-12/msg00528.html (Patch, Third Party Advisory, Issue Tracking)
- bugs.debian.org/884615 (Patch, Mailing List, Third Party Advisory, Issue Tracking)
- RHSA-2018:3092 (vendor-advisory, Third Party Advisory)
- RHBA-2019:0327 (vendor-advisory, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.