Untrusted search path in glibc 2.19 through 2.26
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 10 fixed, 3 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-426.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | glibc 2.19 through 2.26 | glibc 2.19 through 2.26 | — | No fix listed | CNA |
- glibc 2.19 through 2.26 Vendor— Affected glibc 2.19 through 2.26 Fixed in — No fix listed CNA
CPE configurations NVD · 10
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gnu:glibc:2.19:*:*:*:*:*:*:* | 2.19 | Vulnerable | GNU |
| cpe:2.3:a:gnu:glibc:2.20:*:*:*:*:*:*:* | 2.20 | Vulnerable | GNU |
| cpe:2.3:a:gnu:glibc:2.21:*:*:*:*:*:*:* | 2.21 | Vulnerable | GNU |
| cpe:2.3:a:gnu:glibc:2.22:*:*:*:*:*:*:* | 2.22 | Vulnerable | GNU |
| cpe:2.3:a:gnu:glibc:2.23:*:*:*:*:*:*:* | 2.23 | Vulnerable | GNU |
| cpe:2.3:a:gnu:glibc:2.25:*:*:*:*:*:*:* | 2.25 | Vulnerable | GNU |
| cpe:2.3:a:gnu:glibc:2.26:*:*:*:*:*:*:* | 2.26 | Vulnerable | GNU |
| cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
- cpe:2.3:a:gnu:glibc:2.19:*:*:*:*:*:*:* Versions 2.19 Vulnerable ·GNU
- cpe:2.3:a:gnu:glibc:2.20:*:*:*:*:*:*:* Versions 2.20 Vulnerable ·GNU
- cpe:2.3:a:gnu:glibc:2.21:*:*:*:*:*:*:* Versions 2.21 Vulnerable ·GNU
- cpe:2.3:a:gnu:glibc:2.22:*:*:*:*:*:*:* Versions 2.22 Vulnerable ·GNU
- cpe:2.3:a:gnu:glibc:2.23:*:*:*:*:*:*:* Versions 2.23 Vulnerable ·GNU
- cpe:2.3:a:gnu:glibc:2.25:*:*:*:*:*:*:* Versions 2.25 Vulnerable ·GNU
- cpe:2.3:a:gnu:glibc:2.26:*:*:*:*:*:*:* Versions 2.26 Vulnerable ·GNU
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
Remediation
Red Hat 1 advisory
- RHSA-2018:3092 Released 2018-10-30 · Red Hat rating Moderateglibc security, bug fix, and enhancement update
- Red Hat Enterprise Linux Client (v. 7) glibc-2.17-260.el7, glibc-common-2.17-260.el7, glibc-devel-2.17-260.el7 +3
- Red Hat Enterprise Linux Client Optional (v. 7) glibc-static-2.17-260.el7
- Red Hat Enterprise Linux ComputeNode (v. 7) glibc-2.17-260.el7, glibc-common-2.17-260.el7, glibc-devel-2.17-260.el7 +3
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) glibc-static-2.17-260.el7
- Red Hat Enterprise Linux Server (v. 7) glibc-2.17-260.el7, glibc-2.17-260.el7.ppc, glibc-common-2.17-260.el7 +5
- Red Hat Enterprise Linux Server Optional (v. 7) glibc-static-2.17-260.el7, glibc-static-2.17-260.el7.ppc
- Red Hat Enterprise Linux Workstation (v. 7) glibc-2.17-260.el7, glibc-common-2.17-260.el7, glibc-devel-2.17-260.el7 +3
- Red Hat Enterprise Linux Workstation Optional (v. 7) glibc-static-2.17-260.el7
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) glibc-2.17-260.el7, glibc-common-2.17-260.el7, glibc-devel-2.17-260.el7 +3
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) glibc-static-2.17-260.el7
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2018:3092 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2018:3092 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2018:3092 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2018:3092 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:3092 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2018:3092 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:3092 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2018:3092 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2018:3092 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2018:3092 |
Not affected: 1 product
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2017-16997
- 2026-10-03 Alias added: GHSA-q5m3-4jcg-c4rf
References
Sources
- CVE-2017-16997 · CVE Program
- CVE-2017-16997 · NVD
- FIRST EPSS
- GHSA-q5m3-4jcg-c4rf · GitHub Advisory Database · CC BY 4.0
- CVE-2017-16997 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences