CVE-2006-4023
Description
The ip2long function in PHP 5.1.4 and earlier may incorrectly validate an arbitrary string and return a valid network IP address, which allows remote attackers to obtain network information and facilitate other attacks, as demonstrated using SQL injection in the X-FORWARDED-FOR Header in index.php in MiniBB 2.0. NOTE: it could be argued that the ip2long behavior represents a risk for security-relevant issues in a way that is similar to strcpy's role in buffer overflows, in which case this would be a class of implementation bugs that would require separate CVE items for each PHP application that uses ip2long in a security-relevant manner.
Timeline
- 2006-08-09Published by the CNA00:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| php php | 4.3.3no fix listed5.0.2no fix listed5.1.4no fix listed | not listednot listednot listed |
References
- http://retrogod.altervista.org/php_ip2long.htm
- http://securitytracker.com/id?1016609
- http://www.securityfocus.com/archive/1/441529/100/100/threaded
- http://www.securityfocus.com/archive/1/441708/100/100/threaded
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2006-4023'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2006-4023'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2006-4023'curl 'https://api.contrastcyber.com/cve_products/CVE-2006-4023'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).