1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/standard
Niels Dossche 99ed66b49f Fix GH-20582: Heap Buffer Overflow in iptcembed
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.

Closes GH-20591.
2025-12-26 22:43:45 +01:00
..
2025-12-16 15:34:19 +01:00
2022-07-19 10:27:38 +01:00
2022-08-09 16:22:14 +02:00
2022-07-19 17:45:15 +02:00
2020-04-14 15:16:26 +00:00
2025-05-27 20:40:35 +02:00
2025-05-27 20:40:35 +02:00
2023-02-12 21:34:14 -07:00
2021-05-06 12:16:35 +02:00
2021-08-19 10:39:23 +02:00
2022-11-28 17:12:07 +01:00
2021-08-19 10:39:23 +02:00
2023-09-20 20:58:08 +02:00
2021-05-06 12:16:35 +02:00
2020-05-14 13:35:12 +02:00
2025-12-16 15:30:54 +01:00
2023-01-16 12:27:33 +01:00
2021-05-06 12:16:35 +02:00
2024-08-30 17:17:20 +01:00
2024-11-20 11:12:19 +01:00
2021-05-06 12:16:35 +02:00
2023-01-16 12:27:33 +01:00
2021-05-06 12:16:35 +02:00
2025-12-16 15:30:54 +01:00
2023-03-03 11:56:34 +01:00
2021-05-06 12:16:35 +02:00
2024-03-04 21:30:27 +09:00
2023-07-21 13:58:57 +02:00
2023-01-16 12:25:59 +01:00
2023-01-16 12:25:59 +01:00
2023-03-05 21:28:50 +01:00
2023-01-16 12:27:33 +01:00
2021-05-06 12:16:35 +02:00
2024-08-31 15:56:11 +09:00
2023-01-16 12:27:33 +01:00
2022-07-19 10:27:38 +01:00
2024-03-04 21:30:27 +09:00
2022-07-19 10:27:38 +01:00
2022-07-19 10:27:38 +01:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2024-07-04 13:35:53 +02:00
2023-11-16 14:36:16 +00:00
2022-07-19 10:27:38 +01:00
2021-05-06 12:16:35 +02:00