BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2005-2959 in Todd Miller Sudo

Medium 4.6

Incomplete blacklist vulnerability in sudo 1.6.8 and earlier allows local users to gain privileges via the (1) SHELLOPTS and (2) PS4 environment variables before executing a bash script on behalf of another user, which are not cleared even though other variables are.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 2.04.6
EPSS0.6%
EPSS percentile44th
FixUnknown

Requires local access, low complexity.

Affected products and versions

VendorProductAffected versions
Todd Miller Sudo 1.6 1.6.1 1.6.2 1.6.3 1.6.3_p1 1.6.3_p2
+26 more1.6.3_p3 1.6.3_p4 1.6.3_p5 1.6.3_p6 1.6.3_p7 1.6.3p1 1.6.3p2 1.6.3p3 1.6.3p4 1.6.3p5 1.6.3p6 1.6.3p7 1.6.4 1.6.4_p1 1.6.4_p2 1.6.4p1 1.6.4p2 1.6.5 1.6.5_p1 1.6.5_p2 1.6.5p1 1.6.5p2 1.6.6 1.6.7 1.6.7_p5 1.6.8

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Incomplete blacklist vulnerability in sudo 1.6.8 and earlier allows local users to gain privileges via the (1) SHELLOPTS and (2) PS4 environment variables before executing a bash script on behalf of another user, which are not cleared even though other variables are.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2005-2959
BreachSpider IDBS-2005-GLOBAL-010919-M
CVSS vectorAV:L/AC:L/Au:N/C:P/I:P/A:P
Published2005-10-25
Last modified2026-06-16
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-264: Permissions, Privileges, and Access Controls

Broad class covering failures in permission enforcement. Deprecated in favor of CWE-284, CWE-862, CWE-863.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2005. A medium severity vulnerability affects Todd Miller systems (CVE-2005-2959). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: Incomplete blacklist vulnerability in sudo 1.6.8 and earlier allows local users to gain privileges via the (1) SHELLOPTS and (2) PS4 environment variables before executing a bash script on behalf of another user, which are not cleared even though other variables are. CVSS vector: AV:L/AC:L/Au:N/C:P/I:P/A:P.

Questions

What is CVE-2005-2959?

This vulnerability was disclosed in 2005. A medium severity vulnerability affects Todd Miller systems (CVE-2005-2959). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2005-2959?

CVE-2005-2959 has CVSS 4.6 (Medium). Vector: AV:L/AC:L/Au:N/C:P/I:P/A:P. EPSS: 0.6%.

Is CVE-2005-2959 actively exploited?

No confirmed active exploitation of CVE-2005-2959 as of 2026-09-25.

How do I remediate CVE-2005-2959?

Priority: MONITOR.

What systems are affected by CVE-2005-2959?

CVE-2005-2959 affects Todd Miller Sudo.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Todd Miller","product":"Sudo","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.