|
|
|
![]() |
Vulnerability Note VU#722414Perl vulnerable to buffer overflow in win32_stat()OverviewA flaw in a standard function in some Perl distributions could allow an attacker to execute arbitrary code on the vulnerable system.I. DescriptionThe stat() Perl function, similar to the standard C stat() function, returns a list giving the status info for a file. Since the stat() function is UNIX-centric, some Perl distributions supply a function named win32_stat() that provides a wrapper around the stat() function for systems running Perl on Windows operating systems. A buffer overflow flaw in the way win32_stat() handles long filenames could allow an attacker to execute code on a system running an application that used the function.Note that because this flaw exists in the Perl system itself, a vulnerability is only exposed through a Perl application that invokes win32_stat() (either explicitly or implicitly) on a filename supplied by the user. Since the flawed code does not get complied into Perl builds for UNIX systems, only systems running Perl on Windows are affected.
<http://public.activestate.com/cgi-bin/perlbrowse?patch=22552> (for the 5.8.x branch) Note that these patches require the user to recompile the Perl interpreter for their system after application. Systems Affected
References
Thanks to Greg MacManus of iDEFENSE Labs for reporting this vulnerability. This document was written by Chad R Dougherty based primarily on information provided by iDEFENSE.
If you have feedback, comments, or additional information about this vulnerability, please send us
email. |
|||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||