Vulnerabilities · 2004 · Php
CVE-2004-1020
Php vulnerability
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. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.gentoo.org/security/en/glsa/glsa-200412-14.xml · Vendor Advisory
- www.php.net/release_4_3_10.php · Vendor Advisory
- www.securityfocus.com/archive/1/384663 · Exploit
- www.securityfocus.com/bid/11981 · Exploit
- distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915
- www.mandriva.com/security/advisories?name=MDKSA-2004:151
- www.securityfocus.com/advisories/9028
- exchange.xforce.ibmcloud.com/vulnerabilities/18516
- nvd.nist.gov/vuln/detail/CVE-2004-1020
- cve.org/CVERecord?id=CVE-2004-1020
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.