Intel

AIKIDO-2026-21342

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

CVE-2026-93352Published Sep 30, 2026
September 30, 2026

98

CVE Score

Critical

Unrestricted Upload of File with Dangerous Type

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.

How do I fix this?

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

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.

Versions

7.0.0 - 7.0.1

Fixed in 7.0.2

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea