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

  1. 2005-11-11First Exploit-DB entry (EDB-ID 26498)30 days before publication
  2. 2005-12-11Published by the CNA02:00 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 27057locallinux2006-01-09yes
EDB-ID 27056locallinux2006-01-09yes
EDB-ID 26498locallinux2005-11-11yes

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
todd_miller sudo1.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

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources