Skip to main content

CI4MS EUVDEUVD-2026-28292

| CVE-2026-41890 MEDIUM
Improper Input Validation (CWE-20)
2026-05-04 https://github.com/ci4-cms-erp/ci4ms GHSA-vgrf-pr28-vf98
6.9
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
    Authenticate to CI4MS backend
  2. Delivery
    Navigate to theme deletion page
  3. Exploit
    Intercept POST request
  4. Install
    Modify tables[] parameter to arbitrary table names
  5. C2
    Submit malicious POST to deleteProcess()
  6. Execute
    Unvalidated table names passed to $forge->dropTable()
  7. Impact
    Arbitrary database tables dropped
  8. Step 8
    Data loss and potential authentication bypass

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

The attacker must be authenticated to the CI4MS backend with the 'theme.delete' permission granted to their role. The target theme must exist and must not be the currently active site theme (the code explicitly blocks deletion of the active theme). No special database configuration or non-default settings are required; the vulnerability exists in default CI4MS installations. The attacker must have access to the backend URL /backend/themes/delete-process/ and be able to craft a POST request with the 'tables[]' parameter. The limiting factors are: authentication requirement (eliminates unauthenticated remote attacks), admin-level privilege requirement (eliminates attacks by non-admin users), and active theme check (prevents immediate disruption of the site's current theme, though secondary themes can still be destroyed to cause data loss).

Impact

This vulnerability presents high real-world risk despite the lack of a CVSS vector. The attack requires authentication (admin with theme.delete permission), which limits the threat model to insider threats or compromised admin accounts, but the impact is catastrophic: permanent deletion of arbitrary database tables without recovery unless backups exist. CVSS vector is not provided in the input, but based on the description, attack vector is network (POST request), attack complexity is low (straightforward HTTP POST), privileges required are high (admin/theme.delete), user interaction is not required, scope is changed (impacts other tables beyond the theme), and confidentiality/integrity/availability impact is high (data loss). The absence of a CVSS score and lack of evidence this is actively exploited in the wild (no KEV status, no public POC distribution noted) suggest this is a security research disclosure rather than a weaponized attack. However, the ease of exploitation (simple HTTP POST with unvalidated parameters), the severity of impact (database destruction), and the confirmed patch from the vendor all indicate this should be treated as a critical priority for any CI4MS installation, particularly those with multiple admin accounts or where admin credentials are at elevated risk.

Exploit ScenarioDerived

An authenticated administrator (or attacker with compromised admin credentials) navigates to the CI4MS backend, selects a non-active theme for deletion, intercepts the POST request to /backend/themes/delete-process/<theme_slug>, and modifies the 'tables[]' parameter to include arbitrary table names such as 'ci4ms_users' or 'ci4ms_auth_identities'. The server accepts the request without validation and drops the specified tables, potentially disabling authentication or destroying critical application data. Public proof-of-concept code is available in the GitHub Advisory detailing the vulnerable code and steps to reproduce.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 04, 2026

Arbitrary database table drop in CI4MS theme deletion allows authenticated administrators with theme.delete permission to craft malicious POST requests to the /backend/themes/delete-process/ endpoint and drop any table in the database, including critical tables such as ci4ms_users and ci4ms_auth_identities. The vulnerability exists because the deleteProcess() action accepts user-supplied table names without validating them against the theme's own migration files, violating the principle of least privilege even within the admin trust model. Vendor-released patch 0.31.8.0 implements migration-based whitelist validation to restrict deletions to declared theme tables.

RemediationAI

Vendor-released patch: upgrade to CI4MS version 0.31.8.0 or later. The patch implements migration-based whitelist validation in the Theme::deleteProcess() method, ensuring that only tables declared within the specific theme's migration files can be dropped. Apply the patch immediately via Composer: composer require ci4-cms-erp/ci4ms:0.31.8.0 or update existing installations with composer update ci4-cms-erp/ci4ms. Until patched, restrict access to the theme management backend to only the most trusted administrators and monitor database access logs for unexpected DROP TABLE statements. No compensating controls can reliably prevent exploitation without code modification because the vulnerability requires server-side validation logic that the vulnerable version lacks. The CHANGELOG confirms this fix was intentional by design: the deleteConfirm view scopes checkboxes to the theme's own migration files, and the patch enforces the same scoping on the server side.

Affected VersionsENISA

ci4ms 0.31.1.0, < 0.31.8.0

Affected Packages

composer ci4-cms-erp/ci4ms fix: 0.31.8.0
euvd ci4ms_0_31_1_0 fix: 0.31.8.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

CI4MS is a CodeIgniter 4-based CMS/ERP system that manages themes through a dedicated Theme module. The vulnerable code exists in modules/Theme/Controllers/Theme.php at the deleteProcess() method (~line 147), which interacts with CodeIgniter 4's database forge API. The deleteProcess() action receives a POST parameter 'tables[]' containing table names intended for deletion during theme removal. While the corresponding deleteConfirm view correctly derives valid tables from the theme's migration files, the server-side deleteProcess() does not perform the same validation before passing table names to $forge->dropTable(). This is a classic input validation failure (CWE-20: Improper Input Validation) where user-supplied values are used directly in destructive database operations. The vulnerability affects the Composer package ci4-cms-erp/ci4ms (CPE: pkg:composer/ci4-cms-erp_ci4ms) across versions 0.31.1.0 through 0.31.7.0.

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 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

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
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 07, 2026 - 04:35 NVD
6.9 (MEDIUM)

DescriptionCVE.org

Summary

The deleteProcess() action accepts a POST parameter tables[] containing arbitrary table names. These are passed directly to $forge->dropTable() without validating that the tables belong to the theme being deleted.

The deleteConfirm view correctly populates tables[] from the theme's own migration files, but the server-side deleteProcess does not verify the received values against those files. An authenticated admin can craft a POST request with arbitrary table names and drop any table in the database.

This is a real bug even within the admin trust model: the action should be scoped to the theme's own tables. The permission grants delete this theme's data", not "drop any table".

Details

Location

modules/Theme/Controllers/Theme.php :: deleteProcess() ~line 147

Vulnerable Code

php
public function deleteProcess(string $slug)
{
    $themeName = $slug;
    $activeTheme = setting('App.siteTheme');
    if ($activeTheme === $themeName) {
        return redirect()->route('templateSettings')...;
    }

    $tablesToDrop = $this->request->getPost('tables');  // ← user-supplied, unvalidated
    if (!empty($tablesToDrop) && is_array($tablesToDrop)) {
        $forge = \Config\Database::forge();
        $db    = \Config\Database::connect();
        foreach ($tablesToDrop as $table) {
            if ($db->tableExists($table)) {
                $forge->dropTable($table, true);  // ← no whitelist check
            }
        }
    }

PoC

  1. Authenticate to the backend (any user with theme.delete permission)
  2. POST to /backend/themes/delete-process/<any_non_active_theme_slug>
  3. Include tables[]=<any_table> in POST body
  4. The named tables are dropped without validation

Impact

  • Dropped ci4ms_blog (confirmed in test)
  • Dropped ci4ms_users + ci4ms_auth_identities simultaneously - disables all authentication (confirmed)
  • Any table in the database can be targeted

Additional note

Quick note on the design intent for deleteProcess - I noticed delete_confirm.php scopes the checkboxes to the theme's own migration files, and the CHANGELOG confirms the selective deletion was intentional (admins can choose which tables to keep). The server-side deleteProcess already has all the information it needs to validate the input - deleteConfirm derives the valid table set from the migration files, deleteProcess just needs to do the same before acting on the POST. Happy to clarify if useful.

Threat Intelligence Overview

EPSS Score
0.1%
Top 77% 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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· derived
Medium

Priority Score

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

Attack Technique

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