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.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
http://lists.apple.com/archives/security-announce/2016/Sep/msg00006.html | vendor advisory |
https://security.gentoo.org/glsa/201611-22 | vendor advisory |
http://rhn.redhat.com/errata/RHSA-2016-2750.html | vendor advisory |
http://fortiguard.com/advisory/fortinet-discovers-php-stack-based-buffer-overflow-vulnerabilities | third party advisory |
http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=0218acb7e756a469099c4ccfb22bce6c2bd1ef87 | |
http://php.net/ChangeLog-5.php | release notes |
http://www.securitytracker.com/id/1036430 | vdb entry |
http://www.securityfocus.com/bid/92074 | vdb entry third party advisory |
http://www.debian.org/security/2016/dsa-3631 | vendor advisory |
http://php.net/ChangeLog-7.php | release notes |
http://openwall.com/lists/oss-security/2016/07/24/2 | mailing list |
https://support.apple.com/HT207170 | |
https://bugs.php.net/72513 | issue tracking mitigation exploit third party advisory |