CVE-2017-5340

Zend/zend_hash.c in PHP before 7.0.15 and 7.1.x before 7.1.1 mishandles certain cases that require large array allocations, which allows remote attackers to…

published January 11, 2017

CVSS
—
EPSS
17%
Percentile
97.0
In the wild
Unconfirmed
What it is

🚨 An integer overflow in PHP could open the door to complete chaos! Remote attackers can exploit this to execute arbitrary code or trigger a denial of service on your server. 🔥 Think of it like a bakery receiving an order for an impossibly large cake. Instead of realizing the request is absurd, the staff keep working, mixing up ingredients without proper checks, until the entire kitchen explodes! If exploited, an attacker could run rampant within your system, executing any command they want or bringing your service to a screeching halt. This is not just a minor inconvenience but a potential disaster that could take your entire operation offline!

Put simply

Think of it like a bakery receiving an order for an impossibly large cake. Instead of realizing the request is absurd, the staff keep working, mixing up ingredients without proper checks, until the entire kitchen explodes! This vulnerability resides in zend_hash.c and affects PHP versions before 7.0.15 and 7.1.x before 7.1.1. It mishandles large array allocations, leading to integer overflow and uninitialized memory access, allowing the use of arbitrary destructor function pointers.

What to do

If exploited, an attacker could run rampant within your system, executing any command they want or bringing your service to a screeching halt. This is not just a minor inconvenience but a potential disaster that could take your entire operation offline! Upgrade your PHP version to 7.0.15 or 7.1.1 immediately to patch this vulnerability. Regularly audit your code to ensure that proper checks are in place for serialized data to mitigate similar issues in the future. You've got this! By taking these steps, you’ll keep your systems safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.16690 · 97.0th percentile
Published
2017-01-11T06:02Z
EPSS history
Timeline
  • 11 JAN 06:02Z
    Zend/zend_hash.c in PHP before 7.0.15 and 7.1.x before 7.1.1 mishandles certain cases that require large array allocations, which allows remote attackers to…
    cvelistv5