CVE-2017-12932

ext/standard/var_unserializer.re in PHP 7.0.x through 7.0.22 and 7.1.x through 7.1.8 is prone to a heap use after free while unserializing untrusted data…

published August 18, 2017

CVSS
—
EPSS
7%
Percentile
94.4
In the wild
Unconfirmed
What it is

⚠️ It’s a heap use-after-free in PHP! When unserializing untrusted data, a tiny oversight can cause a mighty mess. 🔍 Think of it like a restaurant that empties its trash without checking the old receipts left on the floor. If a server picks up the wrong piece of paper, it could lead to serving up the wrong dish—trust me, nobody wants a surprise! If an attacker manages to exploit this vulnerability, the integrity of your PHP application could be compromised. This could lead to unpredictable behavior, data corruption, or even a complete application failure—like a recipe gone wrong in the worst way possible!

Put simply

Think of it like a restaurant that empties its trash without checking the old receipts left on the floor. If a server picks up the wrong piece of paper, it could lead to serving up the wrong dish—trust me, nobody wants a surprise! This vulnerability in PHP versions 7.0.x through 7.0.22 and 7.1.x through 7.1.8 arises from improper management of memory while unserializing data, particularly due to misconfigured array sizes in the hash API. This leads to a potential use-after-free condition that could be manipulated by an attacker.

What to do

If an attacker manages to exploit this vulnerability, the integrity of your PHP application could be compromised. This could lead to unpredictable behavior, data corruption, or even a complete application failure—like a recipe gone wrong in the worst way possible! To mitigate this risk, ensure you upgrade PHP to version 7.0.23 or 7.1.9 or later. Additionally, avoid unserializing untrusted data and consider using more secure alternatives for data handling. You've got this! Stay proactive with your PHP security, and you'll keep your apps running smooth! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.07420 · 94.4th percentile
Published
2017-08-18T03:00Z
EPSS history
Timeline
  • 18 AUG 03:00Z
    ext/standard/var_unserializer.re in PHP 7.0.x through 7.0.22 and 7.1.x through 7.1.8 is prone to a heap use after free while unserializing untrusted data…
    cvelistv5