CVE-2008-2665 Path traversal in n/a

Medium 5.0 Published Updated

Remote attackers can bypass PHP safe_mode restrictions via directory traversal in URLs, allowing unauthorized access to local files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2008-2665?

CVE-2008-2665 is a medium-severity path traversal vulnerability in Php Php, published on 20 Jun 2008. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Directory traversal vulnerability in the posix_access function in PHP 5.2.6 and earlier allows remote attackers to bypass safe_mode restrictions via a .. (dot dot) in an http URL, which results in the URL being canonicalized to a local filename after the safe_mode check has successfully run.

Weakness: CWE-22

Which versions are affected by CVE-2008-2665?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2008-2665?

No fix has been published for CVE-2008-2665 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2008-2665 being exploited?

There is no known exploitation of CVE-2008-2665 in the wild and no public exploit code.

All Php Php vulnerabilities

Sources

Also known as GHSA-f2j3-w598-jqhx.

Is CVE-2008-2665 in your software?

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

Check your SBOMs for free