{"id":"CVE-2016-5773","details":"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 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.","modified":"2026-10-20T13:15:25.352138583Z","published":"2016-08-07T10:59:21.650Z","related":["SUSE-SU-2016:2975-1","SUSE-SU-2018:0806-1"],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:*"],"extracted_events":[{"source":"CPE_STRING","range":[{"introduced":"5.6.0-alpha4"},{"last_affected":"5.6.0-alpha4"},{"introduced":"5.6.0-alpha5"},{"last_affected":"5.6.0-alpha5"}]}],"vendor_product":"php:php"}]},"references":[{"type":"WEB","url":"http://lists.apple.com/archives/security-announce/2016/Sep/msg00006.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.html"},{"type":"WEB","url":"http://www.securityfocus.com/bid/91397"},{"type":"WEB","url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731"},{"type":"WEB","url":"https://support.apple.com/HT207170"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html"},{"type":"ADVISORY","url":"http://www.debian.org/security/2016/dsa-3618"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2016/06/23/4"},{"type":"FIX","url":"http://github.com/php/php-src/commit/f6aef68089221c5ea047d4a74224ee3deead99a6?w=1"},{"type":"FIX","url":"http://php.net/ChangeLog-5.php"},{"type":"FIX","url":"http://php.net/ChangeLog-7.php"},{"type":"EVIDENCE","url":"https://bugs.php.net/bug.php?id=72434"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"0"},{"last_affected":"527e8e73c97e282b1efde24cfb95dc0942e0ad59"},{"introduced":"8648f76bac2f78391a1539253f21d62f53d83022"},{"last_affected":"fb59213fc461f079bc218abf44cb5e2b4db2182c"},{"fixed":"f6aef68089221c5ea047d4a74224ee3deead99a6"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"last_affected":"5.5.36"}]},{"range":[{"introduced":"5.6.0-alpha1"},{"last_affected":"5.6.0-alpha1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:*"},{"range":[{"introduced":"5.6.0-alpha2"},{"last_affected":"5.6.0-alpha2"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:*","range":[{"introduced":"5.6.0-alpha3"},{"last_affected":"5.6.0-alpha3"}],"source":"CPE_STRING"},{"range":[{"introduced":"5.6.0-beta1"},{"last_affected":"5.6.0-beta1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:*"},{"range":[{"introduced":"5.6.0-beta2"},{"last_affected":"5.6.0-beta2"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:*"},{"range":[{"introduced":"5.6.0-beta3"},{"last_affected":"5.6.0-beta3"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:*"},{"range":[{"introduced":"5.6.0-beta4"},{"last_affected":"5.6.0-beta4"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:*"},{"range":[{"introduced":"5.6.1"},{"last_affected":"5.6.1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.1:*:*:*:*:*:*:*"},{"range":[{"introduced":"5.6.2"},{"last_affected":"5.6.2"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:*"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:*","range":[{"introduced":"5.6.3"},{"last_affected":"5.6.3"}]},{"range":[{"introduced":"5.6.4"},{"last_affected":"5.6.4"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:*","range":[{"introduced":"5.6.5"},{"last_affected":"5.6.5"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:*","range":[{"introduced":"5.6.6"},{"last_affected":"5.6.6"}]},{"cpe":"cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:*","range":[{"introduced":"5.6.7"},{"last_affected":"5.6.7"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:*","range":[{"introduced":"5.6.8"},{"last_affected":"5.6.8"}]},{"cpe":"cpe:2.3:a:php:php:5.6.9:*:*:*:*:*:*:*","range":[{"introduced":"5.6.9"},{"last_affected":"5.6.9"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.10:*:*:*:*:*:*:*","range":[{"introduced":"5.6.10"},{"last_affected":"5.6.10"}]},{"range":[{"introduced":"5.6.11"},{"last_affected":"5.6.11"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.11:*:*:*:*:*:*:*"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.12:*:*:*:*:*:*:*","range":[{"introduced":"5.6.12"},{"last_affected":"5.6.12"}]},{"cpe":"cpe:2.3:a:php:php:5.6.13:*:*:*:*:*:*:*","range":[{"introduced":"5.6.13"},{"last_affected":"5.6.13"}],"source":"CPE_STRING"},{"range":[{"introduced":"5.6.14"},{"last_affected":"5.6.14"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.14:*:*:*:*:*:*:*"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.15:*:*:*:*:*:*:*","range":[{"introduced":"5.6.15"},{"last_affected":"5.6.15"}]},{"cpe":"cpe:2.3:a:php:php:5.6.16:*:*:*:*:*:*:*","range":[{"introduced":"5.6.16"},{"last_affected":"5.6.16"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:php:php:5.6.17:*:*:*:*:*:*:*","range":[{"introduced":"5.6.17"},{"last_affected":"5.6.17"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.18:*:*:*:*:*:*:*","range":[{"introduced":"5.6.18"},{"last_affected":"5.6.18"}]},{"range":[{"introduced":"5.6.19"},{"last_affected":"5.6.19"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.19:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:php:php:5.6.20:*:*:*:*:*:*:*","range":[{"introduced":"5.6.20"},{"last_affected":"5.6.20"}],"source":"CPE_STRING"},{"range":[{"introduced":"5.6.21"},{"last_affected":"5.6.21"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.21:*:*:*:*:*:*:*"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.22:*:*:*:*:*:*:*","range":[{"introduced":"5.6.22"},{"last_affected":"5.6.22"}]},{"range":[{"introduced":"5.6.23"},{"last_affected":"5.6.23"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:5.6.23:*:*:*:*:*:*:*"},{"range":[{"introduced":"7.0.0"},{"last_affected":"7.0.0"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:*"},{"range":[{"introduced":"7.0.1"},{"last_affected":"7.0.1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*"},{"range":[{"introduced":"7.0.2"},{"last_affected":"7.0.2"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:*"},{"range":[{"introduced":"7.0.3"},{"last_affected":"7.0.3"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:*"},{"range":[{"introduced":"7.0.4"},{"last_affected":"7.0.4"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:*","range":[{"introduced":"7.0.5"},{"last_affected":"7.0.5"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:*","range":[{"introduced":"7.0.6"},{"last_affected":"7.0.6"}],"source":"CPE_STRING"},{"source":"CPE_STRING","cpe":"cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:*","range":[{"introduced":"7.0.7"},{"last_affected":"7.0.7"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"f6aef68089221c5ea047d4a74224ee3deead99a6"}]}]}}],"versions":["5.6.0-alpha1","5.6.0-alpha2","5.6.0-alpha3","5.6.0-beta1","5.6.0-beta2","5.6.0-beta3","5.6.0-beta4","5.6.1","5.6.10","5.6.11","5.6.12","5.6.13","5.6.14","5.6.15","5.6.16","5.6.17","5.6.18","5.6.19","5.6.2","5.6.20","5.6.21","5.6.22","5.6.23","5.6.3","5.6.4","5.6.5","5.6.6","5.6.7","5.6.8","5.6.9","7.0.0","7.0.1","7.0.2","7.0.3","7.0.4","7.0.5","7.0.6","7.0.7","php-5.5.36","php-7.0.7","php-7.0.7RC1","POST_PHP7_NSAPI_REMOVAL","PRE_PHP7_NSAPI_REMOVAL","PRE_PHP7_EREG_MYSQL_REMOVALS","PRE_PHP7_REMOVALS","POST_PHP7_REMOVALS","POST_AST_MERGE","PRE_AST_MERGE","POST_64BIT_BRANCH_MERGE","PRE_64BIT_BRANCH_MERGE","POST_PHPNG_MERGE"],"database_specific":{"vanir_signatures":[{"id":"CVE-2016-5773-0450c870","signature_type":"Line","signature_version":"v1","source":"https://github.com/php/php-src/commit/f6aef68089221c5ea047d4a74224ee3deead99a6","target":{"file":"ext/zip/php_zip.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["336596916085203698350057541604668175738","312605460516307546358655968823750311776","202289105112210415793622660399889669894","2659789645517324669066205643089415753","44597108971789535196204357436920634856","23647072536535761014923467067741495308"]}},{"target":{"function":"PHP_MINIT_FUNCTION","file":"ext/zip/php_zip.c"},"deprecated":false,"digest":{"function_hash":"119329149946522731800414006082504987445","length":3706},"id":"CVE-2016-5773-76d74a1e","signature_type":"Function","signature_version":"v1","source":"https://github.com/php/php-src/commit/f6aef68089221c5ea047d4a74224ee3deead99a6"}],"vanir_signatures_modified":"2026-10-20T13:15:25Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5773.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}