CI4MS: Arbitrary Database Table Drop via Theme deleteProcess
ci4-cms-erp ci4ms
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ci4-cms-erp/ci4ms Packagist |
|
|
Original description
CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. From version 0.31.1.0 to before version 0.31.8.0, 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 issue has been patched in version 0.31.8.0.
From the CVE record · GitHub_M
References
- github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-vgrf-pr28-vf98Exploit
- github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.8.0
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41890.json
- nvd.nist.gov/vuln/detail/CVE-2026-41890
- github.com/ci4-cms-erp/ci4ms/commit/2f38284281ce6b435ea42003951f14109ac2cea7
- github.com/ci4-cms-erp/ci4ms