{"id":"CVE-2016-6289","details":"Integer overflow in the virtual_file_ex function in TSRM/tsrm_virtual_cwd.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted extract operation on a ZIP archive.","modified":"2026-07-08T05:49:11.366405666Z","published":"2016-07-25T14:59:01.467Z","related":["SUSE-SU-2016:2080-1","SUSE-SU-2016:2210-1","SUSE-SU-2016:2328-1","SUSE-SU-2016:2408-1","SUSE-SU-2016:2460-1","SUSE-SU-2016:2460-2"],"database_specific":{"unresolved_ranges":[{"vendor_product":"php:php","cpes":["cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:*"],"extracted_events":[{"introduced":"5.6.0-alpha4"},{"last_affected":"5.6.0-alpha4"},{"introduced":"5.6.0-alpha5"},{"last_affected":"5.6.0-alpha5"}],"source":"CPE_STRING"}]},"references":[{"type":"WEB","url":"http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=0218acb7e756a469099c4ccfb22bce6c2bd1ef87"},{"type":"WEB","url":"http://lists.apple.com/archives/security-announce/2016/Sep/msg00006.html"},{"type":"WEB","url":"http://www.securitytracker.com/id/1036430"},{"type":"WEB","url":"https://support.apple.com/HT207170"},{"type":"ADVISORY","url":"http://fortiguard.com/advisory/fortinet-discovers-php-stack-based-buffer-overflow-vulnerabilities"},{"type":"ADVISORY","url":"http://php.net/ChangeLog-5.php"},{"type":"ADVISORY","url":"http://php.net/ChangeLog-7.php"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html"},{"type":"ADVISORY","url":"http://www.debian.org/security/2016/dsa-3631"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/92074"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201611-22"},{"type":"REPORT","url":"https://bugs.php.net/72513"},{"type":"ARTICLE","url":"http://openwall.com/lists/oss-security/2016/07/24/2"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"0"},{"last_affected":"d5747a70cf612e653b0e56dfa50efb29bbba273d"},{"introduced":"8648f76bac2f78391a1539253f21d62f53d83022"},{"last_affected":"a36407215f69ba2debf77933dcb3faa0c3ba2d04"}],"database_specific":{"source":["CPE_RANGE","CPE_STRING"],"extracted_events":[{"introduced":"0"},{"last_affected":"5.5.37"},{"introduced":"5.6.0-alpha1"},{"last_affected":"5.6.0-alpha1"},{"introduced":"5.6.0-alpha2"},{"last_affected":"5.6.0-alpha2"},{"introduced":"5.6.0-alpha3"},{"last_affected":"5.6.0-alpha3"},{"introduced":"5.6.0-beta1"},{"last_affected":"5.6.0-beta1"},{"introduced":"5.6.0-beta2"},{"last_affected":"5.6.0-beta2"},{"introduced":"5.6.0-beta3"},{"last_affected":"5.6.0-beta3"},{"introduced":"5.6.0-beta4"},{"last_affected":"5.6.0-beta4"},{"introduced":"5.6.1"},{"last_affected":"5.6.1"},{"introduced":"5.6.2"},{"last_affected":"5.6.2"},{"introduced":"5.6.3"},{"last_affected":"5.6.3"},{"introduced":"5.6.4"},{"last_affected":"5.6.4"},{"introduced":"5.6.5"},{"last_affected":"5.6.5"},{"introduced":"5.6.6"},{"last_affected":"5.6.6"},{"introduced":"5.6.7"},{"last_affected":"5.6.7"},{"introduced":"5.6.8"},{"last_affected":"5.6.8"},{"introduced":"5.6.9"},{"last_affected":"5.6.9"},{"introduced":"5.6.10"},{"last_affected":"5.6.10"},{"introduced":"5.6.11"},{"last_affected":"5.6.11"},{"introduced":"5.6.12"},{"last_affected":"5.6.12"},{"introduced":"5.6.13"},{"last_affected":"5.6.13"},{"introduced":"5.6.14"},{"last_affected":"5.6.14"},{"introduced":"5.6.15"},{"last_affected":"5.6.15"},{"introduced":"5.6.16"},{"last_affected":"5.6.16"},{"introduced":"5.6.17"},{"last_affected":"5.6.17"},{"introduced":"5.6.18"},{"last_affected":"5.6.18"},{"introduced":"5.6.19"},{"last_affected":"5.6.19"},{"introduced":"5.6.20"},{"last_affected":"5.6.20"},{"introduced":"5.6.21"},{"last_affected":"5.6.21"},{"introduced":"5.6.22"},{"last_affected":"5.6.22"},{"introduced":"5.6.23"},{"last_affected":"5.6.23"},{"introduced":"7.0.0"},{"last_affected":"7.0.0"},{"introduced":"7.0.1"},{"last_affected":"7.0.1"},{"introduced":"7.0.2"},{"last_affected":"7.0.2"},{"introduced":"7.0.3"},{"last_affected":"7.0.3"},{"introduced":"7.0.4"},{"last_affected":"7.0.4"},{"introduced":"7.0.5"},{"last_affected":"7.0.5"},{"introduced":"7.0.8"},{"last_affected":"7.0.8"}],"cpe":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.9:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.10:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.11:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.12:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.13:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.14:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.15:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.16:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.17:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.18:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.19:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.20:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.21:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.22:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.23:*:*:*:*:*:*:*","cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:*","cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:*","cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:*","cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:*","cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:*"]}}],"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.8","php-7.0.8","php-5.5.37","php-7.0.8RC1","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":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-6289.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}