CVE-2026-104890
Kunstmaan CMS: MediaBundle extension blacklist bypass allows authenticated administrators to upload executable PHP files leading to remote code execution
Kunstmaan CMS is an open source content management system based on the Symfony framework. Prior to 7.3.2, src/Kunstmaan/MediaBundle/Helper/File/FileHandler.php performs the blacklisted_extensions check case-sensitively in FileHandler::getFilePath and lowercases the stored extension afterward. An authenticated backend user with media access can upload a mixed-case executable extension such as PHP that bypasses the check and is stored in the web-accessible media directory with an executable lowercase extension. The default blacklist also omits several server-executable extension types, allowing the same code-execution impact where the web server executes uploaded files. This issue is fixed in version 7.3.2.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.2
Kunstmaan CMS: MediaBundle extension blacklist bypass allows authenticated administrators to upload executable PHP files leading to remote code execution
Kunstmaan CMS is an open source content management system based on the Symfony framework. Prior to 7.3.2, src/Kunstmaan/MediaBundle/Helper/File/FileHandler.php performs the blacklisted_extensions check case-sensitively in FileHandler::getFilePath and lowercases the stored extension afterward. An authenticated backend user with media access can upload a mixed-case executable extension such as PHP that bypasses the check and is stored in the web-accessible media directory with an executable lowercase extension. The default blacklist also omits several server-executable extension types, allowing the same code-execution impact where the web server executes uploaded files. This issue is fixed in version 7.3.2.
- Record
CVE-2026-104890- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-434
- Updated
- 2026-11-02
EUVDEUVD-2026-92446
7.2
Kunstmaan CMS is an open source content management system based on the Symfony framework. Prior to 7.3.2, src/Kunstmaan/MediaBundle/Helper/File/FileHandler.php performs the blacklisted_extensions check case-sensitively in FileHandler::getFilePath and lowercases the stored extension afterward. An authenticated backend user with media access can upload a mixed-case executable extension such as PHP that bypasses the check and is stored in the web-accessible media directory with an executable lowercase extension. The default blacklist also omits several server-executable extension types, allowing the same code-execution impact where the web server executes uploaded files. This issue is fixed in version 7.3.2.
- Record
EUVD-2026-92446- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-p279-5wcv-45vq
7.2
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).
- Record
GHSA-p279-5wcv-45vq- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-434
- Updated
- 2026-11-02
NVD
7.2
Kunstmaan CMS is an open source content management system based on the Symfony framework. Prior to 7.3.2, src/Kunstmaan/MediaBundle/Helper/File/FileHandler.php performs the blacklisted_extensions check case-sensitively in FileHandler::getFilePath and lowercases the stored extension afterward. An authenticated backend user with media access can upload a mixed-case executable extension such as PHP that bypasses the check and is stored in the web-accessible media directory with an executable lowercase extension. The default blacklist also omits several server-executable extension types, allowing the same code-execution impact where the web server executes uploaded files. This issue is fixed in version 7.3.2.
- Record
CVE-2026-104890- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-434
- Updated
- 2026-11-02
OSV
7.2
Kunstmaan CMS: MediaBundle extension blacklist bypass allows authenticated administrators to upload executable PHP files leading to remote code execution
Kunstmaan CMS is an open source content management system based on the Symfony framework. Prior to 7.3.2, src/Kunstmaan/MediaBundle/Helper/File/FileHandler.php performs the blacklisted_extensions check case-sensitively in FileHandler::getFilePath and lowercases the stored extension afterward. An authenticated backend user with media access can upload a mixed-case executable extension such as PHP that bypasses the check and is stored in the web-accessible media directory with an executable lowercase extension. The default blacklist also omits several server-executable extension types, allowing the same code-execution impact where the web server executes uploaded files. This issue is fixed in version 7.3.2.
- Record
CVE-2026-104890- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-434
- Updated
- 2026-11-11
OSVGHSA-p279-5wcv-45vq
7.2
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).
- Record
GHSA-p279-5wcv-45vq- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-434
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
kunstmaan/media-bundlePackagist |
before 7.3.2 | 7.3.2 |
kunstmaan/bundles-cmsPackagist |
before 7.3.2 | 7.3.2 |
kunstmaan/media-bundlePackagist |
before 7.3.2, plus listed versions 3.0.03.0.13.0.23.0.33.1.0 Show 45 moreShow less3.1.13.1.23.1.33.1.43.2.03.2.13.2.1.13.2.23.2.33.2.43.2.4.13.2.53.2.63.3.03.3.13.3.23.3.33.3.43.4.03.4.13.4.23.5.03.5.13.5.23.6.03.6.13.6.23.6.34.0.04.0.0-RC14.0.14.0.24.0.34.1.04.1.14.1.24.1.34.1.44.2.04.2.14.2.24.2.35.0.05.0.0-RC15.0.0-RC2 |
7.3.2 |
kunstmaan/bundles-cmsPackagist |
before 7.3.2, plus listed versions 3.0.03.0.13.0.23.0.33.1.0 Show 45 moreShow less3.1.13.1.23.1.33.1.43.2.03.2.13.2.1.13.2.23.2.33.2.43.2.4.13.2.53.2.63.3.03.3.13.3.23.3.33.3.43.4.03.4.13.4.23.5.03.5.13.5.23.6.03.6.13.6.23.6.34.0.04.0.0-RC14.0.14.0.24.0.34.1.04.1.14.1.24.1.34.1.44.2.04.2.14.2.24.2.35.0.05.0.0-RC15.0.0-RC2 |
7.3.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-104890 is a high vulnerability (CVSS 7.2) in Kunstmaan Bundles-cms, published October 5, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.42%, the 36th percentile. Fixed in kunstmaan/media-bundle 7.3.2.
References
github.com/Kunstmaan/KunstmaanBundlesCMS/security/advisories/GHSA-p279-5wcv-45vq
github.com/Kunstmaan/KunstmaanBundlesCMS/commit/1bbdfdeac8e7e91506b1a9271360b9b68d7690d3
github.com/Kunstmaan/KunstmaanBundlesCMS/releases/tag/7.3.2
nvd.nist.gov/vuln/detail/CVE-2026-104890
github.com/advisories/GHSA-p279-5wcv-45vq
github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104890.json
github.com/Kunstmaan/KunstmaanBundlesCMS
Left out here: 293 versions. The JSON record has them.