Perl PERLIO_DEBUG environment variable buffer overflow

perl-perliodebug-bo (19208) The risk level is classified as HighHigh Risk

Description:

Perl (Practical Extraction and Reporting Language) is vulnerable to a buffer overflow, caused by improper bounds checking of user-supplied input in the PERLIO_DEBUG environment variable. By sending a specially-crafted long PERLIO_DEBUG environment variable to Perl, a local attacker could overflow a buffer and execute arbitrary code on the system with root privileges.

Platforms Affected:

  • Canonical, Ubuntu 4.10
  • Gentoo, Linux
  • Larry Wall, Perl 5.x
  • MandrakeSoft, Mandrake Linux 10.0
  • MandrakeSoft, Mandrake Linux 10.0 AMD64
  • MandrakeSoft, Mandrake Linux 10.1 X86_64
  • MandrakeSoft, Mandrake Linux 10.1
  • MandrakeSoft, Mandrake Linux 9.2 AMD64
  • MandrakeSoft, Mandrake Linux 9.2
  • MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 2.1
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • RadiSys Corporation, OS-9
  • RedHat, Enterprise Linux 3 WS
  • RedHat, Enterprise Linux 3 ES
  • RedHat, Enterprise Linux 3 AS
  • RedHat, Enterprise Linux 3 Desktop
  • RedHat, Enterprise Linux 4 WS
  • RedHat, Enterprise Linux 4 ES
  • RedHat, Enterprise Linux 4 AS
  • RedHat, Enterprise Linux 4 Desktop

Remedy:

For Ubuntu Linux:
Upgrade to the latest perl package (5.8.4-2ubuntu0.3 or later), as listed in USN-72-1 February 02, 2005. See References.

For Red Hat Linux:
Refer to RHSA-2005:103-04 or RHSA-2005:105-11 for patch, upgrade, or suggested workaround information. See References.

For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2005-02-13 for patch, upgrade, or suggested workaround information. See References.

Consequences:

Gain Access

References:

  • CIAC Information Bulletin P-122, Updated Perl Packages Fix Security Issues at http://www.ciac.org/ciac/bulletins/p-122.shtml.
  • BID-12426: Perl SuidPerl Multiple Local Vulnerabilities
  • CVE-2005-0156: 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.
  • GLSA-200502-13: Perl: Vulnerabilities in perl-suid wrapper
  • MDKSA-2005:031: Updated perl packages fix multiple vulnerabilities
  • RHSA-2005-103: perl security update
  • RHSA-2005-105: perl security update
  • SA14120: Perl "PERLIO_DEBUG" Privilege Escalation Vulnerabilities
  • USN-72-1: Perl vulnerabilities

Reported:

Feb 02, 2005

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page