{"id":"CVE-2008-5557","state":"PUBLISHED","title":"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 arb","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.","publishedAt":"2008-12-23T18:13:00.000Z","updatedAt":"2024-08-07T10:56:47.251Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://marc.info/?l=bugtraq&m=125631037611762&w=2","http://support.apple.com/kb/HT3549","http://marc.info/?l=bugtraq&m=124654546101607&w=2","http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c?r1=1.7&r2=1.8","https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html","http://www.securityfocus.com/archive/1/501376/100/0/threaded","http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0477.html","http://wiki.rpath.com/Advisories:rPSA-2009-0035","http://secunia.com/advisories/34642","http://securitytracker.com/id?1021482","http://secunia.com/advisories/35074","http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02029444","http://lists.apple.com/archives/security-announce/2009/May/msg00002.html","http://lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html","http://lists.opensuse.org/opensuse-security-announce/2009-04/msg00003.html","http://www.redhat.com/support/errata/RHSA-2009-0350.html","https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html","http://secunia.com/advisories/35003","http://www.php.net/ChangeLog-5.php#5.2.7","http://www.us-cert.gov/cas/techalerts/TA09-133A.html","https://exchange.xforce.ibmcloud.com/vulnerabilities/47525","http://www.mandriva.com/security/advisories?name=MDVSA-2009:045","http://www.vupen.com/english/advisories/2009/1297","http://bugs.php.net/bug.php?id=45722","https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10286","http://secunia.com/advisories/35306","http://secunia.com/advisories/35650","http://www.securityfocus.com/bid/32948","http://www.debian.org/security/2009/dsa-1789"],"weaknesses":[],"ingestedAt":"2026-10-29T19:39:03.292Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2008/5xxx/CVE-2008-5557.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2008-5557","state":"PUBLISHED","datePublished":"2008-12-23T18:13:00.000Z","dateUpdated":"2024-08-07T10:56:47.251Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2008-12-15T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://marc.info/?l=bugtraq&m=125631037611762&w=2","name":"HPSBUX02465","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://support.apple.com/kb/HT3549","tags":["x_refsource_CONFIRM"]},{"url":"http://marc.info/?l=bugtraq&m=124654546101607&w=2","name":"SSRT090085","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c?r1=1.7&r2=1.8","tags":["x_refsource_CONFIRM"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html","name":"FEDORA-2009-3768","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.securityfocus.com/archive/1/501376/100/0/threaded","name":"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","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0477.html","name":"20081221 CVE-2008-5557 - PHP mbstring buffer overflow","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://wiki.rpath.com/Advisories:rPSA-2009-0035","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/34642","name":"34642","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://securitytracker.com/id?1021482","name":"1021482","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://secunia.com/advisories/35074","name":"35074","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02029444","name":"HPSBMA02492","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://marc.info/?l=bugtraq&m=125631037611762&w=2","name":"SSRT090192","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://lists.apple.com/archives/security-announce/2009/May/msg00002.html","name":"APPLE-SA-2009-05-12","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html","name":"SUSE-SR:2009:004","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2009-04/msg00003.html","name":"SUSE-SR:2009:008","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.redhat.com/support/errata/RHSA-2009-0350.html","name":"RHSA-2009:0350","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html","name":"FEDORA-2009-3848","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://secunia.com/advisories/35003","name":"35003","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.php.net/ChangeLog-5.php#5.2.7","tags":["x_refsource_CONFIRM"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA09-133A.html","name":"TA09-133A","tags":["third-party-advisory","x_refsource_CERT"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47525","name":"php-multibyte-bo(47525)","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:045","name":"MDVSA-2009:045","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://www.vupen.com/english/advisories/2009/1297","name":"ADV-2009-1297","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://marc.info/?l=bugtraq&m=124654546101607&w=2","name":"HPSBUX02431","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://bugs.php.net/bug.php?id=45722","tags":["x_refsource_CONFIRM"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10286","name":"oval:org.mitre.oval:def:10286","tags":["vdb-entry","signature","x_refsource_OVAL"]},{"url":"http://secunia.com/advisories/35306","name":"35306","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02029444","name":"SSRT100079","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://secunia.com/advisories/35650","name":"35650","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.securityfocus.com/bid/32948","name":"32948","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.debian.org/security/2009/dsa-1789","name":"DSA-1789","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2018-10-11T19:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2008-12-21T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2008-5557","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"HPSBUX02465","refsource":"HP","url":"http://marc.info/?l=bugtraq&m=125631037611762&w=2"},{"name":"http://support.apple.com/kb/HT3549","refsource":"CONFIRM","url":"http://support.apple.com/kb/HT3549"},{"name":"SSRT090085","refsource":"HP","url":"http://marc.info/?l=bugtraq&m=124654546101607&w=2"},{"name":"http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c?r1=1.7&r2=1.8","refsource":"CONFIRM","url":"http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c?r1=1.7&r2=1.8"},{"name":"FEDORA-2009-3768","refsource":"FEDORA","url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html"},{"name":"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","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/501376/100/0/threaded"},{"name":"20081221 CVE-2008-5557 - PHP mbstring buffer overflow","refsource":"FULLDISC","url":"http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0477.html"},{"name":"http://wiki.rpath.com/Advisories:rPSA-2009-0035","refsource":"CONFIRM","url":"http://wiki.rpath.com/Advisories:rPSA-2009-0035"},{"name":"34642","refsource":"SECUNIA","url":"http://secunia.com/advisories/34642"},{"name":"1021482","refsource":"SECTRACK","url":"http://securitytracker.com/id?1021482"},{"name":"35074","refsource":"SECUNIA","url":"http://secunia.com/advisories/35074"},{"name":"HPSBMA02492","refsource":"HP","url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02029444"},{"name":"SSRT090192","refsource":"HP","url":"http://marc.info/?l=bugtraq&m=125631037611762&w=2"},{"name":"APPLE-SA-2009-05-12","refsource":"APPLE","url":"http://lists.apple.com/archives/security-announce/2009/May/msg00002.html"},{"name":"SUSE-SR:2009:004","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html"},{"name":"SUSE-SR:2009:008","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2009-04/msg00003.html"},{"name":"RHSA-2009:0350","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2009-0350.html"},{"name":"FEDORA-2009-3848","refsource":"FEDORA","url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html"},{"name":"35003","refsource":"SECUNIA","url":"http://secunia.com/advisories/35003"},{"name":"http://www.php.net/ChangeLog-5.php#5.2.7","refsource":"CONFIRM","url":"http://www.php.net/ChangeLog-5.php#5.2.7"},{"name":"TA09-133A","refsource":"CERT","url":"http://www.us-cert.gov/cas/techalerts/TA09-133A.html"},{"name":"php-multibyte-bo(47525)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47525"},{"name":"MDVSA-2009:045","refsource":"MANDRIVA","url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:045"},{"name":"ADV-2009-1297","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2009/1297"},{"name":"HPSBUX02431","refsource":"HP","url":"http://marc.info/?l=bugtraq&m=124654546101607&w=2"},{"name":"http://bugs.php.net/bug.php?id=45722","refsource":"CONFIRM","url":"http://bugs.php.net/bug.php?id=45722"},{"name":"oval:org.mitre.oval:def:10286","refsource":"OVAL","url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10286"},{"name":"35306","refsource":"SECUNIA","url":"http://secunia.com/advisories/35306"},{"name":"SSRT100079","refsource":"HP","url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02029444"},{"name":"35650","refsource":"SECUNIA","url":"http://secunia.com/advisories/35650"},{"name":"32948","refsource":"BID","url":"http://www.securityfocus.com/bid/32948"},{"name":"DSA-1789","refsource":"DEBIAN","url":"http://www.debian.org/security/2009/dsa-1789"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://marc.info/?l=bugtraq&m=125631037611762&w=2","name":"HPSBUX02465","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://support.apple.com/kb/HT3549","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://marc.info/?l=bugtraq&m=124654546101607&w=2","name":"SSRT090085","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c?r1=1.7&r2=1.8","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html","name":"FEDORA-2009-3768","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/501376/100/0/threaded","name":"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","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://archives.neohapsis.com/archives/fulldisclosure/2008-12/0477.html","name":"20081221 CVE-2008-5557 - PHP mbstring buffer overflow","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]},{"url":"http://wiki.rpath.com/Advisories:rPSA-2009-0035","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://secunia.com/advisories/34642","name":"34642","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://securitytracker.com/id?1021482","name":"1021482","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://secunia.com/advisories/35074","name":"35074","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02029444","name":"HPSBMA02492","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://marc.info/?l=bugtraq&m=125631037611762&w=2","name":"SSRT090192","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://lists.apple.com/archives/security-announce/2009/May/msg00002.html","name":"APPLE-SA-2009-05-12","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html","name":"SUSE-SR:2009:004","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2009-04/msg00003.html","name":"SUSE-SR:2009:008","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2009-0350.html","name":"RHSA-2009:0350","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html","name":"FEDORA-2009-3848","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://secunia.com/advisories/35003","name":"35003","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.php.net/ChangeLog-5.php#5.2.7","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA09-133A.html","name":"TA09-133A","tags":["third-party-advisory","x_refsource_CERT","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47525","name":"php-multibyte-bo(47525)","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:045","name":"MDVSA-2009:045","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2009/1297","name":"ADV-2009-1297","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://marc.info/?l=bugtraq&m=124654546101607&w=2","name":"HPSBUX02431","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://bugs.php.net/bug.php?id=45722","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10286","name":"oval:org.mitre.oval:def:10286","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://secunia.com/advisories/35306","name":"35306","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02029444","name":"SSRT100079","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://secunia.com/advisories/35650","name":"35650","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.securityfocus.com/bid/32948","name":"32948","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.debian.org/security/2009/dsa-1789","name":"DSA-1789","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-07T10:56:47.251Z"}}]}}}