7.5high

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…

Published 19 y ago · modified 4 mo ago · JSON

CVSS
7.5
v2.0 · NVD
CISA KEV
No
not known exploited
EPSS
2.4%
percentile 84%
Public exploits
0
none known

Summary

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 prediction (EPSS)

2.36% probability of exploitation in the next 30 days, higher than 84% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD2.07.5AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-399 Resource Management Errors
Technology feeds
PHP (RSS, critical only)

References

  • launchpad.net /bugs/173043 · x_refsource_CONFIRM, x_transferred
  • lists.opensuse.org /opensuse-security-announce/2008-01/msg00006.html · vendor-advisory, x_refsource_SUSE, x_transferred
  • secunia.com /advisories/28658 · third-party-advisory, x_refsource_SECUNIA, x_transferred
  • gentoo.org /security/en/glsa/glsa-200710-02.xml · vendor-advisory, x_refsource_GENTOO, x_transferred
  • secunia.com /advisories/27864 · third-party-advisory, x_refsource_SECUNIA, x_transferred
  • php.net /ChangeLog-5.php#5.2.4 · x_refsource_CONFIRM, x_transferred
  • usn.ubuntu.com /549-1/ · vendor-advisory, x_refsource_UBUNTU, x_transferred
  • issues.rpath.com /browse/RPL-1702 · x_refsource_CONFIRM, x_transferred
  • secunia.com /advisories/26838 · third-party-advisory, x_refsource_SECUNIA, x_transferred
  • secunia.com /advisories/27102 · third-party-advisory, x_refsource_SECUNIA, x_transferred
  • php.net /releases/5_2_4.php · x_refsource_CONFIRM, x_transferred
  • ubuntu.com /usn/usn-549-2 · vendor-advisory, x_refsource_UBUNTU, x_transferred
  • 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 · x_refsource_MISC, x_transferred
  • secunia.com /advisories/26642 · third-party-advisory, x_refsource_SECUNIA, x_transferred

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.