Intel

AIKIDO-2026-737636

kunstmaan/media-bundle is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)GHSA-p279-5wcv-45vq Published Yesterday

72

High Risk

This Affects:

PHPkunstmaan/media-bundle
1.0.0 - 7.3.1
Fixed in 7.3.2
Are you affected? Scan for Free

TL;DR

The kunstmaan/media-bundle upload handler blacklists dangerous file extensions with a case sensitive regex and only lowercases the extension later when storing the file. An authenticated media-admin user can upload a file named webshell.pHp, which slips past the php/htaccess blacklist and is written to the public upload directory as webshell.php, where the web server executes it. The default blacklist also omits other server executable extensions such as phtml, php5, and phar, widening the same bypass. The fix normalizes the extension before comparing it against the blacklist with in_array(), expands the default blacklist, and adds an opt in allow list.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

kunstmaan/media-bundle is vulnerable to Remote Code Execution (RCE) in versions 1.0.0 - 7.3.1.

How to fix this

Upgrade the kunstmaan/media-bundle and/or the kunstmaan/bundles-cms 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