CVE-2014-4670: Use After Free
It was reported [1] that PHP incorrectly handled certain SPL Iterators. A local attacker, in particular shared hosting environments relying on PHP features such as openbasedir, safemode, disablefunctions, and similar), could use this flaw to cause PHP to crash, resulting in a denial of service.
This has been fixed upstream [2].
[1] https://bugs.php.net/bug.php?id=67538 [2] http://git.php.net/?p=php-src.git;a=commit;h=df78c48354f376cf419d7a97f88ca07d572f00fb
Other sources
Use-after-free vulnerability in ext/spl/spldllist.c in the SPL component in PHP through 5.5.14 allows context-dependent attackers to cause a denial of service or possibly have unspecified other impact via crafted iterator usage within applications in certain web-hosting environments.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 5.5.15 - Upgrade
Upgrade
debian/php5to a version that resolves this vulnerability.Fixed in 5.4.4-14+deb7u13Fixed in 5.6.0~rc3+dfsg-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch df78c48354f376cf419d7a97f88ca07d572f00fb
Event History
Frequently Asked Questions
What is the severity of CVE-2014-4670?
CVE-2014-4670 has been classified as a high severity vulnerability due to its potential to cause denial of service.
How do I fix CVE-2014-4670?
To fix CVE-2014-4670, upgrade your PHP installation to version 5.5.15 or later.
What versions of PHP are affected by CVE-2014-4670?
CVE-2014-4670 affects PHP versions from 5.5.0 up to and including 5.5.14.
What types of attacks are possible due to CVE-2014-4670?
CVE-2014-4670 can allow context-dependent attackers to cause denial of service through crafted iterator usage.
Is there a workaround for CVE-2014-4670?
There are no officially recommended workarounds for CVE-2014-4670; upgrading PHP is the safest option.