CVE-2001-0170

glibc <2.1.9x - Info Disclosure

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2001-0170. PoCs published by krochos, Jared Mauch.

AI-analyzed exploit summary This exploit leverages a glibc vulnerability (CVE-2001-0170) to read arbitrary files (e.g., /etc/shadow) by manipulating the RESOLV_HOST_CONF environment variable. It checks for setuid binaries (ssh or traceroute) and uses ssh to trigger the vulnerability, dumping the file contents to /tmp/.resolv.

Description

glibc 2.1.9x and earlier does not properly clear the RESOLV_HOST_CONF, HOSTALIASES, or RES_OPTIONS environmental variables when executing setuid/setgid programs, which could allow local users to read arbitrary files.

Exploits (2)

exploitdb WORKING POC VERIFIED
by krochos · bashlocallinux
https://www.exploit-db.com/exploits/258

This exploit leverages a glibc vulnerability (CVE-2001-0170) to read arbitrary files (e.g., /etc/shadow) by manipulating the RESOLV_HOST_CONF environment variable. It checks for setuid binaries (ssh or traceroute) and uses ssh to trigger the vulnerability, dumping the file contents to /tmp/.resolv.

Classification
Working Poc 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: glibc >= 2.1.9x, openssh-2.3.0p1 (Debian 2.3, Redhat 7.0)
No auth needed
Prerequisites: ssh or traceroute binary must be setuid · glibc version >= 2.1.9x
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by Jared Mauch · textlocallinux
https://www.exploit-db.com/exploits/317

This exploit leverages a vulnerability in the `resolv+` library (CVE-2001-0170) by setting the `RESOLV_HOST_CONF` environment variable to `/etc/shadow` and triggering a `ping` command. This causes the system to read and potentially expose the contents of `/etc/shadow` due to improper handling of environment variables.

Classification
Working Poc 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: resolv+ library (versions affected by CVE-2001-0170)
No auth needed
Prerequisites: Access to execute commands on the target system
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/5907
Patch, Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2001-001.html
Patch, Vendor Advisory mailing-list x_refsource_bugtraq
http://archives.neohapsis.com/archives/bugtraq/2001-01/0186.html
Vendor Advisory mailing-list x_refsource_bugtraq
http://archives.neohapsis.com/archives/bugtraq/2001-01/0131.html
Patch, Vendor Advisory vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/2181

Scores

EPSS 0.0084
EPSS Percentile 53.1%

Details

Status published
Products (12)
conectiva/linux 4.0
conectiva/linux 4.0es
conectiva/linux 4.1
conectiva/linux 4.2
conectiva/linux 5.0
conectiva/linux 5.1
conectiva/linux 6.0
conectiva/linux ecommerce
conectiva/linux graficas
debian/debian_linux 2.3
... and 2 more
Published Mar 26, 2001
Tracked Since Feb 18, 2026