CI4MS has an .env CRLF Injection via Unvalidated `host` Parameter in Install Controller
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. Prior to 0.31.4.0, the Install::index() controller reads the host POST parameter without any validation and passes it directly into updateEnvSettings(), which writes it into the .env file via preg_replace(). Because newline characters in the value are not stripped, an attacker can inject arbitrary configuration directives into the .env file. The install routes have CSRF protection explicitly disabled, and the InstallFilter can be bypassed when cache('settings') is empty (cache expiry or fresh deployment). This vulnerability is fixed in 0.31.4.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ci4-cms-erp | ci4ms | before 0.31.4.0 | 0.31.4.0 | Patch available | CNA |
| — | ci4-cms-erp/ci4ms (Packagist) | before 0.31.4.0 | 0.31.4.0 | Patch available | GHSA-vfhx-5459-qhqh |
- ci4ms Vendorci4-cms-erp Affected before 0.31.4.0 Fixed in 0.31.4.0 Patch available CNA
- ci4-cms-erp/ci4ms (Packagist) Vendor— Affected before 0.31.4.0 Fixed in 0.31.4.0 Patch available GHSA-vfhx-5459-qhqh
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ci4-cms-erp:ci4ms:*:*:*:*:*:*:*:* | before 0.31.4.0 | Vulnerable | ci4-cms-erp |
- cpe:2.3:a:ci4-cms-erp:ci4ms:*:*:*:*:*:*:*:* Versions before 0.31.4.0 Vulnerable ·ci4-cms-erp
Remediation
- Fix · CNA ci4ms (ci4-cms-erp) Fixed in 0.31.4.0
- Fix · GHSA-vfhx-5459-qhqh ci4-cms-erp/ci4ms (Packagist) Fixed in 0.31.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-39394
- 2026-10-03 Alias added: GHSA-vfhx-5459-qhqh
References
More ci4-cms-erp Ci4ms vulnerabilities
- TI-2026-26819 Improper access control in ci4-cms-erp ci4ms CVSS 3.1HIGH 8.8
- TI-2026-27211 Cross-site scripting in ci4-cms-erp ci4ms CVSS 4.0CRITICAL 9.4
- TI-2026-26820 Cross-site scripting in ci4-cms-erp ci4ms CVSS 3.1CRITICAL 10.0
- TI-2026-26818 CI4MS: Blogs Categories Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS CVSS 3.1CRITICAL 10.0
- TI-2026-27238 Cross-site scripting in ci4-cms-erp ci4ms CVSS 3.1CRITICAL 9.0
- TI-2026-26821 Improper access control in ci4-cms-erp ci4ms CVSS 3.1HIGH 8.8
Sources
- CVE-2026-39394 · CVE Program
- CVE-2026-39394 · NVD
- FIRST EPSS
- GHSA-vfhx-5459-qhqh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences