CVE-2004-1020: PHP
Medium severity, CVSS 5.0. EPSS: 7.1% chance of exploitation in the next 30 days.
The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary files in PHP applications that contain a directory traversal vulnerability in require or include statements, but are otherwise protected by the magic_quotes_gpc mechanism. 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 products
- PHP PHP: version 4.3.6 only; version 4.3.7 only; version 4.3.8 only; version 4.3.9 only; version 5.0 only; version 5.0.0 only; …
Published 2005-01-10. Last modified 2026-06-16.