CVEBrief

Home / Todd Miller / Sudo / CVE-2005-4158

CVE-2005-4158: is it exploited, and which versions of Todd Miller Sudo are affected and fixed?

CVE-2005-4158 is a vulnerability in Todd Miller Sudo. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:08 UTC). Affected: sudo 1.5.6, sudo 1.5.7, sudo 1.5.8 and 27 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (4.6, CVSS 2.0, from NVD).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:08 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:54 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 09:08 UTC
Affected
sudo 1.5.6, sudo 1.5.7, sudo 1.5.8 and 27 more
NVD
Fixed in
Not listed
check the vendor advisory
Severity
Medium 4.6
CVSS 2.0 from NVD
Exploit odds (EPSS)
1.08% in 30 days
higher than 66% of CVEs; FIRST, December 2, 2026

What is 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, 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.

From the CVE record by mitre, last updated August 7, 2024, 23:38 UTC.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
todd millersudo1.5.6application
todd millersudo1.5.7application
todd millersudo1.5.8application
todd millersudo1.5.9application
todd millersudo1.6application
todd millersudo1.6.1application
todd millersudo1.6.2application
todd millersudo1.6.3application
todd millersudo1.6.3_p1application
todd millersudo1.6.3_p2application
todd millersudo1.6.3_p3application
todd millersudo1.6.3_p4application
todd millersudo1.6.3_p5application
todd millersudo1.6.3_p6application
todd millersudo1.6.3_p7application
todd millersudo1.6.4application
todd millersudo1.6.4_p1application
todd millersudo1.6.4_p2application
todd millersudo1.6.5application
todd millersudo1.6.5_p1application
todd millersudo1.6.5_p2application
todd millersudo1.6.6application
todd millersudo1.6.7application
todd millersudo1.6.7_p5application
todd millersudo1.6.8application

NVD analysis (status Modified), last modified June 16, 2026, 22:18 UTC.

How severe is CVE-2005-4158?

ScoreVersionVectorSource
Medium 4.6CVSS 2.0AV:L/AC:L/Au:N/C:P/I:P/A:PNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2005-4158 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
1.08% probability of exploitation activity in the next 30 days, percentile 66.0 (FIRST EPSS, scores of December 2, 2026)

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
December 11, 2005
Published
December 11, 2005, 02:00 UTC
CVE record updated
August 7, 2024, 23:38 UTC by mitre
NVD
Modified, last modified June 16, 2026, 22:18 UTC
Last checked
CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:54 UTC; KEV December 3, 2026, 09:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Sudo?

Every CVE in Sudo

Questions about CVE-2005-4158

Is CVE-2005-4158 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:08 UTC. FIRST's EPSS gives it a 1.08% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Todd Miller Sudo are affected by CVE-2005-4158?

sudo 1.5.6, sudo 1.5.7, sudo 1.5.8, sudo 1.5.9, sudo 1.6, sudo 1.6.1 and 24 more, per the NVD. The tables above give every range the sources list.

Which version fixes CVE-2005-4158?

None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.

How severe is CVE-2005-4158?

Medium (4.6, CVSS 2.0, from NVD). The severity table above shows each score with its source.

Where is the official record of CVE-2005-4158?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.