Vulnerability GHSA-p279-5wcv-45vq

High Risk
HIGH RISK
CVSS Score: 7.2
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
3 hours ago
October 07, 2026 at 06:05 PM UTC
Kunstmaan CMS: MediaBundle extension blacklist bypass allows authenticated administrators to upload executable PHP files leading to remote code execution
3.0.0 - 3.2.1 and 3.2.1.1 - 3.2.4 and 3.2.4.1 - 3.6.3 and 4.0.0 - 4.2.3 and 5.0.0 - 6.3.1 and 6.4.0 - 6.4.4 and 7.0.0 - 7.0.5 and 7.1.0 - 7.3.1
3.0.0 - 3.2.1 and 3.2.1.1 - 3.2.4 and 3.2.4.1 - 3.6.3 and 4.0.0 - 4.2.3 and 5.0.0 - 6.3.1 and 6.4.0 - 6.4.4 and 7.0.0 - 7.0.5 and 7.1.0 - 7.3.1

Summary

Kunstmaan CMS: MediaBundle extension blacklist bypass allows authenticated administrators to upload executable PHP files leading to remote code execution

Details

Summary

The MediaBundle blocks dangerous upload extensions with a blacklist that was matched case-sensitively, while the stored filename was lowercased afterwards. A file uploaded as webshell.pHp therefore bypassed the blacklist and was written to the web-accessible upload directory as webshell.php, where the web server executed it. Any authenticated backend user with access to the media section could obtain remote code execution.

Details

FileHandler::getFilePath() rewrote blacklisted extensions to .txt using a case-sensitive regex, and only then lowercased the extension when building the stored name — so the check ran against the attacker-controlled casing and the normalisation happened after it.

Two further weaknesses contributed:

  • The default blacklist contained only php and htaccess, leaving other server-executable extensions (phtml, php5, phar, shtml, cgi, …) unblocked regardless of casing.
  • Configured blacklist values were interpolated into the regex unescaped.

Impact

An authenticated user with access to the admin media section can upload a file that the web server executes as PHP. The uploaded file is reachable over HTTP without authentication, giving arbitrary code execution as the web server user.

Patches

Fixed in kunstmaan/media-bundle 7.3.2. The extension is now normalised before it is checked and compared with in_array(); the default blacklist is expanded to the full set of server-executable extensions; and a new opt-in allowed_extensions option allows projects to enforce a strict allow-list.

Note that the patch does not rename files already stored on disk. Sites should audit their media upload directory for existing files with an executable extension.

Workarounds

If you cannot upgrade, configure the web server to refuse to execute scripts in the media upload directory (for example a location block in nginx or php_flag engine off in Apache).

Timeline

Published
3 hours ago
October 07, 2026 at 06:05 PM UTC
Fixed (7.3.2)
1 month ago
September 06, 2026 at 01:56 PM UTC
Fixed (7.3.2)
1 month ago
September 06, 2026 at 02:09 PM UTC
Last Modified
3 hours ago
October 07, 2026 at 06:15 PM UTC