Intel

AIKIDO-2026-21342

plank/laravel-mediable is vulnerable to Unrestricted Upload of File with Dangerous Type

Unrestricted Upload of File with Dangerous TypeCVE-2026-93352 Published Sep 30, 2026

98

Critical Risk

This Affects:

PHPplank/laravel-mediable
7.0.0 - 7.0.1
Fixed in 7.0.2
Are you affected? Scan for Free

TL;DR

The forbidden_extensions denylist in config/mediable.php blocks .phtml and .phpt uploads but omits .pht, even though Apache's default FilesMatch directive on Debian and Ubuntu executes .pht files as PHP. An uploaded file named with a .pht extension passes MediaUploader::verifyExtension() and File::sanitizeFileName() unblocked and is written to disk, where the web server then executes it as PHP with the server process's privileges. This is an incomplete fix for the extension denylist added for CVE-2026-49972. The patch adds pht to the denylist.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your web server executes uploaded .pht files as PHP, for example Apache's default FilesMatch configuration on Debian and Ubuntu.

Background info

plank/laravel-mediable is vulnerable to Unrestricted Upload of File with Dangerous Type in versions 7.0.0 - 7.0.1.

How to fix this

Upgrade the plank/laravel-mediable library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform