CVE-2008-5557
publishedphp: Heap-based buffer overflow in the mbstring extension via crafted string containing a HTML entity (arb code execution)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | etch | php5 | Advisory build | 5.2.0+dfsg-8+etch15 | DSA-1789-1 |
| Red Hat Enterprise Linux | RHEL-3 | phpi386 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Debian | lenny | php5 | Advisory build | 5.2.6.dfsg.1-1+lenny3 | DSA-1789-1 |
| Red Hat Enterprise Linux | RHEL-3 | phpia64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | phpppc | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | phps390 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | phps390x | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-3 | phpsrc | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | phpx86_64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-debuginfoi386 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-debuginfoia64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-debuginfoppc | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-debuginfos390 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-debuginfos390x | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-debuginfox86_64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-develi386 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-develia64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-develppc | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-devels390 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-devels390x | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-develx86_64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-imapi386 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-imapia64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-imapppc | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-imaps390 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-imaps390x | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-imapx86_64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-ldapi386 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-ldapia64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-ldapppc | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-ldaps390 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-ldaps390x | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-ldapx86_64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-mysqli386 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-mysqlia64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-mysqlppc | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-mysqls390 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-mysqls390x | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-mysqlx86_64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-odbci386 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-odbcia64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-odbcppc | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-odbcs390 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-odbcs390x | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-odbcx86_64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-pgsqli386 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-pgsqlia64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-pgsqlppc | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-pgsqls390 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-pgsqls390x | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-3 | php-pgsqlx86_64 | Advisory build | 4.3.2-51.ent | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | phpi386 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | phpia64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | phpppc | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | phps390 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | phps390x | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | phpsrc | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | phpx86_64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-debuginfoi386 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-debuginfoia64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-debuginfoppc | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-debuginfos390 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-debuginfos390x | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-debuginfox86_64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-develi386 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-develia64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-develppc | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-devels390 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-devels390x | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-develx86_64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-domxmli386 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-domxmlia64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-domxmlppc | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-domxmls390 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-domxmls390x | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-domxmlx86_64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-gdi386 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-gdia64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-gdppc | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-gds390 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-gds390x | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-gdx86_64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-imapi386 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-imapia64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-imapppc | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-imaps390 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-imaps390x | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-imapx86_64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-ldapi386 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-ldapia64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-ldapppc | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-ldaps390 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-ldaps390x | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-ldapx86_64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-mbstringi386 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-mbstringia64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-mbstringppc | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-mbstrings390 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-mbstrings390x | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
| Red Hat Enterprise Linux | RHEL-4 | php-mbstringx86_64 | Advisory build | 4.3.9-3.22.15 | RHSA-2009:0337 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
29- 20081221 CVE-2008-5557 - PHP mbstring buffer overflow http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0477.html
- http://bugs.php.net/bug.php?id=45722
- http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c?r1=1.7&r2=1.8
- HPSBMA02492 http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02029444
- APPLE-SA-2009-05-12 http://lists.apple.com/archives/security-announce/2009/May/msg00002.html
- SUSE-SR:2009:004 http://lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html
- SUSE-SR:2009:008 http://lists.opensuse.org/opensuse-security-announce/2009-04/msg00003.html
- SSRT090085 http://marc.info/?l=bugtraq&m=124654546101607&w=2
- HPSBUX02465 http://marc.info/?l=bugtraq&m=125631037611762&w=2
- 34642 http://secunia.com/advisories/34642
- 35003 http://secunia.com/advisories/35003
- 35074 http://secunia.com/advisories/35074
- 35306 http://secunia.com/advisories/35306
- 35650 http://secunia.com/advisories/35650
- 1021482 http://securitytracker.com/id?1021482
- http://support.apple.com/kb/HT3549
- http://wiki.rpath.com/Advisories:rPSA-2009-0035
- DSA-1789 http://www.debian.org/security/2009/dsa-1789
- MDVSA-2009:045 http://www.mandriva.com/security/advisories?name=MDVSA-2009:045
- http://www.php.net/ChangeLog-5.php#5.2.7
- RHSA-2009:0350 http://www.redhat.com/support/errata/RHSA-2009-0350.html
- 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 http://www.securityfocus.com/archive/1/501376/100/0/threaded
- 32948 http://www.securityfocus.com/bid/32948
- TA09-133A http://www.us-cert.gov/cas/techalerts/TA09-133A.html
- ADV-2009-1297 http://www.vupen.com/english/advisories/2009/1297
- php-multibyte-bo(47525) https://exchange.xforce.ibmcloud.com/vulnerabilities/47525
- oval:org.mitre.oval:def:10286 https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10286
- FEDORA-2009-3768 https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html
- FEDORA-2009-3848 https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5372285028df86a83f1b6a9c8d23a9e28ffba19351f0611b351b47d0fcef98dc
- Ingested
- 23 Sep 2026, 07:38:29 UTC
- Source record
- Official CVE record