Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-104890 Overview
Kunstmaan CMS, an open source content management system built on the Symfony framework, contains an unrestricted file upload vulnerability [CWE-434] in its media handling component. The flaw exists in src/Kunstmaan/MediaBundle/Helper/File/FileHandler.php, where the FileHandler::getFilePath method performs the blacklisted_extensions check case-sensitively before lowercasing the stored extension. An authenticated backend user with media access can upload a file with a mixed-case extension such as PhP or PHP, bypass the blacklist, and have it stored with a lowercase executable extension in a web-accessible directory. The default blacklist also omits several server-executable extensions. Both issues are fixed in version 7.3.2.
Critical Impact
Authenticated backend users can upload executable files that the web server will interpret, enabling remote code execution on the hosting infrastructure.
Affected Products
- Kunstmaan CMS (KunstmaanBundlesCMS) versions prior to 7.3.2
- KunstmaanMediaBundle component containing FileHandler.php
- Symfony-based applications using the vulnerable Kunstmaan media configuration
Discovery Timeline
- 2026-10-05 - CVE-2026-104890 published to NVD
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2026-104890
Vulnerability Analysis
The vulnerability resides in the FileHandler::getFilePath method inside src/Kunstmaan/MediaBundle/Helper/File/FileHandler.php. The handler compares the uploaded file's extension against a blacklisted_extensions array using case-sensitive matching. After the check passes, the handler lowercases the extension before writing the file to disk. An attacker who uploads a file named shell.PhP bypasses the string comparison against php, yet the file is persisted as shell.php in the media directory served by the web server.
The default blacklist shipped with vulnerable versions contained only php and htaccess. Server-executable extensions such as phtml, phar, phps, pht, cgi, pl, py, asp, aspx, jsp, and cfm were not covered. Attackers can upload any of these in either lowercase or mixed case and achieve interpreter execution if the web server is configured to handle them.
Root Cause
The root cause is inconsistent string normalization between the validation step and the storage step. Validation treated extensions as case-sensitive strings while persistence normalized them to lowercase. This TOCTOU-style mismatch invalidated the security assumption of the blacklist. A secondary design flaw is the use of a short deny-list rather than a positive allow-list, leaving multiple server-executable file types unprotected by default.
Attack Vector
Exploitation requires an authenticated session with media upload privileges on the Kunstmaan backend. The attacker uploads a crafted file through the media bundle UI or API using a mixed-case server-executable extension. The file is written to the public media path and can then be requested over HTTP, causing the web server to execute the payload under the application's runtime user.
->end()
->booleanNode('enable_pdf_preview')->defaultFalse()->end()
->arrayNode('blacklisted_extensions')
- ->defaultValue(['php', 'htaccess'])
+ ->info('Files with one of these extensions are stored as .txt. Matched case-insensitively.')
+ ->defaultValue([
+ 'php', 'php3', 'php4', 'php5', 'php6', 'php7', 'php8',
+ 'phps', 'phpt', 'pht', 'phtm', 'phtml', 'phar', 'inc',
+ 'htaccess', 'htpasswd', 'htgroup',
+ 'shtml', 'shtm', 'cgi', 'pl', 'py', 'rb', 'sh',
+ 'asp', 'aspx', 'ashx', 'asmx', 'ascx', 'jsp', 'jspx', 'cfm', 'cfml',
+ ])
+ ->prototype('scalar')->end()
+ ->end()
+ ->arrayNode('allowed_extensions')
+ ->info('Optional strict allow-list of media extensions. When empty (default) only the blacklist is applied.')
+ ->defaultValue([])
->prototype('scalar')->end()
->end()
->scalarNode('web_root')
Source: Kunstmaan patch commit 1bbdfde
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-104890
Indicators of Compromise
- Files in the public media directory with executable extensions such as .php, .phtml, .phar, .jsp, .aspx, .cgi, or .pl.
- Media upload audit records containing mixed-case extensions like .PhP, .PHP5, or .PhTmL.
- Web server access logs showing GET or POST requests to /uploads/media/ returning dynamic content types instead of static files.
- New backend user accounts followed shortly by media upload activity to unusual paths.
Detection Strategies
- Scan the configured kunstmaan_media.full_media_path recursively for files whose extensions match any server-executable interpreter mapping.
- Enable file integrity monitoring on media storage directories to flag any write of a non-media MIME type.
- Correlate authenticated backend session identifiers with upload events and subsequent requests to the same filename.
- Review web server interpreter mappings (Apache AddHandler, Nginx fastcgi_pass location blocks) against files present in uploads directories.
Monitoring Recommendations
- Log and alert on HTTP responses from media directories that have Content-Type: text/html or application/x-httpd-php.
- Monitor process creation under the web server user originating from media directory paths.
- Track Kunstmaan backend audit events for MediaBundle upload operations with non-image or non-document MIME types.
How to Mitigate CVE-2026-104890
Immediate Actions Required
- Upgrade Kunstmaan CMS to version 7.3.2 or later without delay.
- Audit all accounts with backend media upload permissions and revoke access that is not strictly required.
- Inventory the media directory for any files with executable extensions and quarantine them pending review.
- Rotate credentials and session tokens for backend users if upload abuse is suspected.
Patch Information
The fix is included in Kunstmaan CMS 7.3.2. The patch introduces case-insensitive matching, expands the default blacklist to include additional interpreter extensions, and adds an optional strict allowed_extensions allow-list. Full details are documented in GitHub Security Advisory GHSA-p279-5wcv-45vq.
Workarounds
- Configure the web server to deny execution of any dynamic handler within the media upload directory using php_flag engine off for Apache or an explicit location block for Nginx.
- Extend kunstmaan_media.blacklisted_extensions to include all interpreter extensions documented in the patch and apply lowercase normalization in a custom listener.
- Restrict backend media access through role-based permissions until the upgrade is deployed.
# Apache: disable script execution in the media directory
<Directory "/var/www/html/web/uploads/media">
php_flag engine off
SetHandler None
RemoveHandler .php .phtml .phar .php3 .php4 .php5 .php7 .pht
RemoveType .php .phtml .phar
Options -ExecCGI
</Directory>
# Nginx: deny execution of dynamic content under the media path
location ^~ /uploads/media/ {
location ~ \.(php|phtml|phar|phps|pht|cgi|pl|py|asp|aspx|jsp)$ {
deny all;
return 403;
}
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

