CVE-2005-4158
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
1.077%
chance of exploitation in the next 30 days
higher than 65.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 3
Timeline
- 2005-11-11First Exploit-DB entry (EDB-ID 26498)30 days before publication
- 2005-12-11Published by the CNA02:00 UTC
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 27057 | local | linux | 2006-01-09 | yes |
| EDB-ID 27056 | local | linux | 2006-01-09 | yes |
| EDB-ID 26498 | local | linux | 2005-11-11 | yes |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| todd_miller sudo | 1.5.6no fix listed1.5.7no fix listed1.5.8no fix listed1.5.9no fix listed1.6no fix listed(+25 more) | not listednot listednot listednot listednot listed |
References
- http://secunia.com/advisories/17534/
- http://securitytracker.com/alerts/2005/Nov/1015192.html
- http://www.securityfocus.com/bid/15394
- http://www.sudo.ws/sudo/alerts/perl_env.html
- http://www.debian.org/security/2006/dsa-946
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:234
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:159
- http://www.novell.com/linux/security/advisories/2006_02_sr.html
- http://www.trustix.org/errata/2006/0002/
- https://www.ubuntu.com/usn/usn-235-1/
- http://secunia.com/advisories/18102
- http://secunia.com/advisories/18156
- http://secunia.com/advisories/18308
- http://secunia.com/advisories/18463
- http://secunia.com/advisories/18549
- http://secunia.com/advisories/18558
- http://secunia.com/advisories/21692
- http://www.vupen.com/english/advisories/2005/2386
- https://exchange.xforce.ibmcloud.com/vulnerabilities/23102
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2005-4158'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2005-4158'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2005-4158'curl 'https://api.contrastcyber.com/cve_products/CVE-2005-4158'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).