php: Improper validation of strings in ip2long function (remote attackers able to obtain network information and facilitate other attacks)
Published Aug 9, 2006
5.0
MEDIUMCVSS 2.0
EPSS 5.75%
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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 5
php
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 6
php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 5.75% (0.05745) | 92.83th | v5 (v2026.06.15) |
| Jul 7, 2026 | 5.64% (0.05639) | 92.01th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.65% (0.01652) | 73.40th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.27% (0.00271) | 48.55th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.33% (0.00326) | 71.67th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.33% (0.00327) | 70.08th | v3 (v2023.03.01) |
| Jan 1, 2024 | 0.33% (0.00327) | 67.80th | v3 (v2023.03.01) |
| Jun 12, 2023 | 0.31% (0.00307) | 65.56th | v3 (v2023.03.01) |
| May 5, 2023 | 0.27% (0.00270) | 62.96th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.18% (0.00183) | 53.78th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.21% (0.01213) | 66.61th | v2 (v2022.01.01) |
| Feb 17, 2023 | 1.21% (0.01213) | 66.22th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.21% (0.01213) | 64.21th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.21% (0.01213) | 40.54th | v2 (v2022.01.01) |
References (8)
- http://retrogod.altervista.org/php_ip2long.htm x_refsource_MISCExploit
- http://securitytracker.com/id?1016609 vdb-entryx_refsource_SECTRACKExploit
- http://www.securityfocus.com/archive/1/441529/100/100/threaded mailing-listx_refsource_BUGTRAQ
- http://www.securityfocus.com/archive/1/441708/100/100/threaded mailing-listx_refsource_BUGTRAQ
- https://access.redhat.com/security/cve/CVE-2006-4023 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=920517 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2006-4023
- https://www.cve.org/CVERecord?id=CVE-2006-4023
| Link | Providers | Tags |
|---|---|---|
| http://retrogod.altervista.org/php_ip2long.htm | x_refsource_MISCExploit | |
| http://securitytracker.com/id?1016609 | vdb-entryx_refsource_SECTRACKExploit | |
| http://www.securityfocus.com/archive/1/441529/100/100/threaded | mailing-listx_refsource_BUGTRAQ | |
| http://www.securityfocus.com/archive/1/441708/100/100/threaded | mailing-listx_refsource_BUGTRAQ | |
| https://access.redhat.com/security/cve/CVE-2006-4023 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=920517 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2006-4023 | ||
| https://www.cve.org/CVERecord?id=CVE-2006-4023 |
Change history (0)
No recorded changes yet.