{"api_version":"1","generated_at":"2026-07-23T07:09:28+00:00","cve":"CVE-2017-16997","urls":{"html":"https://cve.report/CVE-2017-16997","api":"https://cve.report/api/cve/CVE-2017-16997.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-16997","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-16997"},"summary":{"title":"CVE-2017-16997","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.","state":"PUBLISHED","assigner":"debian","published_at":"2017-12-18 01:29:00","updated_at":"2025-04-20 01:37:25"},"problem_types":["CWE-426","improper RPATH/RUNPATH validation"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"7.8","severity":"HIGH","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","data":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"9.3","severity":"","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","baseScore":9.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"https://bugs.debian.org/884615","name":"https://bugs.debian.org/884615","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Mailing List","Patch","Third Party Advisory"],"title":"#884615 - src:glibc: CVE-2017-16997: incorrect RPATH/RUNPATH handling for SUID binaries - Debian Bug report logs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://access.redhat.com/errata/RHBA-2019:0327","name":"https://access.redhat.com/errata/RHBA-2019:0327","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/102228","name":"http://www.securityfocus.com/bid/102228","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"GNU C Library 'elf/dl-load.c ' CVE-2017-16997 Local Privilege Escalation Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://access.redhat.com/errata/RHSA-2018:3092","name":"https://access.redhat.com/errata/RHSA-2018:3092","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=22625","name":"https://sourceware.org/bugzilla/show_bug.cgi?id=22625","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"22625 – (CVE-2017-16997) RPATH $ORIGIN replaced by PWD for AT_SECURE/SUID binaries or if /proc is not mounted (CVE-2017-16997)","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html","name":"https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"Aurelien Jarno - [PATCH] elf: Check for empty tokens before dynamic string token expansio","mime":"text/x-diff","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-16997","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16997","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"glibc 2.19 through 2.26","version":"affected glibc 2.19 through 2.26","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"glibc","cpe6":"2.19","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"glibc","cpe6":"2.20","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"glibc","cpe6":"2.21","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"glibc","cpe6":"2.22","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"glibc","cpe6":"2.23","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"glibc","cpe6":"2.25","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"glibc","cpe6":"2.26","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux_desktop","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux_server","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"16997","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux_workstation","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2017","cve_id":"16997","cve":"CVE-2017-16997","epss":"0.011330000","percentile":"0.785570000","score_date":"2026-05-18","updated_at":"2026-05-19 00:10:21"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-05T20:43:59.423Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=22625"},{"name":"102228","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/102228"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugs.debian.org/884615"},{"name":"RHSA-2018:3092","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"https://access.redhat.com/errata/RHSA-2018:3092"},{"name":"RHBA-2019:0327","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"https://access.redhat.com/errata/RHBA-2019:0327"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"glibc 2.19 through 2.26","vendor":"n/a","versions":[{"status":"affected","version":"glibc 2.19 through 2.26"}]}],"datePublic":"2017-12-17T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"improper RPATH/RUNPATH validation","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2019-04-24T05:06:03.000Z","orgId":"79363d38-fa19-49d1-9214-5f28da3f3ac5","shortName":"debian"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=22625"},{"name":"102228","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/102228"},{"tags":["x_refsource_CONFIRM"],"url":"https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html"},{"tags":["x_refsource_CONFIRM"],"url":"https://bugs.debian.org/884615"},{"name":"RHSA-2018:3092","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"https://access.redhat.com/errata/RHSA-2018:3092"},{"name":"RHBA-2019:0327","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"https://access.redhat.com/errata/RHBA-2019:0327"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@debian.org","ID":"CVE-2017-16997","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"glibc 2.19 through 2.26","version":{"version_data":[{"version_value":"glibc 2.19 through 2.26"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"improper RPATH/RUNPATH validation"}]}]},"references":{"reference_data":[{"name":"https://sourceware.org/bugzilla/show_bug.cgi?id=22625","refsource":"CONFIRM","url":"https://sourceware.org/bugzilla/show_bug.cgi?id=22625"},{"name":"102228","refsource":"BID","url":"http://www.securityfocus.com/bid/102228"},{"name":"https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html","refsource":"CONFIRM","url":"https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html"},{"name":"https://bugs.debian.org/884615","refsource":"CONFIRM","url":"https://bugs.debian.org/884615"},{"name":"RHSA-2018:3092","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2018:3092"},{"name":"RHBA-2019:0327","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHBA-2019:0327"}]}}}},"cveMetadata":{"assignerOrgId":"79363d38-fa19-49d1-9214-5f28da3f3ac5","assignerShortName":"debian","cveId":"CVE-2017-16997","datePublished":"2017-12-18T01:00:00.000Z","dateReserved":"2017-11-27T00:00:00.000Z","dateUpdated":"2024-08-05T20:43:59.423Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2017-12-18 01:29:00","lastModifiedDate":"2025-04-20 01:37:25","problem_types":["CWE-426","improper RPATH/RUNPATH validation"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","baseScore":9.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":8.6,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:glibc:2.19:*:*:*:*:*:*:*","matchCriteriaId":"1829B291-7B55-4B4A-9CA4-8784932935B8"},{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:glibc:2.20:*:*:*:*:*:*:*","matchCriteriaId":"D625EEF2-DB23-4DFE-AF1C-BEE2DD38C54D"},{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:glibc:2.21:*:*:*:*:*:*:*","matchCriteriaId":"47C2E388-06A8-4AD0-9511-749FD10D2936"},{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:glibc:2.22:*:*:*:*:*:*:*","matchCriteriaId":"8DB1928D-6A44-4B2D-A9BB-4656AF47317B"},{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:glibc:2.23:*:*:*:*:*:*:*","matchCriteriaId":"32938018-220F-4444-984C-2D0CACFAAD04"},{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:glibc:2.25:*:*:*:*:*:*:*","matchCriteriaId":"36AD162E-4C9C-48A5-B2BF-9C0B4BDD5822"},{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:glibc:2.26:*:*:*:*:*:*:*","matchCriteriaId":"7B1B17E4-66FB-48F1-A417-2B502955257A"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*","matchCriteriaId":"33C068A4-3780-4EAB-A937-6082DF847564"},{"vulnerable":true,"criteria":"cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*","matchCriteriaId":"51EF4996-72F4-4FA4-814F-F5991E7A8318"},{"vulnerable":true,"criteria":"cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*","matchCriteriaId":"825ECE2D-E232-46E0-A047-074B34DB1E97"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2017","CveId":"16997","Ordinal":"1","Title":"CVE-2017-16997","CVE":"CVE-2017-16997","Year":"2017"},"notes":[{"CveYear":"2017","CveId":"16997","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2017-16997"},{"CveYear":"2017","CveId":"16997","Ordinal":"2","NoteData":"2017-12-17","Type":"Other","Title":"Published"},{"CveYear":"2017","CveId":"16997","Ordinal":"3","NoteData":"2019-04-24","Type":"Other","Title":"Modified"}]}}}