{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2005-4158 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2005-4158 is a medium-severity vulnerability in n/a, published on 11 Dec 2005. 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-2005-4158 and fix it if it is affected.\n\nWhat it is: CVE-2005-4158 is a medium-severity vulnerability in n/a, published on 11 Dec 2005. 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-2005-4158 exists.\n\nAffected product: n/a. 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-2005-4158/ (Markdown: https://insights.sbomify.com/CVE-2005-4158/index.md)","id":"CVE-2005-4158","markdown":"https://insights.sbomify.com/CVE-2005-4158/index.md","name":"CVE-2005-4158","record":{"aliases":["DEBIAN-CVE-2005-4158","GHSA-h6pw-5prw-wv25"],"analysis":{"component_type":"operating_system","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Sudo utility","requires_auth":"low_privilege","summary":"Local attackers can escalate privileges by exploiting unfiltered Perl environment variables in Sudo when taint mode is disabled.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"sudo","vendor":"todd_miller"}],"cvss":{"score":4.6,"severity":"medium","source":"nvd","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[],"description":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT environment variables, which allows limited local users to cause a Perl script to include and execute arbitrary library files that have the same name as library files that are included by the script.","ecosystems":[],"exploits":{"exploitdb":3,"first_seen":"2005-11-11","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2005-11-11","kind":"exploitdb","ref":"26498","stars":null,"title":"Sudo Perl 1.6.x - Environment Variable Handling Security Bypass"},{"date":"2006-01-09","kind":"exploitdb","ref":"27056","stars":null,"title":"Sudo 1.6.x - Environment Variable Handling Security Bypass (1)"},{"date":"2006-01-09","kind":"exploitdb","ref":"27057","stars":null,"title":"Sudo 1.6.x - Environment Variable Handling Security Bypass (2)"}],"tier":"weaponised"},"has_fix":true,"headline":"Privilege escalation in n/a","id":"CVE-2005-4158","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2005"},"n_packages":0,"n_references":19,"next":{"headline":"SQL injection in n/a","id":"CVE-2005-4159"},"packages":[],"prev":{"headline":"Auth bypass in n/a","id":"CVE-2005-4157"},"products":["n/a"],"published":"2005-12-11","related":[{"cvss_score":8.4,"headline":"Privilege escalation in n/a","id":"CVE-2005-1831","kev_date_added":null,"published":"2005-06-02"},{"cvss_score":7.2,"headline":"Privilege escalation in n/a","id":"CVE-2012-2337","kev_date_added":null,"published":"2012-05-18"},{"cvss_score":7.2,"headline":"Memory corruption in n/a","id":"CVE-2012-0809","kev_date_added":null,"published":"2012-02-01"},{"cvss_score":7.2,"headline":"Privilege escalation in n/a","id":"CVE-2006-0151","kev_date_added":null,"published":"2006-01-09"},{"cvss_score":7.2,"headline":"Privilege escalation in n/a","id":"CVE-2002-0043","kev_date_added":null,"published":"2002-06-25"},{"cvss_score":7.2,"headline":"Privilege escalation in n/a","id":"CVE-1999-0958","kev_date_added":null,"published":"2000-04-18"},{"cvss_score":7,"headline":"Security feature bypass in n/a","id":"CVE-2016-7032","kev_date_added":null,"published":"2017-04-14"}],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"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 escalate privileges by exploiting unfiltered Perl environment variables in Sudo when taint mode is disabled.","url":"https://insights.sbomify.com/CVE-2005-4158/"}