Laravel-Mediable 7.0.0 < 7.0.2 RCE via .pht File Upload
What fixes it
- 7.0.2laravel-mediableCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
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.
Text from CVE List
Affected versions 1
- laravel-mediableaffected: 7.0.0 before 7.0.2CVE List
References 4
- github.com/plank/laravel-mediable/releases/tag/7.0.2Fixvia CVE List
- github.com/plank/laravel-mediable/pull/396Fixvia CVE List
- github.com/plank/laravel-mediable/commit/8ddb0e5b300084e91ad2cb18a6e7bc768bb7b008Fixvia CVE List
- vulncheck.com/advisories/laravel-mediable-rce-via-pht-file-uploadAdvisoryvia CVE List