CVE-2016-5768
Summary
| CVE | CVE-2016-5768 |
|---|---|
| State | PUBLISHED |
| Assigner | mitre |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2016-08-07 10:59:16 UTC |
| Updated | 2026-05-06 22:30:45 UTC |
| Description | Double 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
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.0 | [email protected] | Primary | 9.8 | CRITICAL | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 2.0 | [email protected] | Primary | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
CVSS v3.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
LowAuthentication
NoneConfidentiality
PartialIntegrity
PartialAvailability
PartialAV:N/AC:L/Au:N/C:P/I:P/A:P
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| 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
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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 |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.