[php-src] PR #25983: Fix GH-25964: WebP VP8 dimensions accepted with an invalid start code
| From: | lazerg | Date: | Tue, 01 Dec 2026 01:34:03 +0000 |
| Subject: | [php-src] PR #25983: Fix GH-25964: WebP VP8 dimensions accepted with an invalid start code | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41298@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25983
Author: lazerg
A lossy VP8 key frame starts with the
9D 01 2A start code, but
php_handle_webp() read the width and height from bytes 14-17 without checking it. Any
VP8 chunk was accepted and arbitrary bytes were returned as dimensions. The start code
is now checked, and getimagesize() returns false when it does not match.
Fixes #25964