CVE-2007-3997 Security feature bypass in n/a

High 7.5 Published Updated

Remote attackers can bypass PHP safe_mode and open_basedir restrictions to read arbitrary files via MySQL LOCAL INFILE operations.

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

What is CVE-2007-3997?

CVE-2007-3997 is a high-severity vulnerability in Php Php, published on 4 Sep 2007. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The (1) MySQL and (2) MySQLi extensions in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to bypass safe_mode and open_basedir restrictions via MySQL LOCAL INFILE operations, as demonstrated by a query with LOAD DATA LOCAL INFILE.

Weakness: CWE-264

Which versions are affected by CVE-2007-3997?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2007-3997?

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

Is CVE-2007-3997 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Php Php vulnerabilities

Sources

Also known as GHSA-966w-852v-c3c4.

Is CVE-2007-3997 in your software?

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

Check your SBOMs for free