Oct 7, 2026·6 min read·21 visits
An authenticated administrator can bypass file upload restrictions by uploading mixed-case extensions (e.g., .pHp), which are subsequently normalized to .php and stored on the filesystem, enabling remote code execution.
Kunstmaan CMS MediaBundle prior to version 7.3.2 contains a critical file upload vulnerability where case-sensitive extension checks can be bypassed using mixed-case file extensions. Because extension normalization occurs after the validation routine, files with mixed-case executable extensions (such as pHp) bypass checks but are stored with normalized lowercase executable extensions, allowing authenticated administrators to achieve remote code execution.
The Kunstmaan CMS MediaBundle component provides file upload and media management capabilities for web applications built on the Symfony framework. The vulnerability, tracked as CVE-2026-104890, resides within the file path generation and extension checking routines of this component. Specifically, the system employs a case-sensitive file extension blacklist that can be bypassed by uploading assets with mixed-case or uppercase extensions.
Because the CMS utilizes a default blacklist that covers only a narrow set of extensions, it fails to restrict multiple executable types. Furthermore, the component normalizes the extension to lowercase after executing the security check, leading to the storage of executable files on the disk. This order-of-operations discrepancy allows authenticated backend operators with media upload privileges to achieve remote code execution on the underlying hosting environment.
This security flaw represents a combination of unrestricted file upload with dangerous type (CWE-434) and loss of case sensitivity (CWE-178). It poses a significant risk to organizations where multiple administrative or editing roles exist, as any user with permission to upload media can execute arbitrary commands with the privileges of the web server process.
The root cause of CVE-2026-104890 lies in a logical flaw and temporal discrepancy during the validation and sanitization of user-supplied filenames. When a file is uploaded, the FileHandler::getFilePath method parses the original filename to determine its storage destination. To prevent malicious file uploads, the application matches the file extension against a configured array of blacklisted extensions using a regular expression.
The regular expression implementation, preg_replace('/\.(' . implode('|', $this->blacklistedExtensions) . ')$/', '.txt', $filename), lacks the case-insensitive modifier (i). Consequently, the blacklist match is strictly case-sensitive. An extension such as pHp or PHP does not match the default lowercase entry php in the blacklist array, and the input passes through the validation step unaltered.
Following the validation routine, the application extracts the file extension and normalizes it to lowercase via strtolower($parts['extension']) before appending it back to the filename for disk write operations. This design flaw performs normalization after the security check rather than before. As a result, the bypassed mixed-case file shell.pHp is normalized and persisted as shell.php on the web server filesystem.
Analyzing the vulnerable implementation in FileHandler::getFilePath highlights how the sequence of operations introduces the security gap. In the unpatched codebase, the application processes the path as follows:
// Vulnerable Order of Operations
if (!empty($this->blacklistedExtensions)) {
// Case-sensitive check fails to match mixed-case extensions
$filename = preg_replace('/\.(' . implode('|', $this->blacklistedExtensions) . ')$/', '.txt', $filename);
}
$parts = pathinfo($filename);
$filename = $this->slugifier->slugify($parts['filename']);
if (\array_key_exists('extension', $parts)) {
// Normalization occurs after the validation check has passed
$filename .= '.' . strtolower($parts['extension']);
}The official patch introduced in version 7.3.2 restructures this logic to perform case folding before any security decisions are executed. The updated code extracts the extension, converts it to lowercase, and then evaluates it against both the blacklist and a newly introduced whitelist:
// Patched Implementation
$parts = pathinfo($filename);
$basename = $this->slugifier->slugify($parts['filename']);
if (!\array_key_exists('extension', $parts)) {
return sprintf('%s/%s', $media->getUuid(), $basename);
}
// Normalize the extension to lowercase first
$extension = strtolower($parts['extension']);
// Validate the normalized extension
if (!$this->isAllowedExtension($extension)) {
$extension = 'txt';
}This change ensures that all extension checks occur on the normalized representation, preventing any case-sensitivity bypasses. Additionally, the helper method isAllowedExtension performs strict type comparisons against lowercase arrays of blacklisted and allowed extensions.
Exploitation of CVE-2026-104890 requires the attacker to hold an authenticated account with media management or upload privileges. The attack is highly reliable due to the deterministic nature of the filename normalization logic. The process begins with the preparation of a script container containing server-side code, such as PHP instructions designed to execute system commands.
The attacker names the payload file with a mixed-case extension such as payload.pHp to avoid matching the default case-sensitive blacklist entry php. Upon uploading the file to the media asset manager, the application accepts the file without altering its extension to .txt. The system then lowercases the extension and saves the file to the public upload directory.
To complete the execution cycle, the attacker requests the file directly through the web server. Because the files are stored within the web-accessible directory (/public/uploads/media/<uuid>/), and because standard web server configurations pass .php requests to a PHP interpreter, the script is executed by the server, allowing remote command execution.
The security impact of successful exploitation is critical, as it leads to execution of arbitrary operating system commands within the context of the web server daemon (e.g., www-data or nginx). Depending on the hosting configuration, an attacker can leverage this execution capability to perform local privilege escalation, compromise database credentials stored in environment variables, and access local system files.
The CVSS v3.1 score is calculated at 7.2 (High), reflecting network accessibility and low attack complexity, although tempered by the requirement for high privileges (PR:H). Despite the prerequisite of administrative or publisher-level authentication, the impact on confidentiality, integrity, and availability is maximum (C:H/I:H/A:H).
In containerized environments, the compromise may be restricted to the container instance, but it still exposes adjacent infrastructure via lateral network movement. On shared or poorly configured servers, this compromise can lead to complete host takeover, installation of persistent backdoors, or deployment of additional malicious payloads.
The primary remediation mechanism is the installation of Kunstmaan Bundles CMS version 7.3.2 or later. This upgrade addresses both the case-sensitivity loophole and expands the default blacklisted extensions array to cover related script types such as .phtml, .phar, and .php5. If immediate upgrade is not feasible, administrators must configure web server controls to block execution in upload directories.
For Nginx environments, script execution within the media directory can be disabled by adding a specific location block that denies execution of PHP assets within the media upload directory path. For Apache environments, administrators can disable script interpretation by placing a configuration directive that removes handlers for executable extensions in the target folder.
Furthermore, developers should define an explicit allowed-extensions whitelist in the CMS configuration. Defining a strict whitelist ensures that only expected, passive media types such as images, documents, and stylesheets are processed and saved, providing defense-in-depth against future bypass variants.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
MediaBundle Kunstmaan | < 7.3.2 | 7.3.2 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-434 |
| Attack Vector | Network (AV:N) |
| Attack Complexity | Low (AC:L) |
| Privileges Required | High (PR:H) |
| CVSS Score | 7.2 (High) |
| Exploit Status | PoC Available |
| EPSS Score | 0.00416 (0.42%) |
The product allows the attacker to upload or transfer files of dangerous types that can be automatically processed within the product's environment.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.
CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.
CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.
Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.