php: memory corruption in phar_parse_tarfile caused by empty entry file name
Published Jun 9, 2015
5.0
MEDIUMCVSS 2.0
EPSS 21.26%
Description
The phar_parse_tarfile function in ext/phar/tar.c in PHP before 5.4.41, 5.5.x before 5.5.25, and 5.6.x before 5.6.9 does not verify that the first character of a filename is different from the \0 character, which allows remote attackers to cause a denial of service (integer underflow and memory corruption) via a crafted entry in a tar archive.
Affected products
No data.
Configuration 1
- 7.0
- 7.0
- 7.1
- 7.0
- 7.1
- 7.0
Configuration 3
- 6.0
- 7.0
Configuration 4
- ≤ 5.4.40
- 5.4.39
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.1
- 5.5.2
- 5.5.3
- 5.5.4
- 5.5.5
- 5.5.6
- 5.5.7
- 5.5.8
- 5.5.9
- 5.5.10
- 5.5.11
- 5.5.12
- 5.5.13
- 5.5.14
- 5.5.18
- 5.5.19
- 5.5.20
- 5.5.21
- 5.5.22
- 5.5.23
- 5.5.24
- 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.2
- 5.6.3
- 5.6.4
- 5.6.5
- 5.6.6
- 5.6.7
- 5.6.8
No data.
Red Hat Enterprise Linux 6
php-0:5.3.3-46.el6_6
Fixed · RHSA-2015:1218
Red Hat Enterprise Linux 7
php-0:5.4.16-36.ael7b_1
Fixed · RHSA-2015:1135
Red Hat Software Collections for Red Hat Enterprise Linux 6
php54-php-0:5.4.40-3.el6
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 6
php55-php-0:5.5.21-4.el6
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-php-0:5.6.5-7.el6
Fixed · RHSA-2015:1187
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
php54-php-0:5.4.40-3.el6
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
php55-php-0:5.5.21-4.el6
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
rh-php56-php-0:5.6.5-7.el6
Fixed · RHSA-2015:1187
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
php54-php-0:5.4.40-3.el6
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
php55-php-0:5.5.21-4.el6
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
rh-php56-php-0:5.6.5-7.el6
Fixed · RHSA-2015:1187
Red Hat Software Collections for Red Hat Enterprise Linux 7
php54-php-0:5.4.40-3.el7
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 7
php55-php-0:5.5.21-4.el7
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-php-0:5.6.5-7.el7
Fixed · RHSA-2015:1187
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
php54-php-0:5.4.40-3.el7
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
php55-php-0:5.5.21-4.el7
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
rh-php56-php-0:5.6.5-7.el7
Fixed · RHSA-2015:1187
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | php-0:5.3.3-46.el6_6 | Fixed | RHSA-2015:1218 |
| Red Hat Enterprise Linux 7 | php-0:5.4.16-36.ael7b_1 | Fixed | RHSA-2015:1135 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | php54-php-0:5.4.40-3.el6 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | php55-php-0:5.5.21-4.el6 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-php-0:5.6.5-7.el6 | Fixed | RHSA-2015:1187 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | php54-php-0:5.4.40-3.el6 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | php55-php-0:5.5.21-4.el6 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | rh-php56-php-0:5.6.5-7.el6 | Fixed | RHSA-2015:1187 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | php54-php-0:5.4.40-3.el6 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | php55-php-0:5.5.21-4.el6 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | rh-php56-php-0:5.6.5-7.el6 | Fixed | RHSA-2015:1187 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | php54-php-0:5.4.40-3.el7 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | php55-php-0:5.5.21-4.el7 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-php-0:5.6.5-7.el7 | Fixed | RHSA-2015:1187 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | php54-php-0:5.4.40-3.el7 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | php55-php-0:5.5.21-4.el7 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | rh-php56-php-0:5.6.5-7.el7 | Fixed | RHSA-2015:1187 |
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | 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.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:N/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 (42 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 21.26% (0.21256) | 97.53th | v5 (v2026.06.15) |
| Jun 15, 2026 | 20.86% (0.20859) | 97.22th | v5 (v2026.06.15) |
| May 24, 2026 | 26.93% (0.26929) | 96.44th | v4 (v2025.03.14) |
| Mar 4, 2026 | 42.03% (0.42026) | 97.36th | v4 (v2025.03.14) |
| Mar 1, 2026 | 14.10% (0.14098) | 94.25th | v4 (v2025.03.14) |
| Feb 4, 2026 | 42.03% (0.42026) | 97.33th | v4 (v2025.03.14) |
| Feb 1, 2026 | 14.10% (0.14098) | 94.20th | v4 (v2025.03.14) |
| Jan 4, 2026 | 42.03% (0.42026) | 97.30th | v4 (v2025.03.14) |
| Jan 1, 2026 | 14.10% (0.14098) | 94.18th | v4 (v2025.03.14) |
| Dec 28, 2025 | 42.03% (0.42026) | 97.30th | v4 (v2025.03.14) |
| Dec 27, 2025 | 30.24% (0.30242) | 96.54th | v4 (v2025.03.14) |
| Dec 4, 2025 | 42.03% (0.42026) | 97.28th | v4 (v2025.03.14) |
| Dec 1, 2025 | 14.10% (0.14098) | 94.13th | v4 (v2025.03.14) |
| Nov 4, 2025 | 42.03% (0.42026) | 97.27th | v4 (v2025.03.14) |
| Nov 1, 2025 | 14.10% (0.14098) | 94.10th | v4 (v2025.03.14) |
| Oct 28, 2025 | 42.03% (0.42026) | 97.26th | v4 (v2025.03.14) |
| Oct 27, 2025 | 30.24% (0.30242) | 96.48th | v4 (v2025.03.14) |
| Oct 4, 2025 | 42.03% (0.42026) | 97.34th | v4 (v2025.03.14) |
| Oct 1, 2025 | 14.10% (0.14098) | 94.15th | v4 (v2025.03.14) |
| Sep 11, 2025 | 30.24% (0.30242) | 96.54th | v4 (v2025.03.14) |
| Sep 4, 2025 | 25.30% (0.25300) | 96.01th | v4 (v2025.03.14) |
| Sep 1, 2025 | 6.13% (0.06130) | 90.50th | v4 (v2025.03.14) |
| Aug 4, 2025 | 25.30% (0.25300) | 95.97th | v4 (v2025.03.14) |
| Aug 1, 2025 | 6.13% (0.06130) | 90.49th | v4 (v2025.03.14) |
| Jul 30, 2025 | 25.30% (0.25300) | 95.97th | v4 (v2025.03.14) |
| Jul 13, 2025 | 36.37% (0.36369) | 96.93th | v4 (v2025.03.14) |
| Jul 4, 2025 | 32.89% (0.32894) | 96.67th | v4 (v2025.03.14) |
| Jul 1, 2025 | 8.32% (0.08322) | 91.88th | v4 (v2025.03.14) |
| Jun 4, 2025 | 42.03% (0.42026) | 97.25th | v4 (v2025.03.14) |
| Jun 1, 2025 | 14.10% (0.14098) | 94.01th | v4 (v2025.03.14) |
| May 20, 2025 | 42.03% (0.42026) | 97.25th | v4 (v2025.03.14) |
| May 6, 2025 | 32.02% (0.32025) | 96.53th | v4 (v2025.03.14) |
| May 4, 2025 | 37.05% (0.37047) | 96.91th | v4 (v2025.03.14) |
| May 1, 2025 | 11.80% (0.11805) | 93.34th | v4 (v2025.03.14) |
| Mar 17, 2025 | 36.47% (0.36473) | 96.76th | v4 (v2025.03.14) |
| Jan 19, 2025 | 49.16% (0.49159) | 97.62th | v3 (v2023.03.01) |
| Dec 17, 2024 | 51.93% (0.51928) | 97.67th | v3 (v2023.03.01) |
| Dec 3, 2024 | 69.98% (0.69984) | 98.13th | v3 (v2023.03.01) |
| Mar 7, 2023 | 74.00% (0.73998) | 97.52th | v3 (v2023.03.01) |
| Mar 6, 2023 | 3.78% (0.03779) | 85.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.78% (0.03779) | 84.01th | v2 (v2022.01.01) |
| Feb 4, 2022 | 3.78% (0.03779) | 67.21th | v2 (v2022.01.01) |
References (22)
- http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html vendor-advisoryx_refsource_APPLE
- http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158616.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158915.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2015-May/159031.html vendor-advisoryx_refsource_FEDORA
- http://lists.opensuse.org/opensuse-updates/2015-06/msg00002.html vendor-advisoryx_refsource_SUSE
- http://php.net/ChangeLog-5.php x_refsource_CONFIRMPatch
- http://rhn.redhat.com/errata/RHSA-2015-1135.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1186.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1187.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1218.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1219.html vendor-advisoryx_refsource_REDHAT
- http://www.debian.org/security/2015/dsa-3280 vendor-advisoryx_refsource_DEBIAN
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html x_refsource_CONFIRM
- http://www.securityfocus.com/bid/74700 vdb-entryx_refsource_BID
- http://www.securitytracker.com/id/1032433 vdb-entryx_refsource_SECTRACK
- https://access.redhat.com/security/cve/CVE-2015-4021 Vendor Advisory
- https://bugs.php.net/bug.php?id=69453 x_refsource_CONFIRMExploit
- https://bugzilla.redhat.com/show_bug.cgi?id=1223425 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2015-4021
- https://security.gentoo.org/glsa/201606-10 vendor-advisoryx_refsource_GENTOO
- https://support.apple.com/kb/HT205031 x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2015-4021
Change history (0)
No recorded changes yet.