Vulnerabilities · 2008 · Php
CVE-2008-5557
Php vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.php.net/bug.php?id=45722 · Exploit
- cvs.php.net/viewvc.cgi/php-src/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c?r1=1.7&r2=1 · Exploit
- archives.neohapsis.com/archives/fulldisclosure/2008-12/0477.html
- h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02029444
- lists.apple.com/archives/security-announce/2009/May/msg00002.html
- lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html
- lists.opensuse.org/opensuse-security-announce/2009-04/msg00003.html
- marc.info/?l=bugtraq&m=124654546101607&w=2
- nvd.nist.gov/vuln/detail/CVE-2008-5557
- cve.org/CVERecord?id=CVE-2008-5557
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.