ID CVE-2017-16997
Summary 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.
References
Vulnerable Configurations
  • cpe:2.3:a:gnu:glibc:2.19:*:*:*:*:*:*:*
    cpe:2.3:a:gnu:glibc:2.19:*:*:*:*:*:*:*
  • cpe:2.3:a:gnu:glibc:2.20:*:*:*:*:*:*:*
    cpe:2.3:a:gnu:glibc:2.20:*:*:*:*:*:*:*
  • cpe:2.3:a:gnu:glibc:2.21:*:*:*:*:*:*:*
    cpe:2.3:a:gnu:glibc:2.21:*:*:*:*:*:*:*
  • cpe:2.3:a:gnu:glibc:2.22:*:*:*:*:*:*:*
    cpe:2.3:a:gnu:glibc:2.22:*:*:*:*:*:*:*
  • cpe:2.3:a:gnu:glibc:2.23:*:*:*:*:*:*:*
    cpe:2.3:a:gnu:glibc:2.23:*:*:*:*:*:*:*
  • cpe:2.3:a:gnu:glibc:2.25:*:*:*:*:*:*:*
    cpe:2.3:a:gnu:glibc:2.25:*:*:*:*:*:*:*
  • cpe:2.3:a:gnu:glibc:2.26:*:*:*:*:*:*:*
    cpe:2.3:a:gnu:glibc:2.26:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:virtualization:4.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:virtualization:4.0:*:*:*:*:*:*:*
CVSS
Base: 9.3 (as of 26-04-2019 - 12:41)
Impact:
Exploitability:
CWE CWE-426
CAPEC
  • Leveraging/Manipulating Configuration File Search Paths
    This attack loads a malicious resource into a program's standard path used to bootstrap and/or provide contextual information for a program like a path variable or classpath. J2EE applications and other component based applications that are built from multiple binaries can have very long list of dependencies to execute. If one of these libraries and/or references is controllable by the attacker then application controls can be circumvented by the attacker. A standard UNIX path looks similar to this If the attacker modifies the path variable to point to a locale that includes malicious resources then the user unwittingly can execute commands on the attackers' behalf: This is a form of usurping control of the program and the attack can be done on the classpath, database resources, or any other resources built from compound parts. At runtime detection and blocking of this attack is nearly impossible, because the configuration allows execution.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:N/AC:M/Au:N/C:C/I:C/A:C
redhat via4
advisories
  • rhsa
    id RHBA-2019:0327
  • rhsa
    id RHSA-2018:3092
rpms
  • glibc-0:2.17-260.el7
  • glibc-common-0:2.17-260.el7
  • glibc-devel-0:2.17-260.el7
  • glibc-headers-0:2.17-260.el7
  • glibc-static-0:2.17-260.el7
  • glibc-utils-0:2.17-260.el7
  • nscd-0:2.17-260.el7
refmap via4
bid 102228
confirm
Last major update 26-04-2019 - 12:41
Published 18-12-2017 - 01:29
Back to Top