php: Integer underflow causing arbitrary null write in fread/gzread
Published Aug 7, 2016
8.6
HIGHCVSS 3.0
EPSS 4.28%
Description
Integer overflow in the fread function in ext/standard/file.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer in the second argument.
Affected products
No data.
- ≤ 5.5.35
- 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
No data.
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 7
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 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 7 | 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:L/I:L/A:H
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 | 4.28% (0.04278) | 90.79th | v5 (v2026.06.15) |
| Sep 22, 2026 | 4.40% (0.04397) | 90.88th | v5 (v2026.06.15) |
| Sep 21, 2026 | 5.69% (0.05694) | 92.71th | v5 (v2026.06.15) |
| Sep 6, 2026 | 4.40% (0.04397) | 90.67th | v5 (v2026.06.15) |
| Sep 5, 2026 | 5.69% (0.05694) | 92.55th | v5 (v2026.06.15) |
| Aug 30, 2026 | 4.40% (0.04397) | 90.62th | v5 (v2026.06.15) |
| Aug 28, 2026 | 5.69% (0.05694) | 92.51th | v5 (v2026.06.15) |
| Aug 24, 2026 | 4.40% (0.04397) | 90.56th | v5 (v2026.06.15) |
| Aug 23, 2026 | 5.69% (0.05694) | 92.48th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.40% (0.04397) | 90.03th | v5 (v2026.06.15) |
| Jan 14, 2026 | 1.23% (0.01230) | 78.73th | v4 (v2025.03.14) |
| Jun 21, 2025 | 2.61% (0.02612) | 84.97th | v4 (v2025.03.14) |
| Apr 12, 2025 | 1.37% (0.01371) | 78.60th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.37% (0.02374) | 83.87th | v4 (v2025.03.14) |
| Dec 12, 2024 | 6.03% (0.06033) | 93.77th | v3 (v2023.03.01) |
| Jan 18, 2024 | 6.03% (0.06033) | 92.78th | v3 (v2023.03.01) |
| Nov 8, 2023 | 6.63% (0.06626) | 93.05th | v3 (v2023.03.01) |
| Jul 11, 2023 | 4.79% (0.04789) | 91.59th | v3 (v2023.03.01) |
| May 29, 2023 | 4.51% (0.04512) | 91.25th | v3 (v2023.03.01) |
| Mar 7, 2023 | 4.05% (0.04053) | 90.74th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.41% (0.01408) | 72.89th | v2 (v2022.01.01) |
| Mar 2, 2023 | 1.41% (0.01408) | 72.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.41% (0.01408) | 70.87th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.41% (0.01408) | 49.94th | v2 (v2022.01.01) |
References (12)
- http://php.net/ChangeLog-5.php x_refsource_CONFIRMPatchRelease Notes
- http://rhn.redhat.com/errata/RHSA-2016-2750.html vendor-advisoryx_refsource_REDHAT
- http://www.debian.org/security/2016/dsa-3602 vendor-advisoryx_refsource_DEBIAN
- http://www.openwall.com/lists/oss-security/2016/05/26/3 mailing-listx_refsource_MLISTRelease Notes
- http://www.securityfocus.com/bid/90861 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2016-5096 Vendor Advisory
- https://bugs.php.net/bug.php?id=72114 x_refsource_CONFIRMExploit
- https://bugzilla.redhat.com/show_bug.cgi?id=1339949 Issue Tracking
- https://github.com/php/php-src/commit/abd159cce48f3e34f08e4751c568e09677d5ec9c?w=1 x_refsource_CONFIRM
- 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-5096
- https://www.cve.org/CVERecord?id=CVE-2016-5096
| Link | Providers | Tags |
|---|---|---|
| http://php.net/ChangeLog-5.php | x_refsource_CONFIRMPatchRelease Notes | |
| http://rhn.redhat.com/errata/RHSA-2016-2750.html | vendor-advisoryx_refsource_REDHAT | |
| http://www.debian.org/security/2016/dsa-3602 | vendor-advisoryx_refsource_DEBIAN | |
| http://www.openwall.com/lists/oss-security/2016/05/26/3 | mailing-listx_refsource_MLISTRelease Notes | |
| http://www.securityfocus.com/bid/90861 | vdb-entryx_refsource_BID | |
| https://access.redhat.com/security/cve/CVE-2016-5096 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=72114 | x_refsource_CONFIRMExploit | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1339949 | Issue Tracking | |
| https://github.com/php/php-src/commit/abd159cce48f3e34f08e4751c568e09677d5ec9c?w=1 | x_refsource_CONFIRM | |
| 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-5096 | ||
| https://www.cve.org/CVERecord?id=CVE-2016-5096 |
Change history (0)
No recorded changes yet.