Skip to content
Fencer Vulns
low 3.6

CVE-2006-4842 json

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 specif…

published 2006-10-12 20 y ago modified 2026-06-16 4 mo ago also EUVD-2006-4829

cvss
3.6
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
7.7%
EPSS 7.7% chance of exploitation in 30 days, percentile 94%
public exploits
7
Metasploit, Exploit-DB

Summary

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.

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2006-4842 updated

nspr: setuid root programs linked with NSPR allow elevation of privilege

  • Red Hat Enterprise Linux 4 nspr Red Hat Enterprise Linux 5 nspr Red Hat Enterprise Linux 6 nspr Red Hat Enterprise Linux 7 nspr
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (Metasploit exploit/solaris/local/libnspr_nspr_log_file_priv_esc)
  2. Published

Exploit prediction

7.68% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • Metasploit exploit/solaris/local/libnspr_nspr_log_file_priv_esc Solaris libnspr NSPR_LOG_FILE Privilege Escalation metasploit exploit, excellent rank, 2006-10-11
  • EDB-45433 Solaris - libnspr NSPR_LOG_FILE Privilege Escalation (Metasploit) local, 2018-09-18
  • EDB-28789 Sun Solaris Netscape Portable Runtime API 4.6.1 - Local Privilege Escalation (2) local, 2006-10-24
  • EDB-28788 Sun Solaris Netscape Portable Runtime API 4.6.1 - Local Privilege Escalation (1) local, 2006-10-13
  • EDB-2641 Solaris 10 libnspr - 'Constructor' Arbitrary File Creation Privilege Escalation (3) local, 2006-10-24
  • EDB-2569 Solaris 10 libnspr - 'LD_PRELOAD' Arbitrary File Creation Privilege Escalation (2) local, 2006-10-16
  • EDB-2543 Solaris 10 libnspr - 'LD_PRELOAD' Arbitrary File Creation Privilege Escalation (1) local, 2006-10-13

CVSS scores

assigned by version score vector
NVD 2.0 3.6 AV:L/AC:L/Au:N/C:N/I:P/A:P

Classification

Weakness
  • CWE-20 Improper Input Validation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.