CVE-2006-7243 Path traversal in n/a

Medium 5.0 Published Updated

Attackers can bypass file extension restrictions in PHP by using null bytes, potentially allowing unauthorized file access or execution.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2006-7243?

CVE-2006-7243 is a medium-severity path traversal vulnerability in Php Php, published on 18 Jan 2011. It can be exploited over the network, with no action from the victim.

Official description

PHP before 5.3.4 accepts the \0 character in a pathname, which might allow context-dependent attackers to bypass intended access restrictions by placing a safe file extension after this character, as demonstrated by .php\0.jpg at the end of the argument to the file_exists function.

Weakness: CWE-20

Which versions are affected by CVE-2006-7243?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2006-7243?

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-2006-7243 being exploited?

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

All Php Php vulnerabilities

Sources

Also known as GHSA-qxh9-g3ww-hcvc.

Is CVE-2006-7243 in your software?

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

Check your SBOMs for free