CVE-2015-8616
Description
Use-after-free in PHP 7.x Collator::sortWithSortKeys allows remote attackers to cause denial of service or possibly execute arbitrary code.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Use-after-free in PHP 7.x Collator::sortWithSortKeys allows remote attackers to cause denial of service or possibly execute arbitrary code.
Vulnerability
A use-after-free vulnerability exists in the Collator::sortWithSortKeys function in ext/intl/collator/collator_sort.c in PHP 7.x versions before 7.0.1. The function stores pointers to array elements (hashData) in a buffer, then destroys the original array, freeing those elements. Subsequently, the dangling pointers are inserted into a newly initialized array, leading to a use-after-free condition [2].
Exploitation
An attacker can trigger this vulnerability by passing a crafted array to the Collator::sortWithSortKeys method. No authentication or special privileges are required; the attacker only needs the ability to call the function with malicious input. The bug report includes a proof-of-concept using an array of 0xbb elements that results in a null pointer dereference [2].
Impact
Successful exploitation causes a use-after-free, leading to a denial of service (application crash). The official description also notes the possibility of "unspecified other impact," which could include arbitrary code execution depending on memory layout [2].
Mitigation
The vulnerability is fixed in PHP 7.0.1, released shortly after the bug report was closed on 2015-12-22 [2]. Users should upgrade to PHP 7.0.1 or later. No workaround is available.
AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2- bugs.php.net/bug.phpnvdExploit
- php.net/ChangeLog-7.phpnvdVendor Advisory
News mentions
0No linked articles in our index yet.