# CVE-2004-1051

- Priority: **Routine**
- Reason: Not severe (CVSS 7.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2004-11-18 · Modified: 2024-08-08
- Aliases: DEBIAN-CVE-2004-1051, DSA-596-2
- Record: https://cvemate.com/vulnerability/CVE-2004-1051 · JSON: https://cvemate.com/vulnerability/CVE-2004-1051/json

## Description

```text
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.
```

## Signals

- CVSS: 7.2 high (v2.0, NVD) AV:L/AC:L/Au:N/C:C/I:C/A:C
- EPSS: 1.374%, percentile 72.96%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian sudo (Debian): \< 1.6.8p3-1 \| \< 1.6.6-1.3
- 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 \| 1.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

## References

- <https://www.ubuntu.com/usn/usn-28-1/>
- <http://www.sudo.ws/sudo/alerts/bash_functions.html>
- <http://marc.info/?l=bugtraq&m=110598298225675&w=2>
- <http://marc.info/?l=bugtraq&m=110028877431192&w=2>
- <http://www.mandriva.com/security/advisories?name=MDKSA-2004:133>
- <http://lists.apple.com/archives/security-announce/2005/May/msg00001.html>
- <http://www.securityfocus.com/bid/11668>
- <http://www.debian.org/security/2004/dsa-596>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/18055>
- <http://www.trustix.org/errata/2004/0061/>
- <https://security-tracker.debian.org/tracker/CVE-2004-1051>

---

Data as of 2026-12-05T09:38:17.530Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
