{"id":"CVE-2005-2959","aliases":["DEBIAN-CVE-2005-2959","DSA-870-1","EUVD-2005-2959","GHSA-xq6m-vcfr-h89q"],"status":"published","title":"Incomplete blacklist vulnerability in sudo 1.6.8 and earlier allows local users to gain...","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.","severity":{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00624,"percentile":0.50235,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-264"],"published":"2005-10-25T00:00:00Z","modified":"2026-10-23T03:47:32Z","fixes":[{"ecosystem":"Debian:12","package":"sudo","fixed_in":["1.6.8p9-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"sudo","fixed_in":["1.6.8p9-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"sudo","fixed_in":["1.6.8p9-3"],"sources":["osv"]},{"ecosystem":"Debian:3.0","package":"sudo","fixed_in":["1.6.6-1.4"],"sources":["osv"]},{"ecosystem":"Debian:3.1","package":"sudo","fixed_in":["1.6.8p7-1.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.8p9-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.8p9-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.8p9-3"}]}]},{"source":"osv","ecosystem":"Debian:3.0","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.6-1.4"}]}],"versions":["1.6.6-1.3","1.6.6-1.3woody1"]},{"source":"osv","ecosystem":"Debian:3.1","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.8p7-1.2"}]}],"versions":["1.6.8p7-1.1","1.6.8p7-1.1sarge1"]}],"products":[{"vendor":"todd_miller","product":"sudo"}],"references":[{"url":"http://www.sudo.ws/bugs/show_bug.cgi?id=182","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://secunia.com/advisories/17666","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/18549","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA07-072A.html","tags":["third-party-advisory","x_refsource_CERT","x_transferred","US Government Resource","web"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:201","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://lists.apple.com/archives/security-announce/2007/Mar/msg00002.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred","web"]},{"url":"http://docs.info.apple.com/article.html?artnum=305214","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.debian.org/security/2005/dsa-870","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://secunia.com/advisories/17322","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/17390","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://www.novell.com/linux/security/advisories/2006_02_sr.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","advisory"]},{"url":"http://www.securityfocus.com/bid/15191","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit","evidence"]},{"url":"http://secunia.com/advisories/17345","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.vupen.com/english/advisories/2007/0930","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/17318","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"https://usn.ubuntu.com/213-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"http://www.securityfocus.com/advisories/9643","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.openpkg.org/security/OpenPKG-SA-2006.002-sudo.html","tags":["vendor-advisory","x_refsource_OPENPKG","x_transferred","web"]},{"url":"http://secunia.com/advisories/24479","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-2959"},{"url":"https://usn.ubuntu.com/213-1"},{"url":"https://github.com/advisories/GHSA-xq6m-vcfr-h89q"},{"url":"https://security-tracker.debian.org/tracker/CVE-2005-2959","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2005-2959","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.","status":"published","published":"2005-10-25T04:00:00Z","modified":"2024-08-07T22:53:29.364Z","updated_at":"2026-11-02T14:33:38.187792Z"}],"euvd":[{"id":"EUVD-2005-2959","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.","status":"published","published":"2005-10-25T04:00:00Z","modified":"2024-08-07T22:53:29Z","updated_at":"2026-11-03T01:15:28.669844Z"}],"ghsa":[{"id":"GHSA-xq6m-vcfr-h89q","title":"Incomplete blacklist vulnerability in sudo 1.6.8 and earlier allows local users to gain...","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.","status":"published","published":"2022-05-01T02:13:14Z","modified":"2025-04-03T04:19:49Z","updated_at":"2026-11-02T15:00:43.562212Z"}],"nvd":[{"id":"CVE-2005-2959","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.","status":"published","published":"2005-10-25T16:02:00Z","modified":"2026-06-16T22:15:58.49Z","cvss":[{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-264"],"updated_at":"2026-11-02T14:00:57.365803Z"}],"osv":[{"id":"CVE-2005-2959","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.","status":"published","published":"2005-10-25T16:02:00Z","modified":"2026-04-10T03:38:12.533007Z","updated_at":"2026-11-02T15:43:56.581247Z"},{"id":"DEBIAN-CVE-2005-2959","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.","status":"published","published":"2005-10-25T16:02:00Z","modified":"2026-10-23T03:47:32.858645247Z","updated_at":"2026-11-02T15:45:22.831407Z"},{"id":"DSA-870-1","title":"sudo - missing input sanitising","status":"published","published":"2005-10-25T00:00:00Z","modified":"2026-03-09T02:10:49.96706Z","updated_at":"2026-11-02T15:46:18.716547Z"}]}}
