Laravel-Mediable 7.0.0 перед 7.0.2 содержит неполный патч для CVE-2026-49972, в котором расширение .pht отсутствует в блок-листе forbidden_extensions в config/mediable.php. Блок-лист, представленный для адреса CVE-2026-49972, включает phpt, но пропускает pht, который Apache выполняет как PHP с помощью директивы FilesMatch по умолчанию для систем Debian и Ubuntu. Злоумышленник может загрузить файл .pht, который проходит все проверки в MediaUploader::verifyExtension () и File::sanitizeFileName (), потому что pht не присутствует в списке блоков, в результате чего файл записывается на диск и выполняется как PHP по запросу, что позволяет удаленное выполнение кода с привилегиями процесса веб-сервера.
Показать оригинальное описание (EN)
Laravel-Mediable 7.0.0 before 7.0.2 contains an incomplete patch for CVE-2026-49972 in which the .pht extension is absent from the forbidden_extensions blocklist in config/mediable.php. The blocklist introduced to address CVE-2026-49972 includes phpt but omits pht, which Apache executes as PHP via the default FilesMatch directive on Debian and Ubuntu systems. An attacker can upload a .pht file that passes all validation in MediaUploader::verifyExtension() and File::sanitizeFileName() because pht is not present in the blocklist, causing the file to be written to disk and executed as PHP when requested, enabling remote code execution with the privileges of the web server process.
Характеристики атаки
Последствия
Строка CVSS v4.0