CVE-2007-1885: PHP - Integer Overflow
- Cve: CVE-2007-1885
- Name: PHP - Integer Overflow
- Description: Integer overflow in the str_replace function in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 allows context-dependent attackers to execute arbitrary code via a single character search string in conjunction with a long replacement string, which overflows a 32 bit length counter. NOTE: this is probably the same issue as CVE-2007-0906.6.
- Impact: Attackers can execute arbitrary code or commands, potentially leading to full system compromise.
- Remediation: Update PHP to version 4.4.5 or later for PHP 4, and 5.2.1 or later for PHP 5.
- Vulnerability type: integer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
- Epss score: 0.0431
- Epss percentile: 0.91397
- Assignee: [email protected]
- Published at: 2007-04-06T01:19:00Z
- Age in days: 7172
- Modified at: 2026-06-16T22:38:30Z
- Public exploits total: 1
- References total: 10
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2007-1885
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-Other | — |
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://www.php-security.org/MOPB/MOPB-39-2007.html | nvd | 2007-04-06 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| php:php | = 5.2.0, = 5.1.6, = 5.1.5, = 5.1.4, = 5.1.3, = 5.1.2, = 5.1.1, = 5.1.0, = 5.0.5, = 5.0.4, = 5.0.3, = 5.0.2, = 5.0.1, = 5.0.0, = 5.0.0 beta1, = 5.0.0 beta2, = 5.0.0 beta3, = 5.0.0 beta4, = 5.0.0 rc1, = 5.0.0 rc2, = 5.0.0 rc3, = 5.0 rc1, = 5.0 rc2, = 5.0 rc3, = 4.4.6, = 4.4.5, = 4.4.4, = 4.4.3, = 4.4.2, = 4.4.1, = 4.4.0, = 4.3.11, = 4.3.10, = 4.3.9, = 4.3.8, = 4.3.7, = 4.3.6, = 4.3.5, = 4.3.4, = 4.3.3, = 4.3.2, = 4.3.1, = 4.3.0, = 4.2.3, = 4.2.2, = 4.2.1, = 4.2.0, = 4.2, = 4.1.2, = 4.1.1, = 4.1.0, = 4.0.7, = 4.0.7 rc1, = 4.0.7 rc2, = 4.0.7 rc3, = 4.0.6, = 4.0.5, = 4.0.4, = 4.0.4 patch1, = 4.0.3, = 4.0.3 patch1, = 4.0.2, = 4.0.1, = 4.0.1 patch1, = 4.0.1 patch2, = 4.0.0 | no | nvd | /v1/products/php/php |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2007-04-06
- Remote: yes
- Exposed hosts: 6175026
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports