Skip to content
Fencer Vulns
medium 4.6

CVE-2005-4158 json

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 variable…

published 2005-12-11 20 y ago modified 2026-06-16 4 mo ago also EUVD-2005-4153

cvss
4.6
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.1%
EPSS 1.1% chance of exploitation in 30 days, percentile 65%
public exploits
3
Exploit-DB

Summary

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.

Patch / fix

  • sudo Debian 14, Debian 13, Debian 12 1.6.8p12-1

debian advisories DEBIAN-CVE-2005-4158

  • sudo openSUSE Tumbleweed 1.9.7p2-1.4

opensuse advisories openSUSE-SU-2024:11413-1

Timeline

  1. First public exploit (EDB-26498)
  2. Published

Exploit prediction

1.08% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-27057 Sudo 1.6.x - Environment Variable Handling Security Bypass (2) local, 2006-01-09
  • EDB-27056 Sudo 1.6.x - Environment Variable Handling Security Bypass (1) local, 2006-01-09
  • EDB-26498 Sudo Perl 1.6.x - Environment Variable Handling Security Bypass local, 2005-11-11
  • securityfocus.com http://www.securityfocus.com/bid/15394 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 4.6 AV:L/AC:L/Au:N/C:P/I:P/A:P

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.