php: Off-by-one error in phar_parse_pharfile when loading crafted phar archive
Published Jan 24, 2017
9.8
CRITICALCVSS 3.1
EPSS 7.38%
Description
Off-by-one error in the phar_parse_pharfile function in ext/phar/phar.c in PHP before 5.6.30 and 7.0.x before 7.0.15 allows remote attackers to cause a denial of service (memory corruption) or possibly execute arbitrary code via a crafted PHAR archive with an alias mismatch.
Affected products
No data.
Configuration 1
Configuration 2
- n/a
Configuration 3
- 8.0
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
Not affected
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 | Not affected | 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:L/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 | 7.38% (0.07381) | 94.24th | v5 (v2026.06.15) |
| Jun 15, 2026 | 7.32% (0.07322) | 93.57th | v5 (v2026.06.15) |
| May 27, 2026 | 5.85% (0.05853) | 90.67th | v4 (v2025.03.14) |
| Jan 18, 2026 | 4.82% (0.04824) | 89.20th | v4 (v2025.03.14) |
| Jan 16, 2026 | 6.25% (0.06249) | 90.62th | v4 (v2025.03.14) |
| Dec 28, 2025 | 3.77% (0.03771) | 87.69th | v4 (v2025.03.14) |
| Dec 27, 2025 | 2.52% (0.02523) | 85.06th | v4 (v2025.03.14) |
| Oct 28, 2025 | 3.77% (0.03771) | 87.52th | v4 (v2025.03.14) |
| Oct 27, 2025 | 2.52% (0.02523) | 84.90th | v4 (v2025.03.14) |
| Oct 1, 2025 | 3.77% (0.03771) | 87.62th | v4 (v2025.03.14) |
| Jul 30, 2025 | 2.52% (0.02523) | 84.82th | v4 (v2025.03.14) |
| Jun 21, 2025 | 3.77% (0.03771) | 87.54th | v4 (v2025.03.14) |
| May 30, 2025 | 10.12% (0.10118) | 92.68th | v4 (v2025.03.14) |
| Apr 12, 2025 | 7.25% (0.07245) | 90.83th | v4 (v2025.03.14) |
| Mar 30, 2025 | 10.12% (0.10118) | 92.37th | v4 (v2025.03.14) |
| Mar 29, 2025 | 21.74% (0.21740) | 93.07th | v4 (v2025.03.14) |
| Mar 17, 2025 | 10.12% (0.10118) | 92.52th | v4 (v2025.03.14) |
| Dec 12, 2024 | 2.38% (0.02377) | 90.24th | v3 (v2023.03.01) |
| Apr 26, 2024 | 2.38% (0.02377) | 89.71th | v3 (v2023.03.01) |
| Apr 30, 2023 | 2.07% (0.02072) | 87.39th | v3 (v2023.03.01) |
| Mar 7, 2023 | 2.91% (0.02909) | 89.21th | v3 (v2023.03.01) |
| Mar 6, 2023 | 6.70% (0.06698) | 91.56th | v2 (v2022.01.01) |
| Apr 1, 2022 | 6.70% (0.06698) | 90.75th | v2 (v2022.01.01) |
| Feb 4, 2022 | 6.70% (0.06698) | 78.74th | v2 (v2022.01.01) |
References (15)
- http://php.net/ChangeLog-5.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://php.net/ChangeLog-7.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://www.debian.org/security/2017/dsa-3783 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.securityfocus.com/bid/95783 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1037659 vdb-entryx_refsource_SECTRACKBroken LinkThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:1296 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2016-10160 Vendor Advisory
- https://bugs.php.net/bug.php?id=73768 x_refsource_CONFIRMIssue TrackingPatchVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1419018 Issue Tracking
- https://github.com/php/php-src/commit/b28b8b2fee6dfa6fcd13305c581bb835689ac3be x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-10160
- https://security.gentoo.org/glsa/201702-29 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://security.netapp.com/advisory/ntap-20180112-0001/ x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2016-10160
- https://www.tenable.com/security/tns-2017-04 x_refsource_CONFIRMThird Party Advisory
Change history (0)
No recorded changes yet.