Buffer overflow in PHP
CVE-2008-5557
Heap-based buffer overflow in ext/mbstring/libmbfl/filters/mbfilter_htmlent.c in the mbstring extension in PHP 4.3.0 through 5.2.6 allows context-dependent attackers to execute arbitrary code via a crafted string containing an HTML entity, which is not properly handled during Unicode conversion, related to the (1) mb_convert_encoding, (2) mb_check_encoding, (3) mb_convert_variables, and (4) mb_parse_str functions.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v2 metric
CVSS v2 base score 10.0 (High). Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.074, 94.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 4.3.0, 4.3.1, 4.3.2
Weakness classification (CWE)
References
- HPSBUX02465 (vendor-advisory)
- support.apple.com/kb/HT3549
- SSRT090085 (vendor-advisory)
- cvs.php.net/viewvc.cgi/php-src/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c (Exploit)
- FEDORA-2009-3768 (vendor-advisory)
- 20090302 rPSA-2009-0035-1 php php-cgi php-imap php-mcrypt php-mysql php-mysqli php-pgsql php-soap php-xsl php5 php5-cgi php5-imap php5-mcrypt php5-mysql php5-mysqli php5-pear php5-pgsql php5-soap php5-xsl (mailing-list)
- 20081221 CVE-2008-5557 - PHP mbstring buffer overflow (mailing-list)
- wiki.rpath.com/Advisories:rPSA-2009-0035
- secunia.com/advisories/34642 (third-party-advisory)
- securitytracker.com/id (vdb-entry)