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 variables…
Noroxi assessment
Priority: Monitor (action score 18/100)
- Public proof-of-concept code exists (Exploit-DB); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 1% (FIRST EPSS); higher than 65.5% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: sudo (Debian:12) 1.6.8p12-1; sudo (Debian:3.0) 1.6.6-1.6; sudo (Debian:3.1) 1.6.8p7-1.4.
Low priority for now. Upgrade to sudo (Debian:12) 1.6.8p12-1; sudo (Debian:3.0) 1.6.6-1.6; sudo (Debian:3.1) 1.6.8p7-1.4 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Dec 10, 2005
- Updated
- Jun 16, 2026
- EPSS
- 1.0% · 65th percentile
- CWE
- —
Report tools
Action score
18
Low priority for now.
- CVSS
- 18 / 40 · 4.6 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.0%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| todd miller | sudo | cpe:2.3:a:todd_miller:sudo |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- todd miller sudo1.5.6
- todd miller sudo1.5.7
- todd miller sudo1.5.8
- todd miller sudo1.5.9
- todd miller sudo1.6
- todd miller sudo1.6.1
- todd miller sudo1.6.2
- todd miller sudo1.6.3
+12 more rows
- todd miller sudo1.6.3_p1
- todd miller sudo1.6.3_p2
- todd miller sudo1.6.3_p3
- todd miller sudo1.6.3_p4
- todd miller sudo1.6.3_p5
- todd miller sudo1.6.3_p6
- todd miller sudo1.6.3_p7
- todd miller sudo1.6.4
- todd miller sudo1.6.4_p1
- todd miller sudo1.6.4_p2
- todd miller sudo1.6.5
- todd miller sudo1.6.5_p1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | sudo | before 1.6.8p12-1 | 1.6.8p12-1 |
| Debian:3.0 | sudo | before 1.6.6-1.6 | 1.6.6-1.6 |
| Debian:3.1 | sudo | before 1.6.8p7-1.4 | 1.6.8p7-1.4 |
| openSUSE:Tumbleweed | sudo | before 1.9.7p2-1.4 | 1.9.7p2-1.4 |
Same product
todd miller: all recordsOther highest-scoring records for the same primary product.
- CVE-2013-1775sudo 1.6.0 through 1.7.10p6 and sudo 1.8.0 through 1.8.6p6 allows local users or physically proximate attackers to bypass intended time…40Plan
- CVE-2005-1831Sudo 1.6.8p7 on SuSE Linux 9.3, and possibly other Linux distributions, allows local users to gain privileges by using sudo to call su…33Monitor
- CVE-2012-0809Format string vulnerability in the sudo_debug function in Sudo 1.8.0 through 1.8.3p1 allows local users to execute arbitrary code via…29Monitor
Published before and after this one in the same product
- ← EarlierCVE-2005-1993Jun 20, 2005 · Race condition in sudo 1.3.1 up to 1.6.8p8, when the ALL pseudo-command is used after a user entry in the sudoers file, allows local users…14Monitor
- ← EarlierCVE-2005-2959Oct 25, 2005 · Incomplete blacklist vulnerability in sudo 1.6.8 and earlier allows local users to gain privileges via the (1) SHELLOPTS and (2) PS4…18Monitor
- Later →CVE-2006-0151Jan 9, 2006 · sudo 1.6.8 and other versions does not clear the PYTHONINSPECT environment variable, which allows limited local users to gain privileges…28Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:sudo | 1.6.8p12-1 · Debian:12 | Package registry (OSV) |
| opensuse:sudo | 1.9.7p2-1.4 · openSUSE:Tumbleweed | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×3
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | local | 2006-01-09 |
| Exploit-DB entry | local | 2006-01-09 |
| Exploit-DB entry | local | 2005-11-11 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-30 d
- Published
- TodayNov 16, 2026+7646 d
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
—
CVSS vector
AV:L/AC:L/Au:N/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (17 more)Show less
- secunia.com/advisories/18102
- secunia.com/advisories/18156
- secunia.com/advisories/18308
- secunia.com/advisories/18463
- secunia.com/advisories/18549
- secunia.com/advisories/18558
- secunia.com/advisories/21692
- securitytracker.com/alerts/2005/Nov/1015192.html
- www.debian.org/security/2006/dsa-946
- www.mandriva.com/security/advisories?name=MDKSA-2005:234
- www.mandriva.com/security/advisories?name=MDKSA-2006:159
- www.novell.com/linux/security/advisories/2006_02_sr.html
- www.sudo.ws/sudo/alerts/perl_env.html
- www.trustix.org/errata/2006/0002/
- www.vupen.com/english/advisories/2005/2386
- exchange.xforce.ibmcloud.com/vulnerabilities/23102
- www.ubuntu.com/usn/usn-235-1/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.