{"id":"CVE-2026-41587","published":"2026-05-07T03:14:38Z","modified":"2026-05-07T13:43:20Z","title":"CI4MS: Unrestricted PHP File Upload via Theme Installation Leads to Authenticated Remote Code Execution","vendor":"ci4-cms-erp","product":"ci4ms","tier":"tail","description":{"text":"CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. From version 0.26.0.0 to before version 0.31.7.0, a theme upload feature allows any authenticated backend user with theme-upload permission to achieve remote code execution (RCE) by uploading a crafted ZIP file. PHP files inside the ZIP are installed into the web-accessible public/ directory with no extension or content filtering, making them directly executable via HTTP. This issue has been patched in version 0.31.7.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00623,"percentile":0.50819,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-fw49-9xq4-gmx6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ci4-cms-erp/ci4ms/commit/b969465e71eacd9eb57014ad1fce1fc34fa7bca0","tags":["x_refsource_MISC"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":10.16},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"ci4-cms-erp","affectedVersions":[{"vendor":"ci4-cms-erp","product":"ci4ms","versions":[">= 0.26.0.0, < 0.31.7.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-05-07T13:43:14.925124Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"ci4-cms-erp/ci4ms","vulnerableRanges":[">=0.26.0.0, <0.31.7.0"],"patched":["0.31.7.0"],"from":["GHSA-fw49-9xq4-gmx6"],"provenance":"source"}],"summary":{"text":"CI4MS, a CodeIgniter 4-based CMS skeleton, contains an unrestricted PHP file upload flaw in its theme installation feature, which installs PHP files from uploaded ZIP archives into the web-accessible public/ directory without extension or content filtering. An attacker with network access and a backend account holding theme-upload permission can upload a crafted ZIP and then request the installed PHP files over HTTP to execute code on the server, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:13Z"},"euvd":{"id":"EUVD-2026-28260","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ci4-cms-erp-ci4ms-cve-2026-41587","children":[{"from":"CVE-2026-41587","to":"CVE-2026-41890","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:ci4-cms-erp/ci4ms","fromFixed":"0.31.7.0","toFixed":"0.31.8.0","daysApart":0},{"kind":"same-code","provenance":"machine","files":["modules/Theme/Controllers/Theme.php"],"commits":["https://github.com/ci4-cms-erp/ci4ms/commit/b969465e71eacd9eb57014ad1fce1fc34fa7bca0","https://github.com/ci4-cms-erp/ci4ms/commit/2f38284281ce6b435ea42003951f14109ac2cea7"],"basis":"shared function","functions":["upload"]}]},{"from":"CVE-2026-41587","to":"CVE-2026-41891","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:ci4-cms-erp/ci4ms","fromFixed":"0.31.7.0","toFixed":"0.31.8.0","daysApart":0},{"kind":"same-code","provenance":"machine","files":["modules/Theme/Controllers/Theme.php"],"commits":["https://github.com/ci4-cms-erp/ci4ms/commit/b969465e71eacd9eb57014ad1fce1fc34fa7bca0","https://github.com/ci4-cms-erp/ci4ms/commit/2f38284281ce6b435ea42003951f14109ac2cea7"],"basis":"shared function","functions":["upload"]}]}],"packageHistory":[{"cve":"CVE-2026-41201","published":"2026-05-07","fixed":"0.31.5.0","kev":false,"link":{"from":"CVE-2026-41201","to":"CVE-2026-41587","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:ci4-cms-erp/ci4ms","fromFixed":"0.31.5.0","toFixed":"0.31.7.0","daysApart":0}]}},{"cve":"CVE-2026-41202","published":"2026-05-07","fixed":"0.31.5.0","kev":false},{"cve":"CVE-2026-41203","published":"2026-05-07","fixed":"0.31.5.0","kev":false},{"cve":"CVE-2026-41587","published":"2026-05-07","fixed":"0.31.7.0","kev":false},{"cve":"CVE-2026-41890","published":"2026-05-07","fixed":"0.31.8.0","kev":false},{"cve":"CVE-2026-41891","published":"2026-05-07","fixed":"0.31.8.0","kev":false},{"cve":"CVE-2026-45138","published":"2026-07-19","fixed":"0.31.9.0","kev":false}],"package":"Packagist:ci4-cms-erp/ci4ms"}}