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-108567 Overview
CVE-2026-108567 is a path traversal vulnerability [CWE-22] affecting InstantSoft icms2 up to version 2.18.2. The flaw resides in the files_delete_file function within system/fields/image.php, part of the Image Handler component. An authenticated attacker can manipulate the size argument to traverse the file system and delete files outside the intended directory. The issue is remotely exploitable over the network, and a public exploit has been disclosed. The upstream project addressed the issue in commit 03d70937f1ff97031523222808726994b8b79379.
Critical Impact
Remote authenticated attackers can delete arbitrary files on the server by injecting traversal sequences into the size parameter processed by the Image Handler.
Affected Products
- InstantSoft icms2 versions up to and including 2.18.2
- system/fields/image.php Image Handler component
- Deployments using the default upload and image-processing configuration
Discovery Timeline
- 2026-10-11 - CVE-2026-108567 published to the National Vulnerability Database (NVD)
- 2026-10-15 - Last updated in the NVD database
Technical Details for CVE-2026-108567
Vulnerability Analysis
The vulnerability resides in the files_delete_file function inside system/fields/image.php. The function accepts a size argument that is incorporated into a file path without proper normalization or allowlist validation. By supplying traversal sequences such as ../ within the size value, an attacker can escape the intended image directory. The result is deletion of files outside the uploads scope, which can affect application assets, configuration artifacts, or user data.
The root CWE is Improper Limitation of a Pathname to a Restricted Directory [CWE-22]. The attack requires low-privilege authentication but no user interaction, and it is initiated over the network. A public exploit is referenced in VulDB, increasing the likelihood of opportunistic exploitation against unpatched instances.
Root Cause
The underlying cause combines two weaknesses. First, the size parameter is treated as a trusted path fragment rather than a bounded identifier. Second, the upload and MIME-handling path previously allowed defaults that bypassed strict extension enforcement. The vendor patch tightens upload validation so that the allowed-extensions option is mandatory and MIME checks fail closed.
Attack Vector
An authenticated user issues a crafted request to the Image Handler endpoint, setting the size argument to a traversal payload. The handler resolves the attacker-controlled path and invokes files_delete_file, which removes the targeted file from disk. No elevated role is required beyond standard authenticated access.
// Patch excerpt — system/core/uploadfile.php
public function isAllowed() {
- // Пускаем любые, если не указано
- if ($this->allowed_mime === null) {
- return true;
- }
-
- if ($this->file_mime === false) {
+ if (!$this->file_mime || !$this->allowed_mime) {
return false;
}
Source: GitHub Commit 03d7093. The patch removes the permissive fallback that returned true when no allowed MIME list was configured. The handler now fails closed when either the detected file MIME or the allowed-MIME list is missing.
// Patch excerpt — system/core/uploader.php
if (!$file->isAllowed()) {
return [
- 'error' => LANG_UPLOAD_ERR_MIME . '. ' . sprintf(LANG_PARSER_FILE_EXTS_FIELD_HINT, implode(', ', $file->getAllowedExtensions())),
+ 'error' => LANG_UPLOAD_ERR_MIME . '. ' . sprintf(LANG_PARSER_FILE_EXTS_FIELD_HINT, implode(', ', $file->getAllowedExtensions() ?: LANG_NO)),
'success' => false,
'name' => $dest_name
];
Source: GitHub Commit 03d7093.
Detection Methods for CVE-2026-108567
Indicators of Compromise
- HTTP requests to icms2 image endpoints containing ../ or URL-encoded %2e%2e%2f sequences in the size parameter.
- Unexpected file deletions in directories outside the configured uploads path on hosts running icms2.
- Web server access logs showing authenticated POST or GET requests to system/fields/image.php handlers with abnormal size values.
Detection Strategies
- Deploy web application firewall rules that reject traversal metacharacters in parameters processed by the Image Handler.
- Correlate authenticated session identifiers with filesystem delete events to flag abnormal patterns.
- Hash and inventory critical application files, then alert on unexplained removals.
Monitoring Recommendations
- Enable PHP and web server logging at a verbosity sufficient to capture full query strings and POST bodies.
- Forward application and filesystem audit logs to a centralized analytics platform for correlation and retention.
- Review VulDB entries VulDB CVE-2026-108567 and VulDB Vulnerability #416224 for updated indicators as public exploit activity evolves.
How to Mitigate CVE-2026-108567
Immediate Actions Required
- Apply commit 03d70937f1ff97031523222808726994b8b79379 or upgrade to a release that contains this fix.
- Restrict access to the icms2 administrative and content-authoring interfaces to trusted networks.
- Audit the uploads directory and surrounding paths for unexpected file deletions since the vulnerable version was deployed.
Patch Information
The maintainers published the fix in the InstantSoft icms2 repository under commit 03d70937f1ff97031523222808726994b8b79379. The patch enforces mandatory allowed-extension and MIME validation in system/core/uploadfile.php and system/core/uploader.php. See the GitHub Commit 03d7093 and the upstream GitHub Project ICMS2 for release details.
Workarounds
- Configure the web server to deny request parameters containing traversal sequences on paths that reach system/fields/image.php.
- Enforce strict filesystem permissions so the PHP process cannot delete files outside the designated uploads directory.
- Temporarily disable image-size regeneration features that invoke files_delete_file until the patch is applied.
# Example nginx rule to block traversal payloads in the size parameter
if ($args ~* "(^|&)size=[^&]*(\.\.|%2e%2e)") {
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

