What’s Vulnerable › Vulnerabilities
CVE-2015-2301
- Severity: high (CVSS 7.5 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 14.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2015-03-30 · updated 2026-06-17
- Weakness: CWE-416
Description
Use-after-free vulnerability in the phar_rename_archive function in phar_object.c in PHP before 5.5.22 and 5.6.x before 5.6.6 allows remote attackers to cause a denial of service or possibly have unspecified other impact via vectors that trigger an attempted renaming of a Phar archive to the name of an existing file.
Affected products
- macOS: through 10.10.4
- Canonical Ubuntu Linux: 10.04, 12.04, 14.04, 14.10
- Debian Linux: 7.0
- Opensuse: 13.1, 13.2
- PHP: from 5.4.0 before 5.4.40; from 5.5.0 before 5.5.22; from 5.6.0 before 5.6.6 — fixed in 5.4.40, 5.5.22, 5.6.6
- RedHat Enterprise Linux Desktop: 7.0
- RedHat Enterprise Linux Hpc Node: 7.0
- RedHat Enterprise Linux Hpc Node Eus: 7.1
- RedHat Enterprise Linux Server: 7.0
- RedHat Enterprise Linux Server Eus: 7.1
- RedHat Enterprise Linux Workstation: 7.0
How to fix
Upgrade to a fixed version: PHP 5.4.40, 5.5.22, 5.6.6. Check the vendor advisory for mitigations.
References
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=b2cf3f064b8f5efef89bb084521b61318c71781b
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- http://lists.opensuse.org/opensuse-security-announce/2015-05/msg00005.html
- http://lists.opensuse.org/opensuse-updates/2015-04/msg00002.html
- http://marc.info/?l=bugtraq&m=143403519711434&w=2
- http://marc.info/?l=bugtraq&m=143748090628601&w=2
- http://marc.info/?l=bugtraq&m=144050155601375&w=2
- http://openwall.com/lists/oss-security/2015/03/15/6
- http://php.net/ChangeLog-5.php
- http://rhn.redhat.com/errata/RHSA-2015-1053.html
- http://rhn.redhat.com/errata/RHSA-2015-1066.html
- http://rhn.redhat.com/errata/RHSA-2015-1135.html
Get alerted when CVE-2015-2301 or the next vulnerability affects your stack