Linux libc NLSPATH Vulnerability

BID:379

Info

Linux libc NLSPATH Vulnerability

Bugtraq ID: 379
Class: Boundary Condition Error
CVE:
Remote: Yes
Local: Yes
Published: Jan 19 1998 12:00AM
Updated: Jan 19 1998 12:00AM
Credit: First posted to BugTraq by solar <[email protected]> on February 13, 1997.
Vulnerable: Slackware Linux 3.1
Redhat Linux 4.0
Linux libc 5.3.12
Not Vulnerable: Slackware Linux 3.2
Redhat Linux 6.0
Redhat Linux 5.2 i386
Redhat Linux 5.1
- Standard & Poors ComStock 4.2.4
Redhat Linux 5.0
Linux libc 5.4

Discussion

Linux libc NLSPATH Vulnerability

There is a serious vulnerability in linux libc affecting all Linux distributions using libc 5.2.18 and below. The vulnerability is centered around the NLSPATH environment variable. Through exporting the oversized and shell-code including buffer to the environment variable NLSPATH, it is possible to exploit any setuid root program that's based on libc [almost all] and gain root access on the machine.

Exploit / POC

Linux libc NLSPATH Vulnerability

x

Solution / Fix

Linux libc NLSPATH Vulnerability

Solution:
Upgrade either libc to 5.4 or your linux distribution immediately.

References

Linux libc NLSPATH Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report