{"id":"CVE-2007-4661","aliases":["EUVD-2007-4643","GHSA-gm64-4hqj-9wvv","RHSA-2007:0917"],"status":"published","title":"The chunk_split function in string.c in PHP 5.2.3 does not properly calculate the needed buffer...","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02358,"percentile":0.83876,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-119","CWE-399"],"published":"2007-09-04T22:00:00Z","modified":"2026-06-16T22:44:31Z","affected":[{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-bcmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-dba","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-mbstring","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-ncurses","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-pdo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-snmp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-soap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-xml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-xmlrpc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.3-3.el5s2"}]}],"bundled":7}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"https://launchpad.net/bugs/173043","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://secunia.com/advisories/28658","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"http://secunia.com/advisories/27864","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.php.net/ChangeLog-5.php#5.2.4","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://usn.ubuntu.com/549-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"https://issues.rpath.com/browse/RPL-1702","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://secunia.com/advisories/26838","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/27102","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.php.net/releases/5_2_4.php","tags":["x_refsource_CONFIRM","x_transferred","Patch"]},{"url":"http://www.ubuntu.com/usn/usn-549-2","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.58\u0026r2=1.445.2.14.2.59","tags":["x_refsource_MISC","x_transferred","Exploit"]},{"url":"http://secunia.com/advisories/26642","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4661","tags":["advisory"]},{"url":"https://usn.ubuntu.com/549-1"},{"url":"https://github.com/advisories/GHSA-gm64-4hqj-9wvv"},{"url":"https://access.redhat.com/errata/RHSA-2007:0917","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=250726","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=276081","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=276531","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=278011","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=278031","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=278041","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=278161","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2007/rhsa-2007_0917.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-3799","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-3799","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3799","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-3996","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-3996","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3996","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-3998","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-3998","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3998","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-4658","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-4658","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4658","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-4659","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-4659","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4659","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-4661","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-4661","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-4670","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-4670","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4670","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2007-4661","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.","status":"published","published":"2007-09-04T22:00:00Z","modified":"2024-08-07T15:01:09.957Z","updated_at":"2026-11-02T13:33:30.262137Z"}],"euvd":[{"id":"EUVD-2007-4643","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.","status":"published","published":"2007-09-04T22:00:00Z","modified":"2024-08-07T15:01:09Z","updated_at":"2026-11-03T01:16:20.592518Z"}],"ghsa":[{"id":"GHSA-gm64-4hqj-9wvv","title":"The chunk_split function in string.c in PHP 5.2.3 does not properly calculate the needed buffer...","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.","status":"published","published":"2022-05-01T18:26:00Z","modified":"2025-04-09T03:46:53Z","cwes":["CWE-119"],"updated_at":"2026-11-02T15:00:55.004058Z"}],"nvd":[{"id":"CVE-2007-4661","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.","status":"published","published":"2007-09-04T22:17:00Z","modified":"2026-06-16T22:44:31.933Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-119","CWE-399"],"updated_at":"2026-11-02T14:01:19.102336Z"}],"osv":[{"id":"RHSA-2007:0917","title":"Red Hat Security Advisory: php security update","status":"published","published":"2024-09-15T16:55:49Z","modified":"2026-01-14T10:59:26.507565Z","updated_at":"2026-11-02T15:52:59.70892Z"}]}}
