# CVE-2026-41587: CI4MS: Unrestricted PHP File Upload via Theme Installation Leads to Authenticated Remote Code Execution

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-29T20:42:44.000Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-fw49-9xq4-gmx6
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.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.

(As written by CVE List.)

## Affected

- ci4-cms-erp ci4ms: >= 0.26.0.0, < 0.31.7.0
- ci4-cms-erp/ci4ms (Packagist): from 0.26.0.0 before 0.31.7.0

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-fw49-9xq4-gmx6> (exploit, web)
- <https://github.com/ci4-cms-erp/ci4ms/commit/b969465e71eacd9eb57014ad1fce1fc34fa7bca0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41587> (advisory)
- <https://github.com/ci4-cms-erp/ci4ms> (package)

## Sources

- CVE List: [CVE-2026-41587](https://www.cve.org/CVERecord?id=CVE-2026-41587), CVE Terms of Use, modified 2026-05-07
- GitHub Advisory Database: [GHSA-fw49-9xq4-gmx6](https://github.com/advisories/GHSA-fw49-9xq4-gmx6), CC-BY-4.0, modified 2026-05-08
- NVD: [CVE-2026-41587](https://nvd.nist.gov/vuln/detail/CVE-2026-41587), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41587 · Whole record: https://cve.day/CVE-2026-41587.json · Rebuilt by cve.day 2026-11-25T22:59:20.846Z
