Skip to main content

Ci4ms CVE-2026-39393

| EUVDEUVD-2026-20487 HIGH
Missing Authentication for Critical Function (CWE-306)
2026-04-08 GitHub_M GHSA-8rh5-4mvx-xj7j
8.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Monitor install endpoint for 403→200 response change
  2. Delivery
    Database outage/cache expiry creates vulnerable state
  3. Exploit
    Submit malicious setup form with attacker DB credentials
  4. Install
    Application writes .env file with attacker values
  5. C2
    Application reconnects using compromised credentials
  6. Execute
    Extract data or inject admin account
  7. Impact
    Execute arbitrary code via database-stored content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Successful exploitation requires concurrent occurrence of two conditions: (1) cache('settings') object is absent due to TTL expiration or administrative cache clear operation, AND (2) database server is unreachable from the application server (network partition, database service down, connection pool exhaustion, firewall changes). The install route guard specifically checks these two signals in ci4ms/app/Filters/InstallFilter.php or equivalent. Installations with short cache TTL values (under 5 minutes), unstable database connectivity, or frequent administrative cache clearing face higher exploitation probability. Default CI4MS deployments with standard cache TTL and stable database connections have narrow exploitation windows. No special authentication, user interaction, or non-default configuration required once the race condition state is achieved. Attack success is independent of web server configuration but limited by attacker's ability to detect the vulnerable state window.

Impact

CVSS 8.1 (High) reflects the catastrophic impact of full application takeover (C:H/I:H/A:H) but accurately rates attack complexity as High (AC:H) since exploitation requires precise timing during concurrent cache expiry and database unavailability. The network attack vector (AV:N) and no authentication requirement (PR:N) mean any remote attacker can attempt exploitation, but success depends on environmental conditions outside attacker control. EPSS score of 0.01% (3rd percentile) indicates minimal observed exploitation attempts in the wild, consistent with the narrow exploitation window. No CISA KEV listing confirms absence of widespread active exploitation. GitHub security advisory provides official confirmation and remediation path. SSVC assessment: Exploitation status is POC (theoretical based on code analysis), automatable is NO (requires environmental race condition), Technical Impact is TOTAL (arbitrary code execution via database credential control). Real-world risk is MODERATE despite high CVSS - exploitation demands attacker monitoring for database outages or cache clears, making this opportunistic rather than reliably weaponizable. Organizations running CI4MS in unstable database environments or with aggressive cache invalidation policies face elevated risk. The vulnerability is more critical for internet-facing installations where attackers can continuously probe for the vulnerable state.

Exploit ScenarioDerived

Attacker continuously probes the CI4MS installation endpoint (/install or /setup) while monitoring for HTTP 200 responses instead of 403/404. During scheduled database maintenance, network partition, or resource exhaustion event that causes database unavailability, the application's cache simultaneously expires or an administrator clears cache. The installation wizard becomes accessible for a window of seconds to minutes. Attacker immediately submits the setup form with malicious database credentials pointing to attacker-controlled MySQL server, overwriting the legitimate .env file. On next application restart or cache refresh, CI4MS connects to the attacker's database, leaking all application data and allowing the attacker to inject administrative accounts, modify RBAC permissions, or execute arbitrary PHP code through database-stored templates.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Apr 16, 2026

CI4MS CMS skeleton versions below 0.31.4.0 permit complete application takeover through installation wizard re-access when the database becomes unreachable. Unauthenticated remote attackers exploit a race condition window during cache expiry or database downtime to bypass the install route guard and inject malicious database credentials into the .env configuration file. No active exploitation confirmed (not in CISA KEV), EPSS probability 0.01% indicates low observed targeting. Vendor patch released in version 0.31.4.0.

Earlier versions of this analysis (1)
v1 Apr 08, 2026 - 15:16 CVSS 8.1

Remote attackers can achieve full application takeover in CI4MS (CodeIgniter 4 CMS skeleton) versions prior to 0.31.4.0 by exploiting a fail-open authentication bypass in the installation route guard. When cache expires or database connectivity fails, unauthenticated attackers can re-access the setup wizard to overwrite .env configuration with malicious database credentials, gaining complete control of the application. No public exploit identified at time of analysis, though the attack vector is network-accessible with high complexity (CVSS:3.1/AV:N/AC:H/PR:N). EPSS data not available; real-world risk depends on deployment environments with intermittent database connectivity.

RemediationAI

