Every CVE Search/ Get API key

CVE-2007-4661

The chunk_split function in string.c in PHP 5.2.3 does not properly calculate the needed buffer...

7.5 High

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

2.36%Down 0.3 points since Feb 4, 2022
90%50%10%1%

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 HighAV: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

Affected packages
PackageAffectedFixed
php
Red 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-bcmath
Red 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-cli
Red 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-common
Red 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-dba
Red 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-debuginfo
Red 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-devel
Red 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-gd
Red 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-imap
Red 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-ldap
Red 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
Affected packages
PackageAffectedFixed
php-mbstring
Red 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-mysql
Red 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-ncurses
Red 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-odbc
Red 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-pdo
Red 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-pgsql
Red 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-snmp
Red 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-soap
Red 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-xml
Red 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-xmlrpc
Red 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

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 40 moreShow less
MoveEnter Open