php: Use of uninitialized memory in unserialize()
Published Jan 11, 2017
9.8
CRITICALCVSS 3.1
EPSS 16.69%
Description
Zend/zend_hash.c in PHP before 7.0.15 and 7.1.x before 7.1.1 mishandles certain cases that require large array allocations, which allows remote attackers to execute arbitrary code or cause a denial of service (integer overflow, uninitialized memory access, and use of arbitrary destructor function pointers) via crafted serialized data.
Affected products
No data.
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php70-php-0:7.0.27-1.el6
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php70-php-0:7.0.27-1.el6
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
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 OpenShift Enterprise 2
php
Will not fix
Red Hat Software Collections
rh-php56-php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php70-php-0:7.0.27-1.el6 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php70-php-0:7.0.27-1.el6 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| 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 OpenShift Enterprise 2 | php | Will not fix | n/a |
| Red Hat Software Collections | rh-php56-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:N/AC:L/PR:N/UI:N/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: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
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (65 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 16.69% (0.16690) | 96.94th | v5 (v2026.06.15) |
| Jun 15, 2026 | 16.69% (0.16690) | 96.61th | v5 (v2026.06.15) |
| May 28, 2026 | 5.17% (0.05169) | 90.03th | v4 (v2025.03.14) |
| May 27, 2026 | 8.51% (0.08506) | 92.48th | v4 (v2025.03.14) |
| Mar 4, 2026 | 7.14% (0.07140) | 91.39th | v4 (v2025.03.14) |
| Mar 1, 2026 | 4.52% (0.04525) | 88.99th | v4 (v2025.03.14) |
| Feb 4, 2026 | 7.14% (0.07140) | 91.33th | v4 (v2025.03.14) |
| Feb 1, 2026 | 4.52% (0.04525) | 88.92th | v4 (v2025.03.14) |
| Jan 4, 2026 | 7.14% (0.07140) | 91.27th | v4 (v2025.03.14) |
| Jan 1, 2026 | 4.52% (0.04525) | 88.87th | v4 (v2025.03.14) |
| Dec 28, 2025 | 7.14% (0.07140) | 91.25th | v4 (v2025.03.14) |
| Dec 27, 2025 | 5.17% (0.05172) | 89.60th | v4 (v2025.03.14) |
| Dec 4, 2025 | 7.14% (0.07140) | 91.20th | v4 (v2025.03.14) |
| Dec 1, 2025 | 4.52% (0.04525) | 88.78th | v4 (v2025.03.14) |
| Nov 21, 2025 | 7.14% (0.07140) | 91.18th | v4 (v2025.03.14) |
| Nov 18, 2025 | 33.96% (0.33959) | 96.73th | v4 (v2025.03.14) |
| Nov 4, 2025 | 7.14% (0.07140) | 91.15th | v4 (v2025.03.14) |
| Nov 1, 2025 | 4.52% (0.04525) | 88.69th | v4 (v2025.03.14) |
| Oct 28, 2025 | 7.14% (0.07140) | 91.14th | v4 (v2025.03.14) |
| Oct 27, 2025 | 5.17% (0.05172) | 89.45th | v4 (v2025.03.14) |
| Oct 4, 2025 | 7.14% (0.07140) | 91.19th | v4 (v2025.03.14) |
| Sep 14, 2025 | 5.17% (0.05172) | 89.51th | v4 (v2025.03.14) |
| Sep 4, 2025 | 6.86% (0.06861) | 91.01th | v4 (v2025.03.14) |
| Sep 1, 2025 | 4.34% (0.04342) | 88.56th | v4 (v2025.03.14) |
| Aug 19, 2025 | 6.86% (0.06861) | 90.96th | v4 (v2025.03.14) |
| Aug 9, 2025 | 11.33% (0.11330) | 93.25th | v4 (v2025.03.14) |
| Aug 1, 2025 | 6.74% (0.06745) | 90.95th | v4 (v2025.03.14) |
| Jul 30, 2025 | 11.33% (0.11330) | 93.25th | v4 (v2025.03.14) |
| Jul 4, 2025 | 14.38% (0.14384) | 94.09th | v4 (v2025.03.14) |
| Jul 1, 2025 | 9.46% (0.09458) | 92.47th | v4 (v2025.03.14) |
| Jun 21, 2025 | 14.38% (0.14384) | 94.07th | v4 (v2025.03.14) |
| Jun 4, 2025 | 9.18% (0.09182) | 92.25th | v4 (v2025.03.14) |
| Jun 1, 2025 | 5.21% (0.05205) | 89.47th | v4 (v2025.03.14) |
| May 30, 2025 | 9.18% (0.09182) | 92.25th | v4 (v2025.03.14) |
| May 11, 2025 | 12.15% (0.12148) | 93.43th | v4 (v2025.03.14) |
| May 1, 2025 | 7.41% (0.07405) | 91.27th | v4 (v2025.03.14) |
| Apr 19, 2025 | 12.15% (0.12148) | 93.41th | v4 (v2025.03.14) |
| Apr 18, 2025 | 7.41% (0.07405) | 91.22th | v4 (v2025.03.14) |
| Apr 14, 2025 | 12.15% (0.12148) | 93.22th | v4 (v2025.03.14) |
| Apr 13, 2025 | 7.41% (0.07405) | 90.93th | v4 (v2025.03.14) |
| Apr 12, 2025 | 12.15% (0.12148) | 93.22th | v4 (v2025.03.14) |
| Apr 8, 2025 | 9.18% (0.09182) | 91.94th | v4 (v2025.03.14) |
| Apr 7, 2025 | 5.21% (0.05205) | 89.00th | v4 (v2025.03.14) |
| Apr 3, 2025 | 9.18% (0.09182) | 91.95th | v4 (v2025.03.14) |
| Mar 30, 2025 | 11.97% (0.11972) | 93.13th | v4 (v2025.03.14) |
| Mar 29, 2025 | 25.16% (0.25157) | 93.84th | v4 (v2025.03.14) |
| Mar 26, 2025 | 11.97% (0.11972) | 93.05th | v4 (v2025.03.14) |
| Mar 25, 2025 | 5.21% (0.05205) | 88.89th | v4 (v2025.03.14) |
| Mar 20, 2025 | 11.97% (0.11972) | 93.21th | v4 (v2025.03.14) |
| Mar 19, 2025 | 5.21% (0.05205) | 88.67th | v4 (v2025.03.14) |
| Mar 17, 2025 | 11.97% (0.11972) | 93.21th | v4 (v2025.03.14) |
| Mar 11, 2025 | 31.80% (0.31802) | 97.11th | v3 (v2023.03.01) |
| Dec 17, 2024 | 39.15% (0.39148) | 97.27th | v3 (v2023.03.01) |
| Jul 8, 2023 | 48.73% (0.48730) | 96.99th | v3 (v2023.03.01) |
| May 29, 2023 | 58.74% (0.58735) | 97.20th | v3 (v2023.03.01) |
| Apr 17, 2023 | 57.79% (0.57789) | 97.16th | v3 (v2023.03.01) |
| Mar 9, 2023 | 56.53% (0.56529) | 97.09th | v3 (v2023.03.01) |
| Mar 7, 2023 | 55.09% (0.55089) | 97.05th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.55% (0.04550) | 88.84th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.55% (0.04550) | 87.73th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.55% (0.04550) | 74.11th | v2 (v2022.01.01) |
| Feb 3, 2022 | 3.92% (0.03919) | 72.90th | v1 |
| Jan 6, 2022 | 3.92% (0.03919) | 72.66th | v1 |
| Sep 1, 2021 | 3.92% (0.03919) | 83.11th | v1 |
| Apr 14, 2021 | 3.92% (0.03919) | 0.00th | v1 |
References (10)
- http://www.securityfocus.com/bid/95371 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1037659 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:1296 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-5340 Vendor Advisory
- https://bugs.php.net/bug.php?id=73832 x_refsource_CONFIRMExploitIssue TrackingVDB EntryVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1412631 Issue Tracking
- https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12 x_refsource_CONFIRMPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-5340
- https://security.netapp.com/advisory/ntap-20180112-0001/ x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-5340
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/95371 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| http://www.securitytracker.com/id/1037659 | vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/errata/RHSA-2018:1296 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2017-5340 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=73832 | x_refsource_CONFIRMExploitIssue TrackingVDB EntryVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1412631 | Issue Tracking | |
| https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12 | x_refsource_CONFIRMPatchThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-5340 | ||
| https://security.netapp.com/advisory/ntap-20180112-0001/ | x_refsource_CONFIRMThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2017-5340 |
Change history (0)
No recorded changes yet.