CVE-2007-4661
The chunk_split function in string.c in PHP 5.2.3 does not properly calculate the needed buffer...
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.
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2007-4661- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-119, CWE-399
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2007-4661- Updated
- 2026-11-02
EUVDEUVD-2007-4643 No score
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.
- Record
EUVD-2007-4643- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-gm64-4hqj-9wvv No score
The chunk_split function in string.c in PHP 5.2.3 does not properly calculate the needed buffer...
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.
- Record
GHSA-gm64-4hqj-9wvv- Weakness
- CWE-119
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
phpRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-bcmathRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-cliRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-commonRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-dbaRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-debuginfoRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-develRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-gdRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-imapRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-ldapRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
Show 10 moreShow less
| Package | Affected | Fixed |
|---|---|---|
php-mbstringRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-mysqlRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-ncursesRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-odbcRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-pdoRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-pgsqlRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-snmpRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-soapRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-xmlRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
php-xmlrpcRed Hat:rhel_application_stack:2 From an advisory covering 7 CVEs |
before 0:5.2.3-3.el5s2 | 0:5.2.3-3.el5s2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2007-4661 is a high vulnerability (CVSS 7.5) in Php, published September 4, 2007. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.36%, the 83rd percentile. No source names a fixed version.
References
launchpad.net/bugs/173043
lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html
secunia.com/advisories/28658
gentoo.org/security/en/glsa/glsa-200710-02.xml
secunia.com/advisories/27864
php.net/ChangeLog-5.php
Show 40 moreShow less
usn.ubuntu.com/549-1
issues.rpath.com/browse/RPL-1702
secunia.com/advisories/26838
secunia.com/advisories/27102
php.net/releases/5_2_4.php
ubuntu.com/usn/usn-549-2
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
secunia.com/advisories/26642
nvd.nist.gov/vuln/detail/CVE-2007-4661
github.com/advisories/GHSA-gm64-4hqj-9wvv
access.redhat.com/errata/RHSA-2007:0917
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=250726
bugzilla.redhat.com/show_bug.cgi?id=276081
bugzilla.redhat.com/show_bug.cgi?id=276531
bugzilla.redhat.com/show_bug.cgi?id=278011
bugzilla.redhat.com/show_bug.cgi?id=278031
bugzilla.redhat.com/show_bug.cgi?id=278041
bugzilla.redhat.com/show_bug.cgi?id=278161
security.access.redhat.com/data/csaf/v2/advisories/2007/rhsa-2007_0917.json
access.redhat.com/security/cve/CVE-2007-3799
cve.org/CVERecord?id=CVE-2007-3799
nvd.nist.gov/vuln/detail/CVE-2007-3799
access.redhat.com/security/cve/CVE-2007-3996
cve.org/CVERecord?id=CVE-2007-3996
nvd.nist.gov/vuln/detail/CVE-2007-3996
access.redhat.com/security/cve/CVE-2007-3998
cve.org/CVERecord?id=CVE-2007-3998
nvd.nist.gov/vuln/detail/CVE-2007-3998
access.redhat.com/security/cve/CVE-2007-4658
cve.org/CVERecord?id=CVE-2007-4658
nvd.nist.gov/vuln/detail/CVE-2007-4658
access.redhat.com/security/cve/CVE-2007-4659
cve.org/CVERecord?id=CVE-2007-4659
nvd.nist.gov/vuln/detail/CVE-2007-4659
access.redhat.com/security/cve/CVE-2007-4661
cve.org/CVERecord?id=CVE-2007-4661
access.redhat.com/security/cve/CVE-2007-4670
cve.org/CVERecord?id=CVE-2007-4670
nvd.nist.gov/vuln/detail/CVE-2007-4670