{"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-04-16T06:17:18.271213295Z","published":"2016-08-07T10:59:21.650Z","related":["SUSE-SU-2016:2975-1","SUSE-SU-2018:0806-1"],"references":[{"type":"WEB","url":"http://www.securityfocus.com/bid/91397"},{"type":"WEB","url":"https://support.apple.com/HT207170"},{"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":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731"},{"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":"0"},{"last_affected":"8648f76bac2f78391a1539253f21d62f53d83022"},{"introduced":"0"},{"last_affected":"326ab8b147485eeb1ca023807272bc1994bcd7de"},{"introduced":"0"},{"last_affected":"dae8ff251c0cdbbb0640df8277edef050fdb8854"},{"introduced":"0"},{"last_affected":"11d102ebbcbbd008a6e50ddc65849dfcfb568da4"},{"introduced":"0"},{"last_affected":"a964242f19ad029e57a62576f04e3cbab4795d03"},{"introduced":"0"},{"last_affected":"57e698d58263edeb5e15d78e0a968298f65a439f"},{"introduced":"0"},{"last_affected":"69797e81ed9917bb199d5cdc44fce6697493e1d2"},{"introduced":"0"},{"last_affected":"939409d36feb09b882d521ec9ceecce6999ab199"},{"introduced":"0"},{"last_affected":"f94c1df85fb004bb35091da5cebe730589a409b8"},{"introduced":"0"},{"last_affected":"df586243a3a8367d69f22990f1246dec4bbf437a"},{"introduced":"0"},{"last_affected":"c37265eacdd0186cb3b0bfeb0e0104c8563807ef"},{"introduced":"0"},{"last_affected":"b1ffeb3a7f320549cbb1873f85f0da18e9a5a6ce"},{"introduced":"0"},{"last_affected":"ae15e636e2b213bf748fa0b94ca95ac96d6eae3a"},{"introduced":"0"},{"last_affected":"effcb5a97358f01714bd833c8063a4a7abe9dff1"},{"introduced":"0"},{"last_affected":"7603abbc5186e276a5a68c6ef28d1728e4a37ec4"},{"introduced":"0"},{"last_affected":"2610d63a482e708ba28cf8e056f47412445a6c53"},{"introduced":"0"},{"last_affected":"c9e5f38e5b62fb6e5b60fe0759f51ab137ae8fd6"},{"introduced":"0"},{"last_affected":"d8e4dcdfd617f1c1c942db63527d1d3838ede7c4"},{"introduced":"0"},{"last_affected":"f2722bdbc60403300a033ee8091a2da31f7c90c1"},{"introduced":"0"},{"last_affected":"f5751638dbd77136ce5c90e7d8bd090aa655c2a3"},{"introduced":"0"},{"last_affected":"2f0d051bfd43315bedfff2de3137abd2c67741a6"},{"introduced":"0"},{"last_affected":"8eff5afaced13c9c30337c11da4920fc1d2394ce"},{"introduced":"0"},{"last_affected":"cb80afc366df74ec7ab701a853407a69cc148f5d"},{"introduced":"0"},{"last_affected":"e808a7687ecd82ea18d6a83cb1f003a84831c0e2"},{"introduced":"0"},{"last_affected":"62cf13d3aa08b15107b02a0505a4f30142fa37b4"},{"introduced":"0"},{"last_affected":"2c9fcbabe8f7780c8566d9baddb5aae36fdce84b"},{"introduced":"0"},{"last_affected":"e197c9b13991e569179a709574187f9e455efc0f"},{"introduced":"0"},{"last_affected":"50a8b9527a2317ba861ad0b660ff981f69941cfd"},{"introduced":"0"},{"last_affected":"23bf3f418817f80991071ec413a0f1b97481cb88"},{"introduced":"0"},{"last_affected":"961e562d1b7e7d67c7370022a167938641d607ea"},{"introduced":"0"},{"last_affected":"60fffd296abce5fc071f3c173c25a2696cf683c6"},{"introduced":"0"},{"last_affected":"4054ec69da7631046f19d54ab06f09728a208b8b"},{"introduced":"0"},{"last_affected":"038c63cdea0472176ec2fdb162cfbd96e8c5f83e"},{"introduced":"0"},{"last_affected":"4e1b8701573698f56e12672e4991d7e6239138d2"},{"introduced":"0"},{"last_affected":"e09845d32614a19188632f410316478fbb440ebd"},{"introduced":"0"},{"last_affected":"249a8fd9ae2324c84ede7ecfca6f6026e6d87df6"},{"introduced":"0"},{"last_affected":"734a5fca2c4731e34eca551f28be9a10ffc3f3c9"},{"introduced":"0"},{"last_affected":"fb59213fc461f079bc218abf44cb5e2b4db2182c"},{"fixed":"f6aef68089221c5ea047d4a74224ee3deead99a6"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"5.5.36"},{"introduced":"0"},{"last_affected":"5.6.0-alpha1"},{"introduced":"0"},{"last_affected":"5.6.0-alpha2"},{"introduced":"0"},{"last_affected":"5.6.0-alpha3"},{"introduced":"0"},{"last_affected":"5.6.0-beta1"},{"introduced":"0"},{"last_affected":"5.6.0-beta2"},{"introduced":"0"},{"last_affected":"5.6.0-beta3"},{"introduced":"0"},{"last_affected":"5.6.0-beta4"},{"introduced":"0"},{"last_affected":"5.6.1"},{"introduced":"0"},{"last_affected":"5.6.2"},{"introduced":"0"},{"last_affected":"5.6.3"},{"introduced":"0"},{"last_affected":"5.6.4"},{"introduced":"0"},{"last_affected":"5.6.5"},{"introduced":"0"},{"last_affected":"5.6.6"},{"introduced":"0"},{"last_affected":"5.6.7"},{"introduced":"0"},{"last_affected":"5.6.8"},{"introduced":"0"},{"last_affected":"5.6.9"},{"introduced":"0"},{"last_affected":"5.6.10"},{"introduced":"0"},{"last_affected":"5.6.11"},{"introduced":"0"},{"last_affected":"5.6.12"},{"introduced":"0"},{"last_affected":"5.6.13"},{"introduced":"0"},{"last_affected":"5.6.14"},{"introduced":"0"},{"last_affected":"5.6.15"},{"introduced":"0"},{"last_affected":"5.6.16"},{"introduced":"0"},{"last_affected":"5.6.17"},{"introduced":"0"},{"last_affected":"5.6.18"},{"introduced":"0"},{"last_affected":"5.6.19"},{"introduced":"0"},{"last_affected":"5.6.20"},{"introduced":"0"},{"last_affected":"5.6.21"},{"introduced":"0"},{"last_affected":"5.6.22"},{"introduced":"0"},{"last_affected":"5.6.23"},{"introduced":"0"},{"last_affected":"7.0.0"},{"introduced":"0"},{"last_affected":"7.0.1"},{"introduced":"0"},{"last_affected":"7.0.2"},{"introduced":"0"},{"last_affected":"7.0.3"},{"introduced":"0"},{"last_affected":"7.0.4"},{"introduced":"0"},{"last_affected":"7.0.5"},{"introduced":"0"},{"last_affected":"7.0.6"},{"introduced":"0"},{"last_affected":"7.0.7"}]}}],"versions":["POST_64BIT_BRANCH_MERGE","POST_AST_MERGE","POST_PHP7_NSAPI_REMOVAL","POST_PHP7_REMOVALS","POST_PHPNG_MERGE","PRE_64BIT_BRANCH_MERGE","PRE_AST_MERGE","PRE_PHP7_EREG_MYSQL_REMOVALS","PRE_PHP7_NSAPI_REMOVAL","PRE_PHP7_REMOVALS","php-5.5.36","php-5.6.0alpha1","php-5.6.0alpha2","php-5.6.0alpha3","php-5.6.0beta1","php-5.6.0beta2","php-5.6.0beta3","php-5.6.0beta4","php-5.6.1","php-5.6.10","php-5.6.10RC1","php-5.6.11","php-5.6.11RC1","php-5.6.12","php-5.6.12RC1","php-5.6.13","php-5.6.13RC1","php-5.6.14","php-5.6.14RC1","php-5.6.15","php-5.6.15RC1","php-5.6.16","php-5.6.16RC1","php-5.6.17","php-5.6.17RC1","php-5.6.18","php-5.6.19","php-5.6.19RC1","php-5.6.1RC1","php-5.6.2","php-5.6.20","php-5.6.20RC1","php-5.6.21","php-5.6.21RC1","php-5.6.22","php-5.6.22RC1","php-5.6.23","php-5.6.23RC1","php-5.6.3","php-5.6.3RC1","php-5.6.4","php-5.6.4RC1","php-5.6.5","php-5.6.5RC1","php-5.6.6","php-5.6.6RC1","php-5.6.7","php-5.6.7RC1","php-5.6.8","php-5.6.8RC1","php-5.6.9","php-5.6.9RC1","php-7.0.0","php-7.0.0RC1","php-7.0.0RC2","php-7.0.0RC3","php-7.0.0RC4","php-7.0.0RC5","php-7.0.0RC6","php-7.0.0RC7","php-7.0.0RC8","php-7.0.0alpha1","php-7.0.0alpha2","php-7.0.0beta1","php-7.0.0beta2","php-7.0.0beta3","php-7.0.1","php-7.0.1RC1","php-7.0.2","php-7.0.2RC1","php-7.0.3","php-7.0.4","php-7.0.4RC1","php-7.0.5","php-7.0.5RC1","php-7.0.6","php-7.0.6RC1","php-7.0.7","php-7.0.7RC1"],"database_specific":{"vanir_signatures_modified":"2026-04-11T04:02:23Z","vanir_signatures":[{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["336596916085203698350057541604668175738","312605460516307546358655968823750311776","202289105112210415793622660399889669894","2659789645517324669066205643089415753","44597108971789535196204357436920634856","23647072536535761014923467067741495308"]},"source":"https://github.com/php/php-src/commit/f6aef68089221c5ea047d4a74224ee3deead99a6","signature_version":"v1","signature_type":"Line","id":"CVE-2016-5773-0450c870","target":{"file":"ext/zip/php_zip.c"}},{"deprecated":false,"target":{"file":"ext/zip/php_zip.c","function":"PHP_MINIT_FUNCTION"},"source":"https://github.com/php/php-src/commit/f6aef68089221c5ea047d4a74224ee3deead99a6","signature_version":"v1","signature_type":"Function","id":"CVE-2016-5773-76d74a1e","digest":{"length":3706,"function_hash":"119329149946522731800414006082504987445"}}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5773.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"5.6.0-alpha4"}]},{"events":[{"introduced":"0"},{"last_affected":"5.6.0-alpha5"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}