php: Double free in _php_mb_regex_ereg_replace_exec
Published Aug 7, 2016
9.8
CRITICALCVSS 3.0
EPSS 9.63%
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.
Affected products
No data.
- ≤ 5.5.36
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.1
- 5.6.2
- 5.6.3
- 5.6.4
- 5.6.5
- 5.6.6
- 5.6.7
- 5.6.8
- 5.6.9
- 5.6.10
- 5.6.11
- 5.6.12
- 5.6.13
- 5.6.14
- 5.6.15
- 5.6.16
- 5.6.17
- 5.6.18
- 5.6.19
- 5.6.20
- 5.6.21
- 5.6.22
- 7.0.0
- 7.0.1
- 7.0.2
- 7.0.3
- 7.0.4
- 7.0.5
- 7.0.6
- 7.0.7
No data.
Red Hat Enterprise Linux 7
php-0:5.4.16-42.el7
Fixed · RHSA-2016:2598
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-0:2.3-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-php-0:5.6.25-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-php-pear-1:1.9.5-4.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php56-0:2.3-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php56-php-0:5.6.25-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php56-php-pear-1:1.9.5-4.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-0:2.3-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-php-0:5.6.25-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-php-pear-1:1.9.5-4.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-php56-0:2.3-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-php56-php-0:5.6.25-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-php56-php-pear-1:1.9.5-4.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php56-0:2.3-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php56-php-0:5.6.25-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php56-php-pear-1:1.9.5-4.el7
Fixed · RHSA-2016:2750
Red Hat Enterprise Linux 5
php
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Software Collections
php54-php
Will not fix
Red Hat Software Collections
php55-php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | php-0:5.4.16-42.el7 | Fixed | RHSA-2016:2598 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-0:2.3-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-php-0:5.6.25-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-php-pear-1:1.9.5-4.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php56-0:2.3-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php56-php-0:5.6.25-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php56-php-pear-1:1.9.5-4.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-0:2.3-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-php-0:5.6.25-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-php-pear-1:1.9.5-4.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-php56-0:2.3-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-php56-php-0:5.6.25-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-php56-php-pear-1:1.9.5-4.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php56-0:2.3-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php56-php-0:5.6.25-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php56-php-pear-1:1.9.5-4.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Enterprise Linux 5 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Software Collections | php54-php | Will not fix | n/a |
| Red Hat Software Collections | php55-php | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (24 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 9.63% (0.09630) | 95.34th | v5 (v2026.06.15) |
| Jun 15, 2026 | 9.71% (0.09708) | 94.88th | v5 (v2026.06.15) |
| Jan 17, 2026 | 20.99% (0.20989) | 95.46th | v4 (v2025.03.14) |
| Jan 14, 2026 | 18.10% (0.18103) | 94.96th | v4 (v2025.03.14) |
| Dec 28, 2025 | 20.81% (0.20814) | 95.42th | v4 (v2025.03.14) |
| Dec 27, 2025 | 11.29% (0.11291) | 93.34th | v4 (v2025.03.14) |
| Oct 28, 2025 | 20.81% (0.20814) | 95.35th | v4 (v2025.03.14) |
| Oct 27, 2025 | 11.29% (0.11291) | 93.24th | v4 (v2025.03.14) |
| Oct 1, 2025 | 20.81% (0.20814) | 95.44th | v4 (v2025.03.14) |
| Aug 19, 2025 | 10.73% (0.10734) | 93.03th | v4 (v2025.03.14) |
| Jul 30, 2025 | 14.41% (0.14405) | 94.14th | v4 (v2025.03.14) |
| Jun 21, 2025 | 25.64% (0.25637) | 95.95th | v4 (v2025.03.14) |
| May 30, 2025 | 16.53% (0.16530) | 94.53th | v4 (v2025.03.14) |
| Apr 13, 2025 | 19.62% (0.19621) | 94.95th | v4 (v2025.03.14) |
| Apr 12, 2025 | 16.53% (0.16530) | 94.36th | v4 (v2025.03.14) |
| Mar 30, 2025 | 18.63% (0.18629) | 94.75th | v4 (v2025.03.14) |
| Mar 29, 2025 | 42.24% (0.42238) | 96.19th | v4 (v2025.03.14) |
| Mar 17, 2025 | 18.63% (0.18629) | 94.77th | v4 (v2025.03.14) |
| Dec 17, 2024 | 14.19% (0.14192) | 95.68th | v3 (v2023.03.01) |
| Sep 30, 2023 | 10.54% (0.10544) | 94.34th | v3 (v2023.03.01) |
| Mar 7, 2023 | 7.73% (0.07732) | 93.12th | v3 (v2023.03.01) |
| Mar 6, 2023 | 7.31% (0.07312) | 92.53th | v2 (v2022.01.01) |
| Apr 1, 2022 | 7.31% (0.07312) | 91.80th | v2 (v2022.01.01) |
| Feb 4, 2022 | 7.31% (0.07312) | 80.56th | v2 (v2022.01.01) |
References (18)
- http://github.com/php/php-src/commit/5b597a2e5b28e2d5a52fc1be13f425f08f47cb62?w=1 x_refsource_CONFIRM
- http://lists.apple.com/archives/security-announce/2016/Sep/msg00006.html vendor-advisoryx_refsource_APPLE
- http://lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.html vendor-advisoryx_refsource_SUSE
- http://php.net/ChangeLog-5.php x_refsource_CONFIRMPatchRelease Notes
- http://php.net/ChangeLog-7.php x_refsource_CONFIRMRelease Notes
- http://rhn.redhat.com/errata/RHSA-2016-2598.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2016-2750.html vendor-advisoryx_refsource_REDHAT
- http://www.debian.org/security/2016/dsa-3618 vendor-advisoryx_refsource_DEBIAN
- http://www.openwall.com/lists/oss-security/2016/06/23/4 mailing-listx_refsource_MLISTRelease Notes
- http://www.securityfocus.com/bid/91396 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2016-5768 Vendor Advisory
- https://bugs.php.net/bug.php?id=72402 x_refsource_CONFIRMExploitVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1351168 Issue Tracking
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2016-5768
- https://support.apple.com/HT207170 x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2016-5768
Change history (0)
No recorded changes yet.