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.
https://security.gentoo.org/glsa/201612-09
https://github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6
https://github.com/libgd/libgd/issues/308
https://github.com/libgd/libgd/commit/40bec0f38f50e8510f5bb71a82f516d46facde03
https://bugs.php.net/bug.php?id=73003