CVE-2005-4158
Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT…
Also known as EDB-26498, EDB-27056, EDB-27057
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- n/a
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.6 (v2.0, NVD)AV:L/AC:L/Au:N/C:P/I:P/A:P
Show all 6 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Authentication: None
- Confidentiality impact: Partial
- Integrity impact: Partial
- Availability impact: Partial
- EPSS
- 1.08% chance of exploitation in 30 days (percentile 65, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2005-4158. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2005-4158.md Affected: n/a Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:234
- http://www.trustix.org/errata/2006/0002/
- https://www.ubuntu.com/usn/usn-235-1/
- http://www.novell.com/linux/security/advisories/2006_02_sr.html
- http://www.debian.org/security/2006/dsa-946
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:159
Patches
Exploits and PoCs
Other
- http://secunia.com/advisories/18549
- https://exchange.xforce.ibmcloud.com/vulnerabilities/23102
- http://secunia.com/advisories/18558
- http://secunia.com/advisories/18463
- http://secunia.com/advisories/18308
- http://www.vupen.com/english/advisories/2005/2386
- http://secunia.com/advisories/18156
- http://secunia.com/advisories/18102
- http://secunia.com/advisories/21692
FAQ
Is CVE-2005-4158 being exploited?
There is no confirmed exploitation: CVE-2005-4158 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.08% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2005-4158?
Medium: CVSS 4.6 (v2.0, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2005-4158?
n/a.
Is there a fix for CVE-2005-4158?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2005-4158?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.