CVE-2007-4850 Path traversal in n/a

Medium 5.0 Published Updated

Attackers can bypass PHP safe_mode and open_basedir restrictions to read arbitrary files via crafted file:// requests in the cURL library.

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-2007-4850?

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

Official description

curl/interface.c in the cURL library (aka libcurl) in PHP 5.2.4 and 5.2.5 allows context-dependent attackers to bypass safe_mode and open_basedir restrictions and read arbitrary files via a file:// request containing a \x00 sequence, a different vulnerability than CVE-2006-2563.

Weakness: CWE-264

Which versions are affected by CVE-2007-4850?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2007-4850?

No fix has been published for CVE-2007-4850 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-2007-4850 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Php Php vulnerabilities

Sources

Also known as GHSA-8q99-j5m2-gvjc.

Is CVE-2007-4850 in your software?

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

Check your SBOMs for free