CVE-2015-6831: Use After Free
Multiple use-after-free vulnerabilities in SPL in PHP before 5.4.44, 5.5.x before 5.5.28, and 5.6.x before 5.6.12 allow remote attackers to execute arbitrary code via vectors involving (1) ArrayObject, (2) SplObjectStorage, and (3) SplDoublyLinkedList, which are mishandled during unserialization.
Other sources
Use-after-free vulnerabilities that can potentially lead to remote code execution were reported in PHP: https://bugs.php.net/bug.php?id=70166 https://bugs.php.net/bug.php?id=70168 https://bugs.php.net/bug.php?id=70169
CVE assignment: http://seclists.org/oss-sec/2015/q3/523
Upstream fixes:
(Bug #70166): http://git.php.net/?p=php-src.git;a=commit;h=7381b6accc5559b2de039af3a22f6ec1003b03b3 (Bug #70168): http://git.php.net/?p=php-src.git;a=commit;h=c2e197e4efc663ca55f393bf0e799848842286f3 ( crash" href="showbug.cgi?id=70169">Bug #70169): http://git.php.net/?p=php-src.git;a=commit;h=863bf294feb9ad425eadb94f288bc7f18673089d
— Red Hat
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.6.12 - Upgrade
Upgrade
redhat/PHPto a version that resolves this vulnerability.Fixed in 5.5.28 - Upgrade
Upgrade
redhat/PHPto a version that resolves this vulnerability.Fixed in 5.4.44 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 5.4.44 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 5.5.28 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 5.6.12
Event History
Frequently Asked Questions
What is the severity of CVE-2015-6831?
CVE-2015-6831 is categorized as a critical vulnerability due to its potential to allow remote code execution.
How do I fix CVE-2015-6831?
To fix CVE-2015-6831, update PHP to version 5.4.44 or later, 5.5.28 or later, or 5.6.12 or later.
What types of objects are affected by CVE-2015-6831?
CVE-2015-6831 affects ArrayObject, SplObjectStorage, and SplDoublyLinkedList in PHP.
Can CVE-2015-6831 be exploited remotely?
Yes, CVE-2015-6831 can be exploited remotely by attackers through vulnerabilities in the unserialization process.
When was CVE-2015-6831 disclosed?
CVE-2015-6831 was disclosed in August 2015.