# CVE-2026-39393: ci4-cms-erp CI4MS authentication bypass in installation wizard

Source: https://junglewise.ai/threats/cve-2026-39393-ci4-cms-erp-ci4ms-authentication-bypass-in-installation-wizard  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-08. Updated: 2026-07-24  
License: CC BY 4.0 with a link back

CVE-2026-39393 · Severity: high · CVSS 8.1 · Published 2026-04-08

CI4MS is a content management system (CMS) used to build and manage websites. A security flaw allows unauthenticated attackers to hijack the entire application by tricking it into running the setup wizard again. If the website's database is temporarily unavailable, an attacker can overwrite the system's configuration file with their own settings, effectively redirecting all website data to a server they control and gaining full administrative access.

Technologies: [Ci4ms](https://junglewise.ai/threats/technologies/ci4ms), [ci4-cms-erp/ci4ms (Packagist)](https://junglewise.ai/threats/technologies/ci4-cms-erp-ci4ms). Vendors: [Ci4ms](https://junglewise.ai/threats/vendors/ci4ms), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2026-39393 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-39393 being exploited in the wild.

**How severe is CVE-2026-39393?** High severity, with a CVSS score of 8.1, published 8 April 2026.

**Which products and versions are affected?** Ci4ms < 0.31.4.0; ci4-cms-erp/ci4ms (Packagist) ECOSYSTEM:introduced=0,fixed=0.31.4.0.

**Is there a fix for CVE-2026-39393?** Yes. ci4-cms-erp/ci4ms (Packagist): upgrade to 0.31.4.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-39393 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-39393?** Check whether you run Ci4ms or ci4-cms-erp/ci4ms (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- ci4-cms-erp/ci4ms (Packagist): upgrade to 0.31.4.0 or later

  ```sh
  composer require ci4-cms-erp/ci4ms:^0.31.4.0
  ```


## Technical details

The vulnerability exists in the `InstallFilter::before()` method, which relies on a volatile cache check (`cache('settings')`) and the existence of a `.env` file to block access to the installation wizard. During a cache miss (due to TTL expiry or admin-triggered clear) combined with a temporary database outage, the filter fails open because the application silently swallows database exceptions and leaves the cache empty. An unauthenticated attacker can then access the `/install` route, which is exempt from CSRF protection, and submit a POST request to overwrite the `.env` file with attacker-controlled database credentials. This results in a full application takeover, as the CMS will subsequently connect to the attacker's database for all operations. The issue is fixed in version 0.31.4.0 by implementing a persistent filesystem lock.

## Affected products

- ci4-cms-erp ci4ms < 0.31.4.0

## Identifiers

- CVE-2026-39393
- GHSA-8rh5-4mvx-xj7j

## Timeline

- 2026-04-07: advisory: GitHub Security Advisory published
- 2026-04-08: disclosed: CVE-2026-39393 published
- 2026-04-08: patched: Vulnerability fixed in version 0.31.4.0

## References

- [https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-8rh5-4mvx-xj7j](https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-8rh5-4mvx-xj7j)

## Related threats

- [ci4-cms-erp CI4MS stored XSS in Pages module](https://junglewise.ai/threats/cve-2026-45270-ci4-cms-erp-ci4ms-stored-xss-in-pages-module)
- [ci4-cms-erp CI4MS file deletion and rename in Fileeditor module](https://junglewise.ai/threats/cve-2026-45139-ci4-cms-erp-ci4ms-file-deletion-and-rename-in-fileeditor-module)
- [ci4-cms-erp ci4ms stored XSS in Blog and Pages content](https://junglewise.ai/threats/cve-2026-45138-ci4-cms-erp-ci4ms-stored-xss-in-blog-and-pages-content)
- [CI4MS has a Deactivated User Session Bypass (active=0)](https://junglewise.ai/threats/cve-2026-41891-ci4ms-has-a-deactivated-user-session-bypass-active-0)
- [CI4MS Vulnerable to Arbitrary Database Table Drop via Theme deleteProcess](https://junglewise.ai/threats/cve-2026-41890-ci4ms-vulnerable-to-arbitrary-database-table-drop-via-theme)
