# CVE-2005-4158

- Priority: **Prioritise**
- Reason: Weaponized exploit (exploit-database, 09-01-2006)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2005-12-11 · Modified: 2024-08-07
- Aliases: DEBIAN-CVE-2005-4158
- Record: https://cvemate.com/vulnerability/CVE-2005-4158 · JSON: https://cvemate.com/vulnerability/CVE-2005-4158/json

## Description

```text
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.
```

## Signals

- CVSS: 4.6 medium (v2.0, NVD) AV:L/AC:L/Au:N/C:P/I:P/A:P
- EPSS: 1.077%, percentile 66.175%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 4 (reference, exploit-database)

## Affected

- debian sudo (Debian): \< 1.6.8p12-1
- todd\_miller sudo: 1.5.6 \| 1.5.7 \| 1.5.8 \| 1.5.9 \| 1.6 \| 1.6.1 \| 1.6.2 \| 1.6.3 \| 1.6.3\_p1 \| 1.6.3\_p2 \| 1.6.3\_p3 \| 1.6.3\_p4 \| 1.6.3\_p5 \| 1.6.3\_p6 \| 1.6.3\_p7 \| 1.6.4 \| 1.6.4\_p1 \| 1.6.4\_p2 \| 1.6.5 \| 1.6.5\_p1 \| 1.6.5\_p2 \| 1.6.6 \| 1.6.7 \| 1.6.7\_p5 \| 1.6.8 \| 1.6.8\_p1 \| 1.6.8\_p5 \| 1.6.8\_p7 \| 1.6.8\_p8 \| 1.6.8\_p9

## References

- <http://www.mandriva.com/security/advisories?name=MDKSA-2005:234>
- <http://secunia.com/advisories/18549>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/23102>
- <http://secunia.com/advisories/18558>
- <http://www.trustix.org/errata/2006/0002/>
- <http://secunia.com/advisories/18463>
- <http://secunia.com/advisories/18308>
- <http://www.vupen.com/english/advisories/2005/2386>
- <http://www.securityfocus.com/bid/15394>
- <http://secunia.com/advisories/18156>
- <http://secunia.com/advisories/18102>
- <https://www.ubuntu.com/usn/usn-235-1/>
- <http://www.novell.com/linux/security/advisories/2006_02_sr.html>
- <http://www.debian.org/security/2006/dsa-946>
- <http://securitytracker.com/alerts/2005/Nov/1015192.html>
- <http://www.mandriva.com/security/advisories?name=MDKSA-2006:159>
- <http://secunia.com/advisories/21692>
- <http://www.sudo.ws/sudo/alerts/perl_env.html>
- <http://secunia.com/advisories/17534/>
- <https://security-tracker.debian.org/tracker/CVE-2005-4158>

---

Data as of 2026-12-05T03:23:35.972Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
