Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.
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 |
---|---|
https://github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6 | patch third party advisory issue tracking |
http://www.debian.org/security/2016/dsa-3693 | third party advisory vendor advisory |
https://security.gentoo.org/glsa/201612-09 | third party advisory vendor advisory |
https://bugs.php.net/bug.php?id=73003 | vendor advisory issue tracking |
https://github.com/libgd/libgd/issues/308 | patch third party advisory issue tracking |
https://github.com/libgd/libgd/commit/40bec0f38f50e8510f5bb71a82f516d46facde03 | patch third party advisory issue tracking |
http://www.securityfocus.com/bid/93184 | third party advisory vdb entry |