| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.6 | $0-$5k | 0.00 |
Summary
A vulnerability was found in PHP up to 4.4.4 and classified as critical. Affected by this issue is the function str_replace. Such manipulation leads to integer coercion.
This vulnerability is documented as CVE-2007-1885. Additionally, an exploit exists.
It is suggested to upgrade the affected component.
Details
A vulnerability was found in PHP up to 4.4.4 (Programming Language Software). It has been rated as critical. Affected by this issue is the function str_replace. The manipulation with an unknown input leads to a integer coercion vulnerability. Using CWE to declare the problem leads to CWE-192. Integer coercion refers to a set of flaws pertaining to the type casting, extension, or truncation of primitive data types. Impacted is confidentiality, integrity, and availability. CVE summarizes:
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.
The bug was discovered 03/31/2007. The weakness was released 04/05/2007 by Stefan Esser (Website). The advisory is available at h20000.www2.hp.com. This vulnerability is handled as CVE-2007-1885 since 04/05/2007. The exploitation is known to be easy. The attack may be launched remotely. No form of authentication is required for exploitation. Technical details as well as a public exploit are known.
The exploit is available at securityfocus.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 2 days. During that time the estimated underground price was around $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 24906 (PHP < 4.4.5 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses and running in the context r. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12259 (PHP Prior to 5.2.1/4.4.5 Multiple Vulnerabilities).
Upgrading to version 4.4.5 eliminates this vulnerability.
The vulnerability is also documented in the databases at X-Force (33767), Tenable (24906), SecurityFocus (BID 23233†), OSVDB (33956†) and Secunia (SA25423†). Entries connected to this vulnerability are available at VDB-2911, VDB-35862, VDB-35531 and VDB-35530. If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Type
Name
Version
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.3VulDB Meta Temp Score: 6.6
VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Integer coercionCWE: CWE-192 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 24906
Nessus Name: PHP < 4.4.5 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 100594
OpenVAS Name: PHP Str_Replace() Integer Overflow Vulnerability
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: PHP 4.4.5
Timeline
03/31/2007 🔍03/31/2007 🔍
03/31/2007 🔍
04/02/2007 🔍
04/05/2007 🔍
04/05/2007 🔍
04/05/2007 🔍
04/16/2007 🔍
05/30/2007 🔍
03/13/2015 🔍
06/13/2025 🔍
Sources
Product: php.orgAdvisory: h20000.www2.hp.com⛔
Researcher: Stefan Esser
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2007-1885 (🔍)
GCVE (CVE): GCVE-0-2007-1885
GCVE (VulDB): GCVE-100-36026
X-Force: 33767
SecurityFocus: 23233 - PHP Str_Replace() Integer Overflow Vulnerability
Secunia: 25423
OSVDB: 33956 - PHP str_replace buffer overflow
Vulnerability Center: 14857 - PHP before 4.4.5 and 5.2.1 Integer Overflow in the str_replace Function Allows Code Execution, Medium
Vupen: ADV-2007-1991
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 03/13/2015 14:56Updated: 06/13/2025 14:03
Changes: 03/13/2015 14:56 (79), 07/18/2019 08:52 (4), 06/13/2025 14:03 (20)
Complete: 🔍
Cache ID: 216:6CB:103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.