Perl File::Path 2.07 Setuid lib/File/Path.pm race condition

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.0$0-$5k0.00

Summaryinfo

A vulnerability identified as problematic has been detected in Perl File::Path 2.07. This vulnerability affects unknown code in the library lib/File/Path.pm of the component Setuid. The manipulation leads to race condition. This vulnerability is uniquely identified as CVE-2008-5302. No exploit exists. You should upgrade the affected component.

Detailsinfo

A vulnerability was found in Perl File::Path 2.07 (Programming Language Software) and classified as critical. This issue affects some unknown functionality in the library lib/File/Path.pm of the component Setuid. The manipulation with an unknown input leads to a race condition vulnerability. Using CWE to declare the problem leads to CWE-362. The product contains a code sequence that can run concurrently with other code, and the code sequence requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence that is operating concurrently. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

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.

The bug was discovered 06/20/2008. The weakness was disclosed 12/01/2008 by Paul Szabo (Website). The advisory is shared at securityfocus.com. The identification of this vulnerability is CVE-2008-5302 since 12/01/2008. An attack has to be approached locally. No form of authentication is needed for a successful exploitation. Technical details are known, but no exploit is available.

The vulnerability was handled as a non-public zero-day exploit for at least 164 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 68048 (Oracle Linux 5 : perl (ELSA-2010-0458)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Oracle Linux Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 118092 (Red Hat Update for Perl (RHSA-2010:0458)).

Upgrading eliminates this vulnerability. A possible mitigation has been published 2 years after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (47043), Tenable (68048), SecurityFocus (BID 12767†), OSVDB (50446†) and Secunia (SA33314†). The entries VDB-1270 and VDB-45258 are pretty similar. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.4
VulDB Meta Temp Score: 8.0

VulDB Base Score: 8.4
VulDB Temp Score: 8.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Race condition
CWE: CWE-362
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 68048
Nessus Name: Oracle Linux 5 : perl (ELSA-2010-0458)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 62840
OpenVAS Name: Debian Security Advisory DSA 1678-1 (perl)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Timelineinfo

03/09/2005 🔍
06/20/2008 +1199 days 🔍
12/01/2008 +164 days 🔍
12/01/2008 +0 days 🔍
12/01/2008 +0 days 🔍
12/01/2008 +0 days 🔍
12/07/2008 +6 days 🔍
12/24/2008 +17 days 🔍
06/07/2010 +530 days 🔍
07/12/2013 +1131 days 🔍
03/17/2015 +613 days 🔍
08/21/2019 +1618 days 🔍

Sourcesinfo

Advisory: securityfocus.com
Researcher: Paul Szabo
Status: Not defined
Confirmation: 🔍

CVE: CVE-2008-5302 (🔍)
GCVE (CVE): GCVE-0-2008-5302
GCVE (VulDB): GCVE-100-45257

OVAL: 🔍

X-Force: 47043
SecurityFocus: 12767 - Perl 'rmdir()' Local Race Condition Privilege Escalation Vulnerability
Secunia: 33314 - Ubuntu update for perl, Moderately Critical
OSVDB: 50446 - Perl File::Path rmtree function symlink
Vulnerability Center: 20127 - Perl 5.8.8 and 5.10.0 with File::Path 1.08 or 2.07 rmtree Race Condition Allows Local Code Execution, Medium

See also: 🔍

Entryinfo

Created: 03/17/2015 16:11
Updated: 08/21/2019 12:04
Changes: 03/17/2015 16:11 (84), 08/21/2019 12:04 (5)
Complete: 🔍
Cache ID: 216::103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!