CVE-2007-2872

PHP <5.2.3 & <4.4.8 - Buffer Overflow

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-2872. PoCs published by Gerhard Wagner.

AI-analyzed exploit summary This exploit demonstrates an integer overflow vulnerability in PHP's chunk_split function, leading to a buffer overflow. It attempts to trigger the vulnerability by passing large string inputs, potentially causing a denial-of-service or arbitrary code execution.

Description

Multiple integer overflows in the chunk_split function in PHP 5 before 5.2.3 and PHP 4 before 4.4.8 allow remote attackers to cause a denial of service (crash) or execute arbitrary code via the (1) chunks, (2) srclen, and (3) chunklen arguments.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Gerhard Wagner · phpremotephp
https://www.exploit-db.com/exploits/30117

This exploit demonstrates an integer overflow vulnerability in PHP's chunk_split function, leading to a buffer overflow. It attempts to trigger the vulnerability by passing large string inputs, potentially causing a denial-of-service or arbitrary code execution.

Classification
Working Poc 90%
Attack Type
Dos
Complexity
Trivial
Reliability
Theoretical
Target: PHP versions prior to 5.2.3
No auth needed
Prerequisites: PHP version prior to 5.2.3
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (58)

Core 58
Core References
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-0888.html
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26231
Various Sources x_refsource_confirm
https://launchpad.net/bugs/173043
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27110
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26048
Various Sources x_refsource_misc
http://www.sec-consult.com/291.html
Vendor Advisory vendor-advisory x_refsource_openpkg
http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.020.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28750
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2008/0059
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28658
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26967
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27351
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/39398
Third Party Advisory vendor-advisory x_refsource_gentoo
http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27864
Release Notes x_refsource_confirm
http://www.php.net/releases/4_4_8.php
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1018186
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/30040
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2008/0398
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/36083
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28936
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26930
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25456
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2007-0889.html
Vendor Advisory vendor-advisory x_refsource_trustix
http://www.trustix.org/errata/2007/0023/
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/549-1/
Issue Tracking x_refsource_confirm
https://issues.rpath.com/browse/RPL-1693
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/3386
Third Party Advisory, VDB Entry vendor-advisory x_refsource_hp
http://www.securityfocus.com/archive/1/491693/100/0/threaded
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27037
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/2061
Issue Tracking x_refsource_confirm
https://issues.rpath.com/browse/RPL-1702
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27545
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26838
Patch x_refsource_confirm
http://www.php.net/releases/5_2_3.php
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27377
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25535
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:187
Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-4.php
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27102
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26895
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28318
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/usn-549-2
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-0890.html
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-0891.html
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26871
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/470244/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9424
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/24261

Scores

EPSS 0.0888
EPSS Percentile 94.6%

Details

CWE
CWE-189
Status published
Products (17)
php/php 5.0.0
php/php 5.0.1
php/php 5.0.2
php/php 5.0.3
php/php 5.0.4
php/php 5.0.5
php/php 5.1.0
php/php 5.1.1
php/php 5.1.2
php/php 5.1.3
... and 7 more
Published Jun 04, 2007
Tracked Since Feb 18, 2026