CVE-2008-2827 Path traversal in n/a

Medium 4.6 Published Updated

Local attackers can modify permissions of arbitrary files via symlink attacks in Perl's rmtree function, potentially leading to privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2008-2827?

CVE-2008-2827 is a medium-severity path traversal vulnerability in n/a, published on 23 Jun 2008. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The rmtree function in lib/File/Path.pm in Perl 5.10 does not properly check permissions before performing a chmod, which allows local users to modify the permissions of arbitrary files via a symlink attack, a different vulnerability than CVE-2005-0448 and CVE-2004-0452.

Weakness: CWE-264

Which versions are affected by CVE-2008-2827?

It affects 1 product.

Products include Perl Perl.

How do I fix CVE-2008-2827?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2008-2827 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-2827 exists.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as DEBIAN-CVE-2008-2827, DTSA-142-1, GHSA-h567-wg66-2v4f.

Is CVE-2008-2827 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free