CVE-2007-4661 json
The chunk_split function in string.c in PHP 5.2.3 does not properly calculate the needed buffer size due to precision loss when performing…
published 2007-09-04 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-4643
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.4%
- EPSS 2.4% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
The chunk_split function in string.c in PHP 5.2.3 does not properly calculate the needed buffer size due to precision loss when performing integer arithmetic with floating point numbers, which has unknown attack vectors and impact, possibly resulting in a heap-based buffer overflow. NOTE: this is due to an incomplete fix for CVE-2007-2872.
Patch / fix
- php RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-gd RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-cli RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-dba RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-pdo RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-xml RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-imap RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
- php-ldap RHEL 2 APPLICATION_STACK 5.2.3-3.el5s2
red hat advisories RHSA-2007:0917
- php.net/releases/5_2_4.php patch
- secunia.com/advisories/26642 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-4661 updated
php size calculation in chunk_split
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.36% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- cvs.php.net http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.58&r2=1.445.2.14.2.59 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
- Technology feeds
References
-
php.net
/releases/5_2_4.php
patch
-
secunia.com
/advisories/26642
third-party-advisory, patch
-
cvs.php.net
/viewvc.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.58&r2=1.445.2.14.2.59
exploit
-
lists.opensuse.org
/opensuse-security-announce/2008-01/msg00006.html
vendor-advisory
-
gentoo.org
/security/en/glsa/glsa-200710-02.xml
vendor-advisory
-
usn.ubuntu.com
/549-1/
vendor-advisory
-
ubuntu.com
/usn/usn-549-2
vendor-advisory
- launchpad.net /bugs/173043
-
secunia.com
/advisories/28658
third-party-advisory
-
secunia.com
/advisories/27864
third-party-advisory
- php.net /ChangeLog-5.php#5.2.4
- issues.rpath.com /browse/RPL-1702
-
secunia.com
/advisories/26838
third-party-advisory
-
secunia.com
/advisories/27102
third-party-advisory
Sources
- CVE List CVE-2007-4661
- NVD CVE-2007-4661
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.