CVE-2016-5773
Description
A use-after-free in PHP's zip extension allows remote code execution via crafted serialized data containing a ZipArchive object.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A use-after-free in PHP's zip extension allows remote code execution via crafted serialized data containing a ZipArchive object.
Vulnerability
The vulnerability resides in php_zip.c within the PHP zip extension. It arises from an improper interaction between the unserialize implementation and garbage collection when processing a ZipArchive object. This affects PHP versions before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8. The code path is reachable when an application unserializes user-supplied data containing a crafted ZipArchive object.
Exploitation
An attacker needs no authentication or special network position; they only need to supply malicious serialized data to a PHP application that calls unserialize() on untrusted input. The exploit sequence involves crafting serialized data that, when unserialized, triggers a use-after-free condition during garbage collection of the ZipArchive object.
Impact
Successful exploitation allows an attacker to execute arbitrary code with the privileges of the PHP process or cause a denial of service (application crash). This can lead to full compromise of the affected system, including data disclosure, modification, or destruction.
Mitigation
Fixed versions are 5.5.37, 5.6.23, and 7.0.8. Red Hat provided an updated package (rh-php56-php to version 5.6.25) in RHSA-2016-2750 [1]. Users should upgrade to a patched version immediately. No workaround is available for unpatched installations.
AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
17- osv-coords16 versionspkg:rpm/suse/imap&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1pkg:rpm/suse/imap&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP2pkg:rpm/suse/imap&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012pkg:rpm/suse/imap&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1pkg:rpm/suse/imap&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP2pkg:rpm/suse/imap&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP1pkg:rpm/suse/imap&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP2pkg:rpm/suse/php53&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/php53&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-LTSSpkg:rpm/suse/php53&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-TERADATApkg:rpm/suse/php53&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4pkg:rpm/suse/php53&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4pkg:rpm/suse/php53&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4pkg:rpm/suse/php5&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012pkg:rpm/suse/php5&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1pkg:rpm/suse/php5&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP2
< 2007e_suse-22.1+ 15 more
- (no CPE)range: < 2007e_suse-22.1
- (no CPE)range: < 2007e_suse-22.1
- (no CPE)range: < 2007e_suse-22.1
- (no CPE)range: < 2007e_suse-22.1
- (no CPE)range: < 2007e_suse-22.1
- (no CPE)range: < 2007e_suse-22.1
- (no CPE)range: < 2007e_suse-22.1
- (no CPE)range: < 5.3.17-112.20.1
- (no CPE)range: < 5.3.17-112.20.1
- (no CPE)range: < 5.3.17-112.20.1
- (no CPE)range: < 5.3.17-112.20.1
- (no CPE)range: < 5.3.17-112.20.1
- (no CPE)range: < 5.3.17-112.20.1
- (no CPE)range: < 5.5.14-86.2
- (no CPE)range: < 5.5.14-86.2
- (no CPE)range: < 5.5.14-86.2
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
12- php.net/ChangeLog-5.phpnvdPatchRelease Notes
- php.net/ChangeLog-7.phpnvdPatchRelease Notes
- bugs.php.net/bug.phpnvdExploitVendor Advisory
- www.openwall.com/lists/oss-security/2016/06/23/4nvdRelease Notes
- github.com/php/php-src/commit/f6aef68089221c5ea047d4a74224ee3deead99a6nvd
- lists.apple.com/archives/security-announce/2016/Sep/msg00006.htmlnvd
- lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.htmlnvd
- rhn.redhat.com/errata/RHSA-2016-2750.htmlnvd
- www.debian.org/security/2016/dsa-3618nvd
- www.securityfocus.com/bid/91397nvd
- h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplaynvd
- support.apple.com/HT207170nvd
News mentions
0No linked articles in our index yet.