{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-4842 exists.","fix":"No fix has been published for CVE-2006-4842 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2006-4842 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-4842 exists.\n\nAffected product: Sun Solaris. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2006-4842/ (Markdown: https://insights.sbomify.com/CVE-2006-4842/index.md)","id":"CVE-2006-4842","markdown":"https://insights.sbomify.com/CVE-2006-4842/index.md","name":"CVE-2006-4842","record":{"aliases":["GHSA-c7x4-3f9v-h9qf"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Netscape Portable Runtime","requires_auth":"low_privilege","summary":"Local attackers can exploit environment variable handling in NSPR setuid programs to create or overwrite arbitrary files.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"portable_runtime_api","vendor":"netscape"},{"product":"solaris","vendor":"sun"}],"cvss":{"score":3.6,"severity":"low","source":"nvd","vector":"AV:L/AC:L/Au:N/C:N/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":[],"exploits":{"exploitdb":7,"first_seen":"2006-10-11","github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":0,"refs":[{"date":"2006-10-11","kind":"metasploit","ref":"exploit/solaris/local/libnspr_nspr_log_file_priv_esc","stars":null,"title":"Solaris libnspr NSPR_LOG_FILE Privilege Escalation"},{"date":"2006-10-13","kind":"exploitdb","ref":"2543","stars":null,"title":"Solaris 10 libnspr - 'LD_PRELOAD' Arbitrary File Creation Privilege Escalation (1)"},{"date":"2006-10-13","kind":"exploitdb","ref":"28788","stars":null,"title":"Sun Solaris Netscape Portable Runtime API 4.6.1 - Local Privilege Escalation (1)"},{"date":"2006-10-16","kind":"exploitdb","ref":"2569","stars":null,"title":"Solaris 10 libnspr - 'LD_PRELOAD' Arbitrary File Creation Privilege Escalation (2)"},{"date":"2006-10-24","kind":"exploitdb","ref":"2641","stars":null,"title":"Solaris 10 libnspr - 'Constructor' Arbitrary File Creation Privilege Escalation (3)"},{"date":"2006-10-24","kind":"exploitdb","ref":"28789","stars":null,"title":"Sun Solaris Netscape Portable Runtime API 4.6.1 - Local Privilege Escalation (2)"},{"date":"2018-09-18","kind":"exploitdb","ref":"45433","stars":null,"title":"Solaris - libnspr NSPR_LOG_FILE Privilege Escalation (Metasploit)"},{"date":"2018-09-18","kind":"exploitdb","ref":"45433","stars":null,"title":"Solaris - libnspr NSPR_LOG_FILE Privilege Escalation (Metasploit)"}],"tier":"weaponised"},"has_fix":null,"headline":"Path traversal in n/a","id":"CVE-2006-4842","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"sun:solaris","products":["sun:solaris"],"type":"path_traversal","year":"2006"},"n_packages":0,"n_references":10,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2006-4843"},"packages":[],"prev":{"headline":"Denial of service in n/a","id":"CVE-2006-4839"},"products":["n/a"],"published":"2006-10-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Local attackers can exploit environment variable handling in NSPR setuid programs to create or overwrite arbitrary files.","url":"https://insights.sbomify.com/CVE-2006-4842/"}