CVE-2004-1051 in Debian Linux and 6 more products
sudo before 1.6.8p2 allows local users to execute arbitrary commands by using "()" style environment variables to create functions that have the same name as any program within the bash script that is called without using the program's full pathname.
Affects 7 products from 5 vendors. Facts below cite their sources.
Requires local access, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 3.0 |
| Mandrakesoft | Mandrake Linux | 9.2 10.0 10.1 |
| Mandrakesoft | Mandrake Linux Corporate Server | 2.1 |
| Mandrakesoft | Mandrake Multi Network Firewall | 8.2 |
| Todd Miller | Sudo | 1.5.6 1.5.7 1.5.8 1.5.9 1.6 1.6.1+19 more1.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.8 1.6.8_p1 |
| Trustix | Secure Linux | 1.5 2.0 2.1 2.2 |
| Ubuntu | Ubuntu Linux | 4.1 |
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.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
sudo before 1.6.8p2 allows local users to execute arbitrary commands by using "()" style environment variables to create functions that have the same name as any program within the bash script that is called without using the program's full pathname.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2004-1051 |
|---|---|
| BreachSpider ID | BS-2005-GLOBAL-008270-H |
| CVSS vector | AV:L/AC:L/Au:N/C:C/I:C/A:C |
| Published | 2005-03-01 |
| Last modified | 2026-04-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2005. A high severity vulnerability affects Debian systems (CVE-2004-1051). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: sudo before 1.6.8p2 allows local users to execute arbitrary commands by using "()" style environment variables to create functions that have the same name as any program within the bash script that is called without using the program's full pathname. CVSS vector: AV:L/AC:L/Au:N/C:C/I:C/A:C.
Questions
What is CVE-2004-1051?
This vulnerability was disclosed in 2005. A high severity vulnerability affects Debian systems (CVE-2004-1051). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2004-1051?
CVE-2004-1051 has CVSS 7.2 (High). Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C. EPSS: 1.4%.
Is CVE-2004-1051 actively exploited?
No confirmed active exploitation of CVE-2004-1051 as of 2026-05-30.
How do I remediate CVE-2004-1051?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2004-1051?
CVE-2004-1051 affects Debian Debian Linux; Mandrakesoft Mandrake Linux, Mandrake Linux Corporate Server, Mandrake Multi Network Firewall; Todd Miller Sudo; Trustix Secure Linux; Ubuntu Ubuntu Linux.
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":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-16.