[php-src] PR #20591: Fix GH-20582: Heap Buffer Overflow in iptcembed

From: Date: Tue, 25 Nov 2025 22:00:03 +0000
Subject: [php-src] PR #20591: Fix GH-20582: Heap Buffer Overflow in iptcembed
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34148@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20591 Author: ndossche If you can extend the file between the file size gathering (resulting in a buffer allocation), and reading / writing to the file you can trigger a TOC-TOU where you write out of bounds. To solve this, add extra bound checks and make sure that write actions always fail when going out of bounds. The easiest way to trigger this is via a pipe, which is used in the test, but it should be possible with a regular file and a quick race condition as well.

« previous php.git-pulls (#34148) next »