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 environment…
- 4.6MediumCVSS base score
- 1.1%Exploitation in 30 daysEPSS · top 35% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list 3 Exploit-DB entries for it.
Show the exploits3
Exploit-DB3 entries
- Sudo 1.6.x - Environment Variable Handling Security Bypass (1) (Exploit-DB entry) (opens in a new tab)
EDB-ID 27056local, linuxpublished 9 Jan 2006Verified
- Sudo 1.6.x - Environment Variable Handling Security Bypass (2) (Exploit-DB entry) (opens in a new tab)
EDB-ID 27057local, linuxpublished 9 Jan 2006Verified
- Sudo Perl 1.6.x - Environment Variable Handling Security Bypass (Exploit-DB entry) (opens in a new tab)
EDB-ID 26498local, linuxpublished 11 Nov 2005Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
Published
- 19 years later
· 19 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 1.1% · top 35% of all CVEs (9 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.6.
Affected products
n/a
- affected n/a
References
19
- MDKSA-2005:234 (opens in a new tab)vendor-advisoryx_refsource_MANDRAKEx_transferred
- 18549 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- sudo-perl-execute-code(23102) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- 18558 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 2006-0002 (opens in a new tab)vendor-advisoryx_refsource_TRUSTIXx_transferred
- 18463 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 18308 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- ADV-2005-2386 (opens in a new tab)vdb-entryx_refsource_VUPENx_transferred
- 15394 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 18156 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 18102 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- USN-235-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- SUSE-SR:2006:002 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- DSA-946 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 1015192 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- MDKSA-2006:159 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 21692 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- http://www.sudo.ws/sudo/alerts/perl_env.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- 17534 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2005-4153 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2005-4158)Record last updated .