Perl and ActivePerl win32_stat buffer overflow
| perl-win32stat-bo (15732) |
Description:
Perl and ActivePerl, when running on Microsoft Windows platforms, are vulnerable to a buffer overflow in the win32_stat function. By creating a file with a long filename that ends in a back-slash (\) character, a remote attacker could overflow a buffer and execute arbitrary code on the system.
Platforms Affected:
- ActiveState, ActivePerl 5.8
- ActiveState, ActivePerl 5.8.1
- ActiveState, ActivePerl 5.8.3
- Larry Wall, Perl 5.8.0
- Larry Wall, Perl 5.8.1
- Larry Wall, Perl 5.8.3
Remedy:
Download the latest version of Perl (5.8.4 or later), available from the ActiveState Web site. See References.
—OR—
Apply the appropriate patch for this vulnerability, as listed in the iDEFENSE Security Advisory 04.05.04. See References.
Consequences:
Gain Access
References:
- ActiveState Web site, Index of /gsar/APC at http://public.activestate.com/gsar/APC/.
- CIAC Information Bulletin O-130, Perl and ActivePerl win32_stat Buffer Overflow at http://www.ciac.org/ciac/bulletins/o-130.shtml.
- iDEFENSE Security Advisory 04.05.04, Perl win32_stat Function Buffer Overflow Vulnerability at http://www.idefense.com/application/poi/display?id=93&type=vulnerabilities&flashstatus=false.
- BID-10050: Perl win32_stat function Remote Buffer Overflow Vulnerability
- CVE-2004-0377: Buffer overflow in the win32_stat function for (1) ActiveState's ActivePerl and (2) Larry Wall's Perl before 5.8.3 allows local or remote attackers to execute arbitrary commands via filenames that end in a backslash character.
- US-CERT VU#722414: Perl vulnerable to buffer overflow in win32_stat()
Reported:
Apr 05, 2004
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 (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.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
