Perl File::Path module symlink
|perl-filepath-symlink (47043)||Medium Risk|
The Perl File::Path module could allow a local attacker to launch a symlink attack, caused by a race condition in the rmtree function. Temporary files are created insecurely. A local attacker could exploit this vulnerability by creating a symbolic link from a temporary file to various files on the system, which could allow the attacker to create arbitrary setuid binaries on the system with elevated privileges.
Upgrade to the latest version of Perl (5.8.10 or later), available from Larry Wall's Web page. See References.
For other distributions:
Apply the appropriate update for your system. See References.
- Apple Web site: About the security content of Security Update 2010-002 / Mac OS X v10.6.3.
- Debian Bug report logs - #286905: perl-modules: File::Path::rmtree makes setuid.
- F5 Networks Web site: Release Note: Enterprise Manager version 2.3.0.
- Larry Wall's Web page: Perl.
- oss-security Mailing List, Fri, 28 Nov 2008 16:29:10 +0100 : Re: CVE Request - cups, dovecot-managesieve, perl, wireshark.
- perldoc Web site: File::Path.
- porters Mailing List, Nov 19, 2008, 7:25 AM : Re: File::Path regression in 5.8.9.
- CVE-2008-5302: Race condition in the rmtree function in File::Path 1.08 and 2.07 (lib/File/Path.pm) in Perl 5.8.8 and 5.10.0 allows local users to create arbitrary setuid binaries via a symlink attack, a different vulnerability than CVE-2005-0448, CVE-2004-0452, and CVE-2008-2827. NOTE: this is a regression error related to CVE-2005-0448. It is different from CVE-2008-5303 due to affected versions.
- DSA-1678: perl -- design flaws
- MDVSA-2010:116: perl
- RHSA-2010-0458: Moderate: perl security update
- SA47305: F5 Enterprise Manager Multiple Vulnerabilities
- SUSE-SR:2009:004: SUSE Security Summary Report
- USN-700-1: Perl vulnerabilities
- USN-700-2: Perl regression
- Apple Mac OS X 10.5.8
- Apple Mac OS X Server 10.5.8
- Canonical Ubuntu 6.06 LTS
- Canonical Ubuntu 7.10
- Canonical Ubuntu 8.04 LTS
- Canonical Ubuntu 8.10
- Debian Debian Linux 4.0
- F5 Enterprise Manager 2.0
- Larry Wall File::Path 1.08
- Larry Wall File::Path 2.07
- Larry Wall Perl 5.10
- Larry Wall Perl 5.8.8
- MandrakeSoft Mandrake Linux 2008.0 X86_64
- MandrakeSoft Mandrake Linux 2008.0
- Mandriva Linux 2010
- Mandriva Linux 2010 X86_64
- RedHat Enterprise Linux 5
- RedHat Enterprise Linux 5 Client
Jun 20, 2008
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 ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.