CVE-2007-4661
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…
- 7.5HighCVSS base score
- 2.4%Exploitation in 30 daysEPSS · top 16% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By mitre
Published
- 17 years later
· 17 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 2.4% · top 16% of all CVEs (10 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
n/a
- affected n/a
References
14
- https://launchpad.net/bugs/173043 (opens in a new tab)x_refsource_CONFIRMx_transferred
- SUSE-SA:2008:004 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 28658 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- GLSA-200710-02 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- 27864 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- http://www.php.net/ChangeLog-5.php#5.2.4 (opens in a new tab)x_refsource_CONFIRMx_transferred
- USN-549-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- https://issues.rpath.com/browse/RPL-1702 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 26838 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 27102 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- http://www.php.net/releases/5_2_4.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- USN-549-2 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- 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 (opens in a new tab)x_refsource_MISCx_transferred
- 26642 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2007-4643 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2007-4661)Record last updated .