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
- First public exploit (EDB-26498)
- 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
-
securityfocus.com
/bid/15394
vdb-entry, exploit, patch
-
securitytracker.com
/alerts/2005/Nov/1015192.html
vdb-entry, patch
-
sudo.ws
/sudo/alerts/perl_env.html
patch, vendor-advisory
-
secunia.com
/advisories/17534/
third-party-advisory, patch, vendor-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2005:234
vendor-advisory
-
trustix.org
/errata/2006/0002/
vendor-advisory
-
ubuntu.com
/usn/usn-235-1/
vendor-advisory
-
novell.com
/linux/security/advisories/2006_02_sr.html
vendor-advisory
-
debian.org
/security/2006/dsa-946
vendor-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2006:159
vendor-advisory
-
secunia.com
/advisories/18549
third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/23102
vdb-entry
-
secunia.com
/advisories/18558
third-party-advisory
-
secunia.com
/advisories/18463
third-party-advisory
-
secunia.com
/advisories/18308
third-party-advisory
-
vupen.com
/english/advisories/2005/2386
vdb-entry
-
secunia.com
/advisories/18156
third-party-advisory
-
secunia.com
/advisories/18102
third-party-advisory
-
secunia.com
/advisories/21692
third-party-advisory
Sources
- CVE List CVE-2005-4158
- NVD CVE-2005-4158
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.