CVE-2007-1885

PHP < 4.4.5 and < 5.2.1 - Remote Code Execution via str_replace Integer Overflow

Title source: manual
STIX 2.1

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.

References (10)

Core 10
Core References
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/1991
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23233
Release Notes x_refsource_confirm
http://www.php.net/releases/5_2_1.php
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/2374
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25423
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25850
Exploit, Vendor Advisory x_refsource_misc
http://www.php-security.org/MOPB/MOPB-39-2007.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/33767

Scores

EPSS 0.0180
EPSS Percentile 83.0%

Details

Status published
Products (37)
php/php 4.0.0
php/php 4.0.1 (3 CPE variants)
php/php 4.0.2
php/php 4.0.3 (2 CPE variants)
php/php 4.0.4 (2 CPE variants)
php/php 4.0.5
php/php 4.0.6
php/php 4.0.7 (4 CPE variants)
php/php 4.1.0
php/php 4.1.1
... and 27 more
Published Apr 06, 2007
Tracked Since Feb 18, 2026