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…

CVE-2008-5557 affects 13 listed versions of PHP in the Dawnsentry catalogue.

10.0CVSS critical
None knownexploitation
7%EPSS (next 30 days)
23 December 2008published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

13 of 250 listed versions are affected. No fixed release is named. The newest release, 8.6.0, is not affected.

5.2.6 5.2.5 5.2.4 5.2.3 5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.5 5.0.4

What it is

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.

AV:N/AC:L/Au:N/C:C/I:C/A:C (NVD)

Published by MITRE on 23 December 2008. Last changed 16 June 2026.

Sources

Check one version you run: look CVE-2008-5557 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.