CVE-2004-1020

Public Exploit

Description

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.

5.0
CVSS
Severity: Medium
CVSS 2.0 •
EPSS 8.01% Top 10%
Vendor Advisory mandriva.com Vendor Advisory com.br Vendor Advisory gentoo.org Vendor Advisory securityfocus.com Vendor Advisory php.net Vendor Advisory securityfocus.com
Affected: n/a n/a
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2004-1020?
CVE-2004-1020 has been scored as a medium severity vulnerability.
How to fix CVE-2004-1020?
To fix CVE-2004-1020, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2004-1020 being actively exploited in the wild?
It is possible that CVE-2004-1020 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~8% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.