Kunstmaan CMS: MediaBundle extension blacklist bypass allows authenticated administrators to upload executable PHP files leading to remote code execution
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
phpandhtaccess, 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).
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Composer-Paket | kunstmaan/bundles-cms | < 7.3.2 | 7.3.2 |
| Composer-Paket | kunstmaan/media-bundle | < 7.3.2 | 7.3.2 |
Verweise
- https://github.com/Kunstmaan/KunstmaanBundlesCMS/security/advisories/GHSA-p279-5wcv-45vq
- https://nvd.nist.gov/vuln/detail/CVE-2026-104890
- https://github.com/Kunstmaan/KunstmaanBundlesCMS/commit/1bbdfdeac8e7e91506b1a9271360b9b68d7690d3
- https://github.com/Kunstmaan/KunstmaanBundlesCMS
- https://github.com/Kunstmaan/KunstmaanBundlesCMS/releases/tag/7.3.2
- CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H- Schwäche (CWE)
CWE-434- Plattform
- Composer
- Paket
kunstmaan/bundles-cms, kunstmaan/media-bundle- Veröffentlicht
- 07.10.2026
- Aktualisiert
- 11.10.2026 10:22
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-p279-5wcv-45vq - CC BY 4.0
Schwachstellenhistorie: kunstmaan/bundles-cms
Alle veröffentlichten Schwachstellen dieses Pakets (Composer-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
Dies ist die einzige bekannte Schwachstelle dieses Pakets.
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.