CVE-2004-1064: Critical severity PHP PHP vulnerability

Published Dec 8, 2004
·
Updated

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.

Affected Software

3 affected components
PHP PHP>=4.0.0<=4.3.9
PHP PHP>=5.0.0<=5.0.2
Ubuntu=4.10

Event History

Dec 8, 2004
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Jan 10, 2005
Rejected
05:00 AM

Frequently Asked Questions

1

What is the severity of CVE-2004-1064?

The severity of CVE-2004-1064 is generally considered high due to its potential to bypass PHP safe mode security restrictions.

2

How does CVE-2004-1064 affect PHP versions?

CVE-2004-1064 affects PHP versions 4.x through 4.3.9 and 5.x through 5.0.2, allowing for unsafe file access.

3

What are the potential risks associated with CVE-2004-1064?

The potential risks associated with CVE-2004-1064 include unauthorized access to files and exploitation of the PHP environment.

4

How can I mitigate the risks of CVE-2004-1064?

To mitigate the risks of CVE-2004-1064, consider upgrading to a secure version of PHP that is not affected by this vulnerability.

5

Is there a patch available for CVE-2004-1064?

No specific patch is available for CVE-2004-1064; upgrading to a non-affected version is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203