CVE-2004-1020Php
Medium 5.0 No auth needed
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- Priority
- 46
- CVSS 2.0
- 5.0
- EPSS
- 7.3% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Jan 10, 2005
- Updated
- Jun 16, 2026
- Category
- Web application · Cross-platform
- Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | 4.3.6 |
| php | php | 4.3.7 |
| php | php | 4.3.8 |
| php | php | 4.3.9 |
| php | php | 5.0 |
| php | php | 5.0 |
| php | php | 5.0 |
| php | php | 5.0.0 |
| php | php | 5.0.1 |
| php | php | 5.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- distro.conectiva.com.br
- www.gentoo.org Vendor Advisory
- www.mandriva.com
- www.php.net Vendor Advisory
- www.securityfocus.com
- www.securityfocus.com Exploit Vendor Advisory
- www.securityfocus.com Exploit Patch
- exchange.xforce.ibmcloud.com