CVE-2007-0911

PHP 5.2.1 - Denial of Service via Off-by-One Error in str_ireplace

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-0911. PoCs published by Thomas Hruska.

AI-analyzed exploit summary This exploit demonstrates a denial-of-service vulnerability in PHP 5.2.1 by repeatedly replacing newline characters in a string, causing excessive resource consumption and potential crashes. The PoC leverages the `str_ireplace` function to trigger the issue.

Description

Off-by-one error in the str_ireplace function in PHP 5.2.1 might allow context-dependent attackers to cause a denial of service (crash).

Exploits (1)

exploitdb WORKING POC VERIFIED
by Thomas Hruska · phpdosphp
https://www.exploit-db.com/exploits/29577

This exploit demonstrates a denial-of-service vulnerability in PHP 5.2.1 by repeatedly replacing newline characters in a string, causing excessive resource consumption and potential crashes. The PoC leverages the `str_ireplace` function to trigger the issue.

Classification
Working Poc 90%
Attack Type
Dos
Complexity
Trivial
Reliability
Reliable
Target: PHP 5.2.1
No auth needed
Prerequisites: Ability to execute PHP code on the target system
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (10)

Core 10
Core References
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24606
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/459856/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/33952
Mailing List mailing-list x_refsource_mlist
http://marc.info/?l=php-dev&m=117104930526516&w=2
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24514
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200703-21.xml
Various Sources vendor-advisory x_refsource_suse
http://lists.suse.com/archive/suse-security-announce/2007-Mar/0003.html
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/22505
Mailing List mailing-list x_refsource_mlist
http://marc.info/?l=php-dev&m=117106751715609&w=2

Scores

EPSS 0.0527
EPSS Percentile 91.5%

Details

Status published
Products (1)
php/php 5.2.1
Published Feb 13, 2007
Tracked Since Feb 18, 2026