CVE-2016-5771

spl_array.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 improperly interacts with the unserialize implementation and garbage collection…

published August 7, 2016

CVSS
—
EPSS
15%
Percentile
96.8
In the wild
Unconfirmed
What it is

⚠️ A crafty crafted serialized data could exploit this vulnerability. The SPL extension in PHP mishandles unserialization and garbage collection, leading to some unexpected surprises! Think of it like a restaurant that takes a customer's order without verifying the details. If the chef isn’t careful, they might prepare a dish that ends up making people sick — similarly, this flaw allows remote attackers to run their own code on your server or crash your application. An attacker could cause your PHP application to execute arbitrary code, leading to unauthorized actions or even a complete application crash. This could result in downtime, loss of sensitive data, or worse, damage to your reputation.

Put simply

Think of it like a restaurant that takes a customer's order without verifying the details. If the chef isn’t careful, they might prepare a dish that ends up making people sick — similarly, this flaw allows remote attackers to run their own code on your server or crash your application. The vulnerability in spl_array.c allows improper interaction between unserialize and garbage collection, making it susceptible to use-after-free issues caused by malicious serialized data.

What to do

An attacker could cause your PHP application to execute arbitrary code, leading to unauthorized actions or even a complete application crash. This could result in downtime, loss of sensitive data, or worse, damage to your reputation. Upgrade PHP to at least version 5.5.37 or 5.6.23, where this issue has been patched. Review any code that utilizes serialization to ensure it’s secure, and consider not unserializing data from untrusted sources. You've got this! With a little diligence, you can keep your applications safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.15484 · 96.8th percentile
Published
2016-08-07T10:00Z
EPSS history
Timeline
  • 07 AUG 10:00Z
    spl_array.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 improperly interacts with the unserialize implementation and garbage collection…
    cvelistv5