All vulnerabilities

Servers and applications

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)…

Severity
High 10.0
Published
23 Dec 2008
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
7.4% in the next 30 daysHigher than 94% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Memory buffer errors (CWE-119)
Attack
Over the network · No login needed
Attacker can
Read data · Change data · Take it down
CVSS vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
Sources
NVD

Description

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.

From NVD.

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Version 5.2.6
  • Version 5.2.5
  • Version 5.2.4
  • Version 5.2.3
All 49 release lines
  • Version 4.3.0
  • Version 4.3.1
  • Version 4.3.2
  • Version 4.3.3
  • Version 4.3.4
  • Version 4.3.5
  • Version 4.3.6
  • Version 4.3.7
  • Version 4.3.8
  • Version 4.3.9
  • Version 4.3.10
  • Version 4.3.11
  • Version 4.4.0
  • Version 4.4.1
  • Version 4.4.2
  • Version 4.4.3
  • Version 4.4.4
  • Version 4.4.5
  • Version 4.4.6
  • Version 4.4.7
  • Version 4.4.8
  • Version 4.4.9
  • Version 5.0.0-beta1
  • Version 5.0.0-beta2
  • Version 5.0.0-beta3
  • Version 5.0.0-beta4
  • Version 5.0.0-rc1
  • Version 5.0.0-rc2
  • Version 5.0.0-rc3
  • Version 5.0.0
  • Version 5.0.1
  • Version 5.0.2
  • Version 5.0.3
  • Version 5.0.4
  • Version 5.0.5
  • Version 5.1.0
  • Version 5.1.1
  • Version 5.1.2
  • Version 5.1.3
  • Version 5.1.4
  • Version 5.1.5
  • Version 5.1.6
  • Version 5.2.0
  • Version 5.2.1
  • Version 5.2.2
  • Version 5.2.3
  • Version 5.2.4
  • Version 5.2.5
  • Version 5.2.6

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2008-5557
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2008-5557