CVE-2016-5773: Use After Free
phpzip.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 garbage collection, which allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free and application crash) via crafted serialized data containing a ZipArchive object.
Other sources
Fixed bug (ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize). (CVE-2016-5773)
— PHP
Affected Software
Remediation
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2016-5773?
CVE-2016-5773 is considered critical as it allows remote attackers to execute arbitrary code or cause a denial of service.
How do I fix CVE-2016-5773?
To mitigate CVE-2016-5773, upgrade PHP to version 5.5.37, 5.6.23, or 7.0.8 or later.
Which versions of PHP are affected by CVE-2016-5773?
CVE-2016-5773 affects PHP versions before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8.
What types of attacks can CVE-2016-5773 enable?
CVE-2016-5773 can enable attackers to execute arbitrary code or trigger an application crash.
Is there a workaround for CVE-2016-5773?
There are no specific workarounds; the best course of action is to update to a patched version of PHP.