{"id":"CVE-2005-4158","aliases":["DEBIAN-CVE-2005-4158","DSA-946-2","EUVD-2005-4153","GHSA-h6pw-5prw-wv25","openSUSE-SU-2024:11413-1"],"status":"published","title":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2)...","description":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT environment variables, which allows limited local users to cause a Perl script to include and execute arbitrary library files that have the same name as library files that are included by the script.","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-08","score":0.01077,"percentile":0.65234,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"published":"2005-12-11T02:00:00Z","modified":"2026-10-23T03:47:37Z","exploits":[{"source":"exploitdb","id":"EDB-26498","title":"Sudo Perl 1.6.x - Environment Variable Handling Security Bypass","type":"local","platform":"linux","date":"2005-11-11","verified":true,"url":"https://www.exploit-db.com/exploits/26498"},{"source":"exploitdb","id":"EDB-27056","title":"Sudo 1.6.x - Environment Variable Handling Security Bypass (1)","type":"local","platform":"linux","date":"2006-01-09","verified":true,"url":"https://www.exploit-db.com/exploits/27056"},{"source":"exploitdb","id":"EDB-27057","title":"Sudo 1.6.x - Environment Variable Handling Security Bypass (2)","type":"local","platform":"linux","date":"2006-01-09","verified":true,"url":"https://www.exploit-db.com/exploits/27057"}],"fixes":[{"ecosystem":"Debian:12","package":"sudo","fixed_in":["1.6.8p12-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"sudo","fixed_in":["1.6.8p12-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"sudo","fixed_in":["1.6.8p12-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.8p12-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.8p12-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.8p12-1"}]}]},{"source":"osv","ecosystem":"Debian:3.0","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.6-1.6"}]}],"versions":["1.6.6-1.3","1.6.6-1.3woody1","1.6.6-1.4","1.6.6-1.5"],"bundled":2},{"source":"osv","ecosystem":"Debian:3.1","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.8p7-1.4"}]}],"versions":["1.6.8p7-1.1","1.6.8p7-1.1sarge1","1.6.8p7-1.2","1.6.8p7-1.3"],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"sudo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.7p2-1.4"}]}],"bundled":11}],"products":[{"vendor":"todd_miller","product":"sudo"}],"references":[{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2005:234","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/18549","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/23102","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://secunia.com/advisories/18558","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.trustix.org/errata/2006/0002/","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred","web"]},{"url":"http://secunia.com/advisories/18463","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/18308","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.vupen.com/english/advisories/2005/2386","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","advisory"]},{"url":"http://www.securityfocus.com/bid/15394","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit","Patch","evidence","fix"]},{"url":"http://secunia.com/advisories/18156","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/18102","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"https://www.ubuntu.com/usn/usn-235-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory"]},{"url":"http://www.novell.com/linux/security/advisories/2006_02_sr.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","advisory"]},{"url":"http://www.debian.org/security/2006/dsa-946","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"http://securitytracker.com/alerts/2005/Nov/1015192.html","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","Patch","fix"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:159","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/21692","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.sudo.ws/sudo/alerts/perl_env.html","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://secunia.com/advisories/17534/","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-4158"},{"url":"https://www.ubuntu.com/usn/usn-235-1"},{"url":"http://secunia.com/advisories/17534"},{"url":"http://www.trustix.org/errata/2006/0002"},{"url":"https://github.com/advisories/GHSA-h6pw-5prw-wv25"},{"url":"https://security-tracker.debian.org/tracker/CVE-2005-4158","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2005-4158","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2014-9680","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-7032","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-7076","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-1000367","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-1000368","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-14287","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-18634","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-23239","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-23240","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-3156","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2005-4158","description":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT environment variables, which allows limited local users to cause a Perl script to include and execute arbitrary library files that have the same name as library files that are included by the script.","status":"published","published":"2005-12-11T02:00:00Z","modified":"2024-08-07T23:38:50.845Z","updated_at":"2026-11-02T14:33:39.259087Z"}],"euvd":[{"id":"EUVD-2005-4153","description":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT environment variables, which allows limited local users to cause a Perl script to include and execute arbitrary library files that have the same name as library files that are included by the script.","status":"published","published":"2005-12-11T02:00:00Z","modified":"2024-08-07T23:38:50Z","updated_at":"2026-11-03T01:15:23.744869Z"}],"ghsa":[{"id":"GHSA-h6pw-5prw-wv25","title":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2)...","description":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT environment variables, which allows limited local users to cause a Perl script to include and execute arbitrary library files that have the same name as library files that are included by the script.","status":"published","published":"2022-05-01T02:24:39Z","modified":"2025-04-03T04:22:40Z","updated_at":"2026-11-02T15:00:44.529542Z"}],"nvd":[{"id":"CVE-2005-4158","description":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT environment variables, which allows limited local users to cause a Perl script to include and execute arbitrary library files that have the same name as library files that are included by the script.","status":"published","published":"2005-12-11T02:03:00Z","modified":"2026-06-16T22:18:16.883Z","cvss":[{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:00:57.944899Z"}],"osv":[{"id":"CVE-2005-4158","description":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT environment variables, which allows limited local users to cause a Perl script to include and execute arbitrary library files that have the same name as library files that are included by the script.","status":"published","published":"2005-12-11T02:03:00Z","modified":"2026-04-10T03:38:15.851561Z","updated_at":"2026-11-02T15:43:56.581247Z"},{"id":"DEBIAN-CVE-2005-4158","description":"Sudo before 1.6.8 p12, when the Perl taint flag is off, does not clear the (1) PERLLIB, (2) PERL5LIB, and (3) PERL5OPT environment variables, which allows limited local users to cause a Perl script to include and execute arbitrary library files that have the same name as library files that are included by the script.","status":"published","published":"2005-12-11T02:03:00Z","modified":"2026-10-23T03:47:37.789863832Z","updated_at":"2026-11-02T15:45:22.831407Z"},{"id":"DSA-946-2","title":"sudo - missing input sanitising","status":"published","published":"2006-04-08T00:00:00Z","modified":"2026-03-09T02:08:38.966264Z","updated_at":"2026-11-02T15:46:18.716547Z"},{"id":"openSUSE-SU-2024:11413-1","title":"sudo-1.9.7p2-1.4 on GA media","description":"These are all security issues fixed in the sudo-1.9.7p2-1.4 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:46:24.949279Z","updated_at":"2026-11-02T16:58:35.195147Z"}]}}
