Skip to content
OpenAdvisories
Unscored Public exploit CVE-2005-4158 EUVD-2005-4153GHSA-h6pw-5prw-wv25

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 variable…

Published Dec 11, 2005 · Updated Aug 7, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 sudo 1.6.8p12-1 —
Debian 13 sudo 1.6.8p12-1 —
Debian 12 sudo 1.6.8p12-1 —
Debian 3.1 sudo 1.6.8p7-1.4 DSA-946-2
Debian 3.0 sudo 1.6.6-1.6 DSA-946-2
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed sudo 1.9.7p2-1.4 openSUSE-SU-2024:11413-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 3

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 2

References