{"api_version":"1","generated_at":"2026-07-23T08:05:44+00:00","cve":"CVE-2007-4661","urls":{"html":"https://cve.report/CVE-2007-4661","api":"https://cve.report/api/cve/CVE-2007-4661.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2007-4661","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2007-4661"},"summary":{"title":"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.","state":"PUBLISHED","assigner":"mitre","published_at":"2007-09-04 22:17:00","updated_at":"2026-04-23 00:35:47"},"problem_types":["CWE-119","CWE-399","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"http://secunia.com/advisories/27864","name":"http://secunia.com/advisories/27864","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Ubuntu update for php - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"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","name":"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","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit"],"title":"","mime":"","httpstatus":"-1","archivestatus":"404"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html","name":"http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[security-announce] SUSE Security Announcement: php4, php5 (SUSE-SA:2008","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.ubuntu.com/usn/usn-549-2","name":"http://www.ubuntu.com/usn/usn-549-2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"USN-549-2: PHP regression | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/28658","name":"http://secunia.com/advisories/28658","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"SUSE update for php4 and php5 - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","name":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Gentoo Linux Documentation\n--\n  PHP: Multiple vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/549-1/","name":"https://usn.ubuntu.com/549-1/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"USN-549-1: PHP vulnerabilities | Ubuntu security notices","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/26642","name":"http://secunia.com/advisories/26642","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"PHP Multiple Vulnerabilities - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/26838","name":"http://secunia.com/advisories/26838","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"rPath Update for Multiple php Packages - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/27102","name":"http://secunia.com/advisories/27102","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Gentoo update for php - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://launchpad.net/bugs/173043","name":"https://launchpad.net/bugs/173043","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Bug #173043 “php5 5.2.3-1ubuntu6.1 introduced segfault regressio...” : Bugs : “php5” package : Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.php.net/releases/5_2_4.php","name":"http://www.php.net/releases/5_2_4.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"PHP: PHP 5.2.4 Release Announcement","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://issues.rpath.com/browse/RPL-1702","name":"https://issues.rpath.com/browse/RPL-1702","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"-1","archivestatus":"404"},{"url":"http://www.php.net/ChangeLog-5.php#5.2.4","name":"http://www.php.net/ChangeLog-5.php#5.2.4","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"PHP: PHP 5 ChangeLog","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-4661","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4661","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2007","cve_id":"4661","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"5.2.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[{"cvename":"CVE-2007-4661","organization":"Mandriva","lastmodified":"2007-09-18","contributor":"Vincent Danen","statementText":"Not vulnerable. Mandriva has not issued an update to date to fix CVE-2007-2872 and the updates in progress are using a correct fix.","cve_year":"2007","cve_id":"4661","crc32":"c001ea5d"},{"cvename":"CVE-2007-4661","organization":"Red Hat","lastmodified":"2007-09-05","contributor":"Mark J Cox","statementText":"Not vulnerable. Red Hat did not include an incomplete fix for CVE-2007-2872 for PHP in Red Hat Enterprise Linux or Red Hat Application Stack.","cve_year":"2007","cve_id":"4661","crc32":"f64b93ec"}],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T15:01:09.957Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://launchpad.net/bugs/173043"},{"name":"SUSE-SA:2008:004","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"],"url":"http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html"},{"name":"28658","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/28658"},{"name":"GLSA-200710-02","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml"},{"name":"27864","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27864"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.php.net/ChangeLog-5.php#5.2.4"},{"name":"USN-549-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"],"url":"https://usn.ubuntu.com/549-1/"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://issues.rpath.com/browse/RPL-1702"},{"name":"26838","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/26838"},{"name":"27102","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27102"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.php.net/releases/5_2_4.php"},{"name":"USN-549-2","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"],"url":"http://www.ubuntu.com/usn/usn-549-2"},{"tags":["x_refsource_MISC","x_transferred"],"url":"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"},{"name":"26642","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/26642"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2007-08-30T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2018-10-03T20:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://launchpad.net/bugs/173043"},{"name":"SUSE-SA:2008:004","tags":["vendor-advisory","x_refsource_SUSE"],"url":"http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html"},{"name":"28658","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/28658"},{"name":"GLSA-200710-02","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml"},{"name":"27864","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27864"},{"tags":["x_refsource_CONFIRM"],"url":"http://www.php.net/ChangeLog-5.php#5.2.4"},{"name":"USN-549-1","tags":["vendor-advisory","x_refsource_UBUNTU"],"url":"https://usn.ubuntu.com/549-1/"},{"tags":["x_refsource_CONFIRM"],"url":"https://issues.rpath.com/browse/RPL-1702"},{"name":"26838","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/26838"},{"name":"27102","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27102"},{"tags":["x_refsource_CONFIRM"],"url":"http://www.php.net/releases/5_2_4.php"},{"name":"USN-549-2","tags":["vendor-advisory","x_refsource_UBUNTU"],"url":"http://www.ubuntu.com/usn/usn-549-2"},{"tags":["x_refsource_MISC"],"url":"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"},{"name":"26642","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/26642"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2007-4661","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://launchpad.net/bugs/173043","refsource":"CONFIRM","url":"https://launchpad.net/bugs/173043"},{"name":"SUSE-SA:2008:004","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html"},{"name":"28658","refsource":"SECUNIA","url":"http://secunia.com/advisories/28658"},{"name":"GLSA-200710-02","refsource":"GENTOO","url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml"},{"name":"27864","refsource":"SECUNIA","url":"http://secunia.com/advisories/27864"},{"name":"http://www.php.net/ChangeLog-5.php#5.2.4","refsource":"CONFIRM","url":"http://www.php.net/ChangeLog-5.php#5.2.4"},{"name":"USN-549-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/549-1/"},{"name":"https://issues.rpath.com/browse/RPL-1702","refsource":"CONFIRM","url":"https://issues.rpath.com/browse/RPL-1702"},{"name":"26838","refsource":"SECUNIA","url":"http://secunia.com/advisories/26838"},{"name":"27102","refsource":"SECUNIA","url":"http://secunia.com/advisories/27102"},{"name":"http://www.php.net/releases/5_2_4.php","refsource":"CONFIRM","url":"http://www.php.net/releases/5_2_4.php"},{"name":"USN-549-2","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/usn-549-2"},{"name":"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","refsource":"MISC","url":"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"},{"name":"26642","refsource":"SECUNIA","url":"http://secunia.com/advisories/26642"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2007-4661","datePublished":"2007-09-04T22:00:00.000Z","dateReserved":"2007-09-04T00:00:00.000Z","dateUpdated":"2024-08-07T15:01:09.957Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2007-09-04 22:17:00","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["CWE-119","CWE-399","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":true,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:php:php:5.2.3:*:*:*:*:*:*:*","matchCriteriaId":"86767200-6C9C-4C3E-B111-0E5BE61E197B"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2007","CveId":"4661","Ordinal":"1","Title":"CVE-2007-4661","CVE":"CVE-2007-4661","Year":"2007"},"notes":[{"CveYear":"2007","CveId":"4661","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2007-4661"},{"CveYear":"2007","CveId":"4661","Ordinal":"2","NoteData":"2007-09-04","Type":"Other","Title":"Published"},{"CveYear":"2007","CveId":"4661","Ordinal":"3","NoteData":"2018-10-03","Type":"Other","Title":"Modified"}]}}}