CVE-2016-5768

critical
Published 2016-08-07 · Modified 2026-05-06
CVSS v3
9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2
7.5
VIR risk
9.8

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.

Predictions

Exploit likelihood
97%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2016-5768.html

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://bugs.php.net/bug.php?id=72402

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — http://www.openwall.com/lists/oss-security/2016/06/23/4

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — http://php.net/ChangeLog-7.php

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — http://php.net/ChangeLog-5.php

OS impact

OSVersionStatusFixed in
suse slesaffected

Application impact

VendorProductVersionsFixed
php phpphp{"endIncluding":"5.5.36"}
php phpphp5.6.0
php phpphp5.6.1
php phpphp5.6.2
php phpphp5.6.3
php phpphp5.6.4
php phpphp5.6.5
php phpphp5.6.6
php phpphp5.6.7
php phpphp5.6.8
php phpphp5.6.9
php phpphp5.6.10
php phpphp5.6.11
php phpphp5.6.12
php phpphp5.6.13
php phpphp5.6.14
php phpphp5.6.15
php phpphp5.6.16
php phpphp5.6.17
php phpphp5.6.18
php phpphp5.6.19
php phpphp5.6.20
php phpphp5.6.21
php phpphp5.6.22
php phpphp7.0.0
php phpphp7.0.1
php phpphp7.0.2
php phpphp7.0.3
php phpphp7.0.4
php phpphp7.0.5
php phpphp7.0.6
php phpphp7.0.7

References

CWEs

CWE-415

Verify integrity in audit chain (admin only). AS-IS.