← Vulnerability feed

Vulnerability record · CVE-2005-4158 · published 11 December 2005

CVE-2005-4158: Todd miller sudo vulnerability

Todd Miller · Sudo

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.

4.6 CVSS 2.0 Medium EPSS 1.1% · top 36.3%
4.6CVSS 2.0 base score
1.1%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
38References, 2 tagged exploit
16 Jun 2026Last modified by NVD

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.

AV:L/AC:L/Au:N/C:P/I:P/A:P

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://secunia.com/advisories/17534/ PatchVendor Advisory
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://securitytracker.com/alerts/2005/Nov/1015192.html Patch
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.securityfocus.com/bid/15394 ExploitPatch
http://www.sudo.ws/sudo/alerts/perl_env.html PatchVendor Advisory
http://www.trustix.org/errata/2006/0002/
http://www.vupen.com/english/advisories/2005/2386
https://exchange.xforce.ibmcloud.com/vulnerabilities/23102
https://www.ubuntu.com/usn/usn-235-1/
http://secunia.com/advisories/17534/ PatchVendor Advisory
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://securitytracker.com/alerts/2005/Nov/1015192.html Patch
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.securityfocus.com/bid/15394 ExploitPatch
http://www.sudo.ws/sudo/alerts/perl_env.html PatchVendor Advisory
http://www.trustix.org/errata/2006/0002/
http://www.vupen.com/english/advisories/2005/2386
https://exchange.xforce.ibmcloud.com/vulnerabilities/23102
https://www.ubuntu.com/usn/usn-235-1/

Track CVE-2005-4158 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.4CVE-2005-1831Todd miller sudo vulnerabilitySudo 1.6.8p7 on SuSE Linux 9.3, and possibly other Linux distributions, allows local users to gain privileges by using sudo to call su, then entering…EPSS 0.40%7.2CVE-2012-2337Todd miller sudo permissions and access controls vulnerabilitysudo 1.6.x and 1.7.x before 1.7.9p1, and 1.8.x before 1.8.4p5, does not properly support configurations that use a netmask syntax, which allows local…EPSS 0.40%7.2CVE-2012-0809Todd miller sudo vulnerabilityFormat string vulnerability in the sudo_debug function in Sudo 1.8.0 through 1.8.3p1 allows local users to execute arbitrary code via format string s…EPSS 2.9%7.2CVE-2007-3149Mit kerberos 5 vulnerabilitysudo, when linked with MIT Kerberos 5 (krb5), does not properly check whether a user can currently authenticate to Kerberos, which allows local users…EPSS 0.36%7.2CVE-2006-0151Todd miller sudo vulnerabilitysudo 1.6.8 and other versions does not clear the PYTHONINSPECT environment variable, which allows limited local users to gain privileges via a Python…EPSS 0.61%7.2CVE-2004-1051Mandrakesoft mandrake multi network firewall vulnerabilitysudo before 1.6.8p2 allows local users to execute arbitrary commands by using "()" style environment variables to create functions that have the same…EPSS 1.4%7.2CVE-2002-0043Todd miller sudo vulnerabilitysudo 1.6.0 through 1.6.3p7 does not properly clear the environment before calling the mail program, which could allow local users to gain root privil…EPSS 0.93%7.2CVE-1999-0958Todd miller sudo vulnerabilitysudo 1.5.x allows local users to execute arbitrary commands via a .. (dot dot) attack.EPSS 0.43%

Source: NIST National Vulnerability Database (record CVE-2005-4158), CISA KEV, FIRST EPSS (scores of 2026-09-30). This page is refreshed as NVD updates the record.