{"id":"UBUNTU-CVE-2017-16997","details":"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.","modified":"2026-02-04T03:35:35.243324Z","published":"2017-12-17T00:00:00Z","related":["USN-3534-1"],"upstream":["CVE-2017-16997"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-16997"},{"type":"REPORT","url":"https://bugs.debian.org/884615"},{"type":"REPORT","url":"https://sourceware.org/bugzilla/show_bug.cgi?id=22625"},{"type":"REPORT","url":"https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3534-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-16997"}],"affected":[{"package":{"name":"eglibc","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/eglibc@2.19-0ubuntu6.14?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.19-0ubuntu6.14"}]}],"versions":["2.17-93ubuntu4","2.18-0ubuntu1","2.18-0ubuntu2","2.18-0ubuntu4","2.18-0ubuntu5","2.18-0ubuntu6","2.18-0ubuntu7","2.19-0ubuntu2","2.19-0ubuntu3","2.19-0ubuntu4","2.19-0ubuntu5","2.19-0ubuntu6","2.19-0ubuntu6.1","2.19-0ubuntu6.3","2.19-0ubuntu6.4","2.19-0ubuntu6.5","2.19-0ubuntu6.6","2.19-0ubuntu6.7","2.19-0ubuntu6.8","2.19-0ubuntu6.9","2.19-0ubuntu6.10","2.19-0ubuntu6.11","2.19-0ubuntu6.13"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"eglibc-source","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc-bin","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc-dev-bin","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-amd64","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-armel","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-amd64","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-armel","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-i386","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-ppc64","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-dev-x32","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-i386","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-pic","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-ppc64","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-prof","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"libc6-x32","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"multiarch-support","binary_version":"2.19-0ubuntu6.14"},{"binary_name":"nscd","binary_version":"2.19-0ubuntu6.14"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-16997.json"}},{"package":{"name":"glibc","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/glibc@2.23-0ubuntu10?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.23-0ubuntu10"}]}],"versions":["2.21-0ubuntu4","2.21-0ubuntu5","2.21-0ubuntu6","2.23-0ubuntu1","2.23-0ubuntu2","2.23-0ubuntu3","2.23-0ubuntu4","2.23-0ubuntu5","2.23-0ubuntu6","2.23-0ubuntu7","2.23-0ubuntu9"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"glibc-source","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc-bin","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc-dev-bin","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-amd64","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-armel","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-amd64","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-armel","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-i386","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-ppc64","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-s390","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-dev-x32","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-i386","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-pic","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-ppc64","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-s390","binary_version":"2.23-0ubuntu10"},{"binary_name":"libc6-x32","binary_version":"2.23-0ubuntu10"},{"binary_name":"locales","binary_version":"2.23-0ubuntu10"},{"binary_name":"locales-all","binary_version":"2.23-0ubuntu10"},{"binary_name":"multiarch-support","binary_version":"2.23-0ubuntu10"},{"binary_name":"nscd","binary_version":"2.23-0ubuntu10"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-16997.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}