CVE-2005-4158: Medium severity todd miller sudo vulnerability

Published Dec 11, 2005
·
Updated

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 Software

30 affected components
Todd Miller Sudo=1.5.6
Todd Miller Sudo=1.5.7
Todd Miller Sudo=1.5.8
Todd Miller Sudo=1.5.9
Todd Miller Sudo=1.6
Todd Miller Sudo=1.6.1
Todd Miller Sudo=1.6.2
Todd Miller Sudo=1.6.3
Todd Miller Sudo=1.6.3_p1
Todd Miller Sudo=1.6.3_p2
Todd Miller Sudo=1.6.3_p3
Todd Miller Sudo=1.6.3_p4
Todd Miller Sudo=1.6.3_p5
Todd Miller Sudo=1.6.3_p6
Todd Miller Sudo=1.6.3_p7
Todd Miller Sudo=1.6.4
Todd Miller Sudo=1.6.4_p1
Todd Miller Sudo=1.6.4_p2
Todd Miller Sudo=1.6.5
Todd Miller Sudo=1.6.5_p1
Todd Miller Sudo=1.6.5_p2
Todd Miller Sudo=1.6.6
Todd Miller Sudo=1.6.7
Todd Miller Sudo=1.6.7_p5
Todd Miller Sudo=1.6.8
Todd Miller Sudo=1.6.8_p1
Todd Miller Sudo=1.6.8_p5
Todd Miller Sudo=1.6.8_p7
Todd Miller Sudo=1.6.8_p8
Todd Miller Sudo=1.6.8_p9

Event History

Dec 11, 2005
CVE Published
02:03 AM
CVE Published
via MITRE·07:00 AM
Data Sourced
via MITRE·07:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2005-4158?

CVE-2005-4158 has a moderate severity level as it allows limited local users to execute arbitrary Perl library files.

2

How do I fix CVE-2005-4158?

To fix CVE-2005-4158, upgrade to Sudo version 1.6.8 or later where the vulnerability is addressed.

3

What versions of Sudo are affected by CVE-2005-4158?

CVE-2005-4158 affects Sudo versions prior to 1.6.8 including 1.5.8, 1.5.9, and several 1.6.x versions.

4

What are the implications of CVE-2005-4158 for system security?

The implications of CVE-2005-4158 include the potential for unauthorized code execution by local users, which could lead to further system compromise.

5

How was CVE-2005-4158 discovered?

CVE-2005-4158 was discovered through analysis of the Sudo environment variable handling, particularly the handling of the Perl taint flag.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203