CVE-2004-1064 Security feature bypass in n/a

Critical 10.0 Published Updated

Attackers can bypass PHP safe mode restrictions by exploiting path truncation in realpath checks, potentially accessing restricted files.

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-2004-1064?

CVE-2004-1064 is a critical vulnerability in Canonical Ubuntu Linux, published on 8 Dec 2004. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The safe mode checks in PHP 4.x to 4.3.9 and PHP 5.x to 5.0.2 truncate the file path before passing the data to the realpath function, which could allow attackers to bypass safe mode. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.

Which versions are affected by CVE-2004-1064?

It affects 2 products.

Products include Canonical Ubuntu Linux, Php Php.

How do I fix CVE-2004-1064?

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

Is CVE-2004-1064 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-h3x9-2c56-jqm5.

Is CVE-2004-1064 in your software?

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

Check your SBOMs for free