CVE-2006-4842 Path traversal in n/a

Low 3.6 Published Updated

Local attackers can exploit environment variable handling in NSPR setuid programs to create or overwrite arbitrary files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2006-4842?

CVE-2006-4842 is a low-severity path traversal vulnerability in Sun Solaris, published on 12 Oct 2006. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The Netscape Portable Runtime (NSPR) API 4.6.1 and 4.6.2, as used in Sun Solaris 10, trusts user-specified environment variables for specifying log files even when running from setuid programs, which allows local users to create or overwrite arbitrary files.

Weakness: CWE-20

Which versions are affected by CVE-2006-4842?

It affects 2 products.

Products include Netscape Portable Runtime Api, Sun Solaris.

How do I fix CVE-2006-4842?

No fix has been published for CVE-2006-4842 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2006-4842 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-4842 exists.

Public exploit code: 1 Metasploit module and 7 Exploit-DB entries.

Sources

Also known as GHSA-c7x4-3f9v-h9qf.

Is CVE-2006-4842 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free