CVE-2016-5768

Summary

CVECVE-2016-5768
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2016-08-07 10:59:16 UTC
Updated2026-05-06 22:30:45 UTC
DescriptionDouble free vulnerability in the _php_mb_regex_ereg_replace_exec function in php_mbregex.c in the mbstring extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by leveraging a callback exception.

Risk And Classification

Primary CVSS: v3.0 9.8 CRITICAL from [email protected]

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-415 | n/a


VersionSourceTypeScoreSeverityVector
3.0[email protected]Primary9.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2.0[email protected]Primary7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS v3.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:L/Au:N/C:P/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Php Php 5.6.0 alpha1 All All
Application Php Php 5.6.0 alpha2 All All
Application Php Php 5.6.0 alpha3 All All
Application Php Php 5.6.0 alpha4 All All
Application Php Php 5.6.0 alpha5 All All
Application Php Php 5.6.0 beta1 All All
Application Php Php 5.6.0 beta2 All All
Application Php Php 5.6.0 beta3 All All
Application Php Php 5.6.0 beta4 All All
Application Php Php 5.6.1 All All All
Application Php Php 5.6.10 All All All
Application Php Php 5.6.11 All All All
Application Php Php 5.6.12 All All All
Application Php Php 5.6.13 All All All
Application Php Php 5.6.14 All All All
Application Php Php 5.6.15 All All All
Application Php Php 5.6.16 All All All
Application Php Php 5.6.17 All All All
Application Php Php 5.6.18 All All All
Application Php Php 5.6.19 All All All
Application Php Php 5.6.2 All All All
Application Php Php 5.6.20 All All All
Application Php Php 5.6.21 All All All
Application Php Php 5.6.22 All All All
Application Php Php 5.6.3 All All All
Application Php Php 5.6.4 All All All
Application Php Php 5.6.5 All All All
Application Php Php 5.6.6 All All All
Application Php Php 5.6.7 All All All
Application Php Php 5.6.8 All All All
Application Php Php 5.6.9 All All All
Application Php Php 7.0.0 All All All
Application Php Php 7.0.1 All All All
Application Php Php 7.0.2 All All All
Application Php Php 7.0.3 All All All
Application Php Php 7.0.4 All All All
Application Php Php 7.0.5 All All All
Application Php Php 7.0.6 All All All
Application Php Php 7.0.7 All All All
Application Php Php All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
Document Display | HPE Support Center af854a3a-2127-422b-91ae-364da2661108 h20566.www2.hpe.com
PHP CVE-2016-5768 Double Free Memory Corruption Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
PHP :: Sec Bug #72402 :: _php_mb_regex_ereg_replace_exec - double free af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Exploit, Vendor Advisory
oss-security - Re: CVE for PHP 5.5.37 issues af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Release Notes
[security-announce] openSUSE-SU-2016:1761-1: important: Security update af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org
Debian -- Security Information -- DSA-3618-1 php5 af854a3a-2127-422b-91ae-364da2661108 www.debian.org
About the security content of macOS Sierra 10.12 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com
PHP: PHP 7 ChangeLog af854a3a-2127-422b-91ae-364da2661108 php.net Release Notes
openSUSE-SU-2016:1922-1: moderate: Security update for php5 af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org
APPLE-SA-2016-09-20 macOS Sierra 10.12 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com
Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free · php/php-src@5b597a2 · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com
PHP: PHP 5 ChangeLog af854a3a-2127-422b-91ae-364da2661108 php.net Patch, Release Notes
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report