Skip to content
OpenAdvisories
Unscored CVE-2008-5557 EUVD-2008-5532GHSA-frch-4gjp-rjjv

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

Published Dec 23, 2008 · Updated Aug 7, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 5.0 php5 5.2.6.dfsg.1-1+lenny2 DTSA-188-1, DSA-1789-1
Debian 4.0 php5 5.2.0+dfsg-8+etch15 DSA-1789-1
ReleasePackageFixed inAdvisory
RHEL 5 php +18 5.1.6-23.2.el5_3 RHSA-2009:0338
RHEL 4 php +13 4.3.9-3.22.15 RHSA-2009:0337
RHEL 3 php +6 4.3.2-51.ent RHSA-2009:0337
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Application Stack 2 php +18 5.2.6-4.el5s2 RHSA-2009:0350

Advisories 5

References