Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-39394— CI4MS has an .env CRLF Injection via Unvalidated `host` Parameter in Install Controller

Quick assessment

Affected
ci4-cms-erp ci4ms
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

CI4MS是Ci4MS开源的一个博客页面管理工具。 CI4MS 0.31.4.0之前版本存在安全漏洞,该漏洞源于安装控制器读取host参数时未经验证即写入.env文件,且未剥离换行符,可能导致攻击者注入任意配置指令。

CVSS 8.1 · High EPSS 0.52% · P42

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-39394

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
CI4MS has an .env CRLF Injection via Unvalidated `host` Parameter in Install Controller
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对CRLF序列的转义处理不恰当(CRLF注入)
Source: CVE Program / CVE List V5
Vulnerability Title
CI4MS 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
CI4MS是Ci4MS开源的一个博客页面管理工具。 CI4MS 0.31.4.0之前版本存在安全漏洞,该漏洞源于安装控制器读取host参数时未经验证即写入.env文件,且未剥离换行符,可能导致攻击者注入任意配置指令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

II. Public POCs for CVE-2026-39394

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-39394

登录查看更多情报信息。

Vendor Advisories for CVE-2026-39394 (1)

Same Patch Batch · ci4-cms-erp · 2026-04-08 · 6 CVEs total

CVE-2026-39393 8.1 HIGH Post-Installation Re-entry via Cache-Dependent Install Guard Bypass in ci4ms
CVE-2026-39389 6.7 MEDIUM CI4MS has a Hidden Items Authorization Bypass in Fileeditor Allows Reading Secrets and Wri
CVE-2026-39390 5.5 MEDIUM CI4MS has Stored XSS via srcdoc attribute bypass in Google Maps iframe setting
CVE-2026-39392 5.5 MEDIUM CI4MS has Stored XSS in Pages Content Due to Missing html_purify Sanitization
CVE-2026-39391 4.8 MEDIUM CI4MS has Stored XSS via Unescaped Blacklist Note in Admin User List

IV. Related Vulnerabilities

V. Comments for CVE-2026-39394

No comments yet


Leave a comment