Upgrade immediately to CI4MS version 0.31.4.0 or later, available from the official GitHub release at https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.4.0. The patched version implements persistent installation state tracking independent of cache availability and database connectivity. Until upgrade is feasible, apply compensating controls: (1) Remove or rename the installation controller file entirely after initial setup completes (app/Controllers/Install.php) - breaks reinstall capability but eliminates attack surface; (2) Add web server-level access restrictions to block /install/* routes via .htaccess (Apache) or nginx location blocks - prevents external access but requires manual removal for legitimate reinstalls; (3) Implement database connection monitoring and automated alerts for downtime - reduces exploitation window visibility but does not prevent the vulnerability; (4) Disable cache auto-invalidation and use manual cache management - reduces race condition frequency but impacts application performance and may cause stale data issues. The file deletion approach (option 1) provides strongest protection with minimal side effects for production systems not requiring reinstallation capability.

Affected VersionsENISA

ci4ms < 0.31.4.0

Affected Packages

composer ci4-cms-erp/ci4ms fix: 0.31.4.0
euvd ci4ms fix: 0.31.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CI4MS is a CodeIgniter 4 framework-based content management system skeleton providing modular architecture with role-based access control and theming capabilities (CPE: cpe:2.3:a:ci4-cms-erp:ci4ms). The vulnerability stems from improper authentication (CWE-306) in the installation route guard logic. The guard employs a two-factor check: presence of cache('settings') object and existence of .env file. During normal operation, successful database connection populates the settings cache. However, the design fails unsafe when the cache expires (TTL timeout) or is administratively cleared while the database is simultaneously unreachable. In this state, the cache check returns null and the guard interprets this as 'not installed' despite the .env file existing, re-exposing the setup wizard endpoint. The setup wizard allows arbitrary .env file overwrite, including database connection strings, application keys, and environment variables. This race condition creates an authentication bypass where transient infrastructure issues become security failures.

Know when Ci4ms gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 00:13 vuln.today
v2 - CVSS changed
Patch released
Apr 09, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 08, 2026 - 14:31 nvd
HIGH 8.1

DescriptionNVD

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 route guard in ci4ms relies solely on a volatile cache check (cache('settings')) combined with .env file existence to block post-installation access to the setup wizard. When the database is temporarily unreachable during a cache miss (TTL expiry or admin-triggered cache clear), the guard fails open, allowing an unauthenticated attacker to overwrite the .env file with attacker-controlled database credentials, achieving full application takeover. This vulnerability is fixed in 0.31.4.0.

Executive ViewAI

Why It Matters

CI4MS CMS skeleton versions prior to 0.31.4.0 contain a critical authentication bypass that allows unauthenticated attackers to regain access to the installation wizard during database outages, enabling them to modify application configuration and achieve complete system compromise. Organizations running affected versions face operational risk during database maintenance windows and potential unauthorized access to sensitive application configuration.

Business Impact: High
Compensating Controls

Vendor-released patch: version 0.31.4.0. Until patching is complete, restrict network access to installation routes (/install or equivalent) at firewall/WAF level, disable automatic cache expiry during database maintenance windows, and implement immediate failover for database connectivity to minimize downtime windows.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Ci4ms

View all
CVE-2026-25510 CRITICAL POC
9.9 Feb 03

CI4MS (CodeIgniter 4 CMS skeleton) has a code injection vulnerability (CVSS 9.9) allowing authenticated users to execute

CVE-2026-34558 CRITICAL
9.1 Mar 30

Stored Cross-Site Scripting in CI4MS methods management allows authenticated users to inject malicious JavaScript into a

CVE-2026-34557 CRITICAL
9.1 Mar 30

Stored cross-site scripting in CI4MS role/group management allows authenticated attackers to inject malicious JavaScript

CVE-2026-35035 CRITICAL
9.0 Apr 06

Stored cross-site scripting in CI4MS before 0.31.2.0 allows an authenticated user with System Settings → Company Informa

CVE-2026-34571 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS backend user management allows authenticated attackers with low-level privileges to

CVE-2026-34569 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS blog category management allows authenticated users to inject malicious JavaScript

CVE-2026-34568 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS before 0.31.0.0 lets an authenticated user with blog create/edit rights save JavaSc

CVE-2026-34567 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS (CodeIgniter 4 CMS) allows authenticated users with blog post management privileges

CVE-2026-34566 CRITICAL
9.0 Apr 01

Stored cross-site scripting (XSS) in CI4MS page management functionality allows authenticated attackers to inject malici

CVE-2026-34565 CRITICAL
9.0 Apr 01

Stored cross-site scripting (XSS) in CI4MS menu management allows authenticated users with low privileges to inject mali

CVE-2026-34564 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS menu management allows authenticated attackers to inject malicious scripts that exe

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy