php: Improper error handling in bzread()
Published Apr 21, 2017
7.8
HIGHCVSS 3.1
EPSS 9.84%
Description
The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.
Affected products
No data.
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 Enterprise Linux 8
bzip2
Not affected
Red Hat Enterprise Linux 8
php
Not affected
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 Enterprise Linux 8 | bzip2 | Not affected | n/a |
| Red Hat Enterprise Linux 8 | php | Not affected | 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.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:M/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 (30 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 9.84% (0.09844) | 95.42th | v5 (v2026.06.15) |
| Jun 15, 2026 | 9.84% (0.09844) | 94.93th | v5 (v2026.06.15) |
| Feb 20, 2026 | 13.86% (0.13858) | 94.14th | v4 (v2025.03.14) |
| Feb 14, 2026 | 15.52% (0.15523) | 94.50th | v4 (v2025.03.14) |
| Jan 14, 2026 | 17.14% (0.17137) | 94.78th | v4 (v2025.03.14) |
| Dec 28, 2025 | 20.96% (0.20960) | 95.45th | v4 (v2025.03.14) |
| Dec 27, 2025 | 19.45% (0.19446) | 95.22th | v4 (v2025.03.14) |
| Oct 28, 2025 | 20.96% (0.20960) | 95.38th | v4 (v2025.03.14) |
| Oct 27, 2025 | 19.45% (0.19446) | 95.14th | v4 (v2025.03.14) |
| Oct 1, 2025 | 20.96% (0.20960) | 95.47th | v4 (v2025.03.14) |
| Aug 20, 2025 | 19.45% (0.19446) | 95.16th | v4 (v2025.03.14) |
| Aug 17, 2025 | 17.34% (0.17336) | 94.77th | v4 (v2025.03.14) |
| Jul 30, 2025 | 21.19% (0.21190) | 95.42th | v4 (v2025.03.14) |
| Jun 21, 2025 | 22.79% (0.22793) | 95.59th | v4 (v2025.03.14) |
| May 30, 2025 | 18.73% (0.18733) | 94.93th | v4 (v2025.03.14) |
| Apr 13, 2025 | 16.88% (0.16878) | 94.43th | v4 (v2025.03.14) |
| Mar 30, 2025 | 18.73% (0.18733) | 94.78th | v4 (v2025.03.14) |
| Mar 29, 2025 | 28.87% (0.28867) | 94.55th | v4 (v2025.03.14) |
| Mar 17, 2025 | 18.73% (0.18733) | 94.79th | v4 (v2025.03.14) |
| Dec 17, 2024 | 13.24% (0.13242) | 95.54th | v3 (v2023.03.01) |
| Sep 6, 2023 | 17.68% (0.17678) | 95.46th | v3 (v2023.03.01) |
| Jun 17, 2023 | 13.30% (0.13301) | 94.77th | v3 (v2023.03.01) |
| May 7, 2023 | 13.73% (0.13730) | 94.77th | v3 (v2023.03.01) |
| Apr 1, 2023 | 13.99% (0.13995) | 94.77th | v3 (v2023.03.01) |
| Mar 7, 2023 | 9.85% (0.09851) | 93.85th | v3 (v2023.03.01) |
| Mar 6, 2023 | 26.41% (0.26407) | 97.11th | v2 (v2022.01.01) |
| Mar 2, 2023 | 26.41% (0.26407) | 97.11th | v2 (v2022.01.01) |
| Feb 13, 2023 | 24.04% (0.24044) | 96.71th | v2 (v2022.01.01) |
| Feb 3, 2023 | 10.04% (0.10039) | 94.33th | v2 (v2022.01.01) |
| Feb 4, 2022 | 24.04% (0.24044) | 95.15th | v2 (v2022.01.01) |
References (18)
- http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html x_refsource_MISCExploitThird Party AdvisoryVDB Entry
- http://php.net/ChangeLog-5.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://php.net/ChangeLog-7.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://rhn.redhat.com/errata/RHSA-2016-2598.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://rhn.redhat.com/errata/RHSA-2016-2750.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://seclists.org/fulldisclosure/2016/Jul/72 mailing-listx_refsource_FULLDISCExploitMailing ListThird Party Advisory
- http://www.debian.org/security/2016/dsa-3631 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/07/21/1 mailing-listx_refsource_MLISTExploitMailing ListThird Party Advisory
- http://www.securityfocus.com/archive/1/538966/100/0/threaded mailing-listx_refsource_BUGTRAQThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/bid/92051 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1036430 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2016-5399 Vendor Advisory
- https://bugs.php.net/bug.php?id=72613 x_refsource_CONFIRMExploitVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1358395 x_refsource_CONFIRMIssue TrackingThird Party AdvisoryVDB Entry
- https://nvd.nist.gov/vuln/detail/CVE-2016-5399
- https://security.netapp.com/advisory/ntap-20180112-0001/ x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2016-5399
- https://www.exploit-db.com/exploits/40155/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
| Link | Providers | Tags |
|---|---|---|
| http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html | x_refsource_MISCExploitThird Party AdvisoryVDB Entry | |
| http://php.net/ChangeLog-5.php | x_refsource_CONFIRMRelease NotesVendor Advisory | |
| http://php.net/ChangeLog-7.php | x_refsource_CONFIRMRelease NotesVendor Advisory | |
| http://rhn.redhat.com/errata/RHSA-2016-2598.html | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| http://rhn.redhat.com/errata/RHSA-2016-2750.html | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| http://seclists.org/fulldisclosure/2016/Jul/72 | mailing-listx_refsource_FULLDISCExploitMailing ListThird Party Advisory | |
| http://www.debian.org/security/2016/dsa-3631 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| http://www.openwall.com/lists/oss-security/2016/07/21/1 | mailing-listx_refsource_MLISTExploitMailing ListThird Party Advisory | |
| http://www.securityfocus.com/archive/1/538966/100/0/threaded | mailing-listx_refsource_BUGTRAQThird Party AdvisoryVDB Entry | |
| http://www.securityfocus.com/bid/92051 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| http://www.securitytracker.com/id/1036430 | vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2016-5399 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=72613 | x_refsource_CONFIRMExploitVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1358395 | x_refsource_CONFIRMIssue TrackingThird Party AdvisoryVDB Entry | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-5399 | ||
| https://security.netapp.com/advisory/ntap-20180112-0001/ | x_refsource_CONFIRMThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2016-5399 | ||
| https://www.exploit-db.com/exploits/40155/ | exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry |
Change history (0)
No recorded changes yet.