Skip to content
OpenAdvisories
Unscored Public exploit CVE-2005-0156 EUVD-2005-0157GHSA-hv4j-j5rr-rmfx

Buffer overflow in the PerlIO implementation in Perl 5.8.0, when installed with setuid support (sperl), allows local users to execute arbit…

Published Feb 7, 2005 · Updated Aug 7, 2024 · Assigned by mitre

Description

Buffer overflow in the PerlIO implementation in Perl 5.8.0, when installed with setuid support (sperl), allows local users to execute arbitrary code by setting the PERLIO_DEBUG variable and executing a Perl script whose full pathname contains a long directory tree.

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 perl 5.8.4-6 —
Debian 13 perl 5.8.4-6 —
Debian 12 perl 5.8.4-6 —
ReleasePackageFixed inAdvisory
RHEL 4 perl 3:5.8.5-12.1 RHSA-2005:103
RHEL 4 perl-suidperl 3:5.8.5-12.1.1 RHSA-2005:103
RHEL 3 perl +1 2:5.8.0-89.10 RHSA-2005:105
RHEL 3 perl-CGI 2:2.81-89.10 RHSA-2005:105
RHEL 3 perl-CPAN 2:1.61-89.10 RHSA-2005:105
RHEL 3 perl-DB_File 2:1.804-89.10 RHSA-2005:105

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 1

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

Advisories 2

References