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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Exploit-DB 2
- glibc-2.2 / openssh-2.3.0p1 / glibc 2.1.9x - File Read EDB-258 · local · Jan 25, 2001 · verified
- Resolv+ 'RESOLV_HOST_CONF' - Linux Library Command Execution EDB-317 · local · Jan 1, 1996 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- linux-glibc-read-files(5907) vdb-entry
- RHSA-2001:001 vendor-advisory
- 20010110 [slackware-security] glibc 2.2 local vulnerability on setuid binaries mailing-list
- 20010110 Glibc Local Root Exploit mailing-list
- 2181 vdb-entry