{"id":"CVE-2006-4023","aliases":["EUVD-2006-4016","GHSA-j37w-6rpq-mqqx"],"status":"published","title":"The ip2long function in PHP 5.1.4 and earlier may incorrectly validate an arbitrary string and...","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.","severity":{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.05745,"percentile":0.93111,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2006-08-09T00:00:00Z","modified":"2026-06-16T22:28:16Z","products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://www.securityfocus.com/archive/1/441708/100/100/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/441529/100/100/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://retrogod.altervista.org/php_ip2long.htm","tags":["x_refsource_MISC","x_transferred","Exploit"]},{"url":"http://securitytracker.com/id?1016609","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","Exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-4023"},{"url":"https://github.com/advisories/GHSA-j37w-6rpq-mqqx"}],"sources":{"cve":[{"id":"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.","status":"published","published":"2006-08-09T00:00:00Z","modified":"2024-08-07T18:57:43.861Z","updated_at":"2026-11-02T14:33:50.738595Z"}],"euvd":[{"id":"EUVD-2006-4016","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.","status":"published","published":"2006-08-09T00:00:00Z","modified":"2024-08-07T18:57:43Z","updated_at":"2026-11-03T01:15:53.967777Z"}],"ghsa":[{"id":"GHSA-j37w-6rpq-mqqx","title":"The ip2long function in PHP 5.1.4 and earlier may incorrectly validate an arbitrary string and...","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.","status":"published","published":"2022-05-01T07:14:39Z","modified":"2023-01-31T05:01:42Z","updated_at":"2026-11-02T14:48:06.842332Z"}],"nvd":[{"id":"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.","status":"published","published":"2006-08-09T00:04:00Z","modified":"2026-06-16T22:28:16.94Z","cvss":[{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:05.130518Z"}]}}
