{"id":"CVE-2026-104890","aliases":["CVE-2026-104890","GHSA-p279-5wcv-45vq"],"related":[],"kind":"vulnerability","state":"published","title":"Kunstmaan CMS: MediaBundle extension blacklist bypass allows authenticated administrators to upload executable PHP files leading to remote code execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe MediaBundle blocks dangerous upload extensions with a blacklist that was matched\ncase-sensitively, while the stored filename was lowercased afterwards. A file uploaded\nas `webshell.pHp` therefore bypassed the blacklist and was written to the web-accessible\nupload directory as `webshell.php`, where the web server executed it. Any authenticated\nbackend user with access to the media section could obtain remote code execution.\n\n### Details\n\n`FileHandler::getFilePath()` rewrote blacklisted extensions to `.txt` using a\ncase-sensitive regex, and only then lowercased the extension when building the stored\nname — so the check ran against the attacker-controlled casing and the normalisation\nhappened after it.\n\nTwo further weaknesses contributed:\n\n* The default blacklist contained only `php` and `htaccess`, leaving other\n  server-executable extensions (`phtml`, `php5`, `phar`, `shtml`, `cgi`, …) unblocked\n  regardless of casing.\n* Configured blacklist values were interpolated into the regex unescaped.\n\n### Impact\n\nAn authenticated user with access to the admin media section can upload a file that the\nweb server executes as PHP. The uploaded file is reachable over HTTP without\nauthentication, giving arbitrary code execution as the web server user.\n\n### Patches\n\nFixed in kunstmaan/media-bundle 7.3.2. The extension is now normalised before it is\nchecked and compared with `in_array()`; the default blacklist is expanded to the full\nset of server-executable extensions; and a new opt-in `allowed_extensions` option allows\nprojects to enforce a strict allow-list.\n\nNote that the patch does not rename files already stored on disk. Sites should audit\ntheir media upload directory for existing files with an executable extension.\n\n### Workarounds\n\nIf you cannot upgrade, configure the web server to refuse to execute scripts in the\nmedia upload directory (for example a `location` block in nginx or `php_flag engine off`\nin Apache).","format":"markdown","source":"ghsa"}],"published":"2026-10-05T15:46:21.959Z","modified":"2026-10-07T21:17:09.367Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"version":"< 7.3.1","status":"affected"}],"vendor":"Kunstmaan","product":"KunstmaanBundlesCMS","source":"cvelist"},{"ranges":[{"version":"< 7.3.1","status":"affected"}],"vendor":"kunstmaan","product":"bundles-cms","source":"cvelist"},{"ranges":[{"version":"< 7.3.1","status":"affected"}],"vendor":"kunstmaan","product":"media-bundle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.3.2"}],"ecosystem":"Packagist","package":"kunstmaan/media-bundle","purl":"pkg:composer/kunstmaan/media-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.3.2"}],"ecosystem":"Packagist","package":"kunstmaan/bundles-cms","purl":"pkg:composer/kunstmaan/bundles-cms","source":"ghsa"}],"references":[{"url":"https://github.com/Kunstmaan/KunstmaanBundlesCMS/security/advisories/GHSA-p279-5wcv-45vq","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Kunstmaan/KunstmaanBundlesCMS/commit/1bbdfdeac8e7e91506b1a9271360b9b68d7690d3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Kunstmaan/KunstmaanBundlesCMS/releases/tag/7.3.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104890","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Kunstmaan/KunstmaanBundlesCMS","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-07T20:50:41.475Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-104890","url":"https://www.cve.org/CVERecord?id=CVE-2026-104890","licence":"CVE Terms of Use","modified":"2026-10-07T20:50:50.492Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p279-5wcv-45vq","url":"https://github.com/advisories/GHSA-p279-5wcv-45vq","licence":"CC-BY-4.0","modified":"2026-10-07T18:15:11.799Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-104890","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104890","licence":"Public domain","modified":"2026-10-07T21:17:09.367Z"}],"updatedAt":"2026-11-25T22:59:42.126Z","epss":{"score":0.00416,"percentile":0.37917,"date":"2026-12-01T12:00:22.000Z"}}