nday
CVE-2005-4158

Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2)…Title composed by nday; the CVE record has none.

A public PoC appeared 30 days before the CVE record was published. nday has no fix record for it yet; that does not mean no patch exists. Listed by 1 of 4 PoC sources: exploitdb. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

local
AV:L in AV:L/AC:L/Au:N/C:P/I:P/A:P (CVSS 2.0) from NVD's analysts
no authentication required
Au:N in AV:L/AC:L/Au:N/C:P/I:P/A:P (CVSS 2.0) from NVD's analysts
Exploit-DB
Exploit-DB entries 26498, 27056, 27057

CVSS 2.0 has no user-interaction metric, so “no user interaction” and “remote, unauthenticated” are never assigned from a CVSS 2.0 vector.

stage
POC
disclosed
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2005-12-11T02:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2005-11-11, date only +2 more
ITWexploited
no record yet
KEVKEV
no record yet

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.

Original text of the CVE record (cvelist), shown as published.

Event log

2005-11-11date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Sudo Perl 1.6.x - Environment Variable Handling Security Bypass” (EDB-26498). Verified by Exploit-DB.

src exploitdb 26498 · nday , bulk import · raw
{
  "id": 24505,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/26498",
  "occurred_at": "2005-11-11T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "26498",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/26498",
    "file": "exploits/linux/local/26498.txt",
    "kind": "exploit",
    "tags": [],
    "type": "local",
    "title": "Sudo Perl 1.6.x - Environment Variable Handling Security Bypass",
    "author": "Charles Morris",
    "edb_id": 26498,
    "cve_ids": [
      "CVE-2005-4158"
    ],
    "platform": "linux",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2005-11-11",
    "date_updated": "2013-07-01",
    "date_published": "2005-11-11"
  }
}
+DISdisclosed

CVE record published by mitre.

src cvelist · nday , bulk import · raw
{
  "id": 87686,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2005-4158",
  "occurred_at": "2005-12-11T02:00:00Z",
  "observed_at": "2026-11-13T05:35:42.579843Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2005-12-11T02:00:00.000Z",
    "assigner_short_name": "mitre"
  }
}
2006-01-09date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Sudo 1.6.x - Environment Variable Handling Security Bypass (1)” (EDB-27056). Verified by Exploit-DB.

src exploitdb 27056 · nday , bulk import · raw
{
  "id": 24494,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/27056",
  "occurred_at": "2006-01-09T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "27056",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/27056",
    "file": "exploits/linux/local/27056.txt",
    "kind": "exploit",
    "tags": [],
    "type": "local",
    "title": "Sudo 1.6.x - Environment Variable Handling Security Bypass (1)",
    "author": "Breno Silva Pinto",
    "edb_id": 27056,
    "cve_ids": [
      "CVE-2005-4158"
    ],
    "platform": "linux",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2006-01-09",
    "date_updated": "2013-07-24",
    "date_published": "2006-01-09"
  }
}
2006-01-09date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Sudo 1.6.x - Environment Variable Handling Security Bypass (2)” (EDB-27057). Verified by Exploit-DB.

src exploitdb 27057 · nday , bulk import · raw
{
  "id": 24495,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/27057",
  "occurred_at": "2006-01-09T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "27057",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/27057",
    "file": "exploits/linux/local/27057.txt",
    "kind": "exploit",
    "tags": [],
    "type": "local",
    "title": "Sudo 1.6.x - Environment Variable Handling Security Bypass (2)",
    "author": "Breno Silva Pinto",
    "edb_id": 27057,
    "cve_ids": [
      "CVE-2005-4158"
    ],
    "platform": "linux",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2006-01-09",
    "date_updated": "2013-07-24",
    "date_published": "2006-01-09"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.