CVE-2016-5773

php_zip.c in the zip extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 improperly interacts with the unserialize implementation and…

published August 7, 2016

CVSS
—
EPSS
9%
Percentile
95.3
In the wild
Unconfirmed
What it is

⚠️ A crafty piece of serialized data could lead to arbitrary code execution! It’s like a hidden ingredient in your favorite recipe that turns a delightful dish into a disaster. 🍽️ Think of it like a careless chef who mistakenly adds an ingredient to the wrong pot — when it’s cooked, it could cause the whole meal to flop! In this case, the interaction between unserialize and garbage collection is that sneaky ingredient that can wreak havoc. An attacker could exploit this vulnerability to execute arbitrary code, potentially taking complete control of the server or causing it to crash, denying service to legitimate users. Imagine a kitchen where the chef accidentally burns the food and shuts down dinner service entirely because of one wrong addition!

Put simply

Think of it like a careless chef who mistakenly adds an ingredient to the wrong pot — when it’s cooked, it could cause the whole meal to flop! In this case, the interaction between unserialize and garbage collection is that sneaky ingredient that can wreak havoc. The problem lies in the improper handling of the ZipArchive object when it interacts with the unserialize function and the garbage collector, leading to a use-after-free scenario that can be exploited to run malicious code or crash the application.

What to do

An attacker could exploit this vulnerability to execute arbitrary code, potentially taking complete control of the server or causing it to crash, denying service to legitimate users. Imagine a kitchen where the chef accidentally burns the food and shuts down dinner service entirely because of one wrong addition! Upgrade your PHP version to at least 5.5.37, 5.6.23, or 7.0.8 to patch this vulnerability. Regularly audit and sanitize any serialized data before processing it to ensure malicious payloads don’t slip through. 🛡️ This is fixable! Keep your systems updated and follow these steps to stay secure. You've got this! 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.09260 · 95.3th percentile
Published
2016-08-07T10:00Z
EPSS history
Timeline
  • 07 AUG 10:00Z
    php_zip.c in the zip extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 improperly interacts with the unserialize implementation and…
    cvelistv5