# CVE-2026-39393: Post-Installation Re-entry via Cache-Dependent Install Guard Bypass in ci4ms

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T14:31:44.692Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-8rh5-4mvx-xj7j
- Weaknesses: CWE-306
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- ci4-cms-erp ci4ms: < 0.31.4.0; before 0.31.4.0
- ci4-cms-erp/ci4ms (Packagist): before 0.31.4.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-8rh5-4mvx-xj7j> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39393> (advisory)
- <https://github.com/ci4-cms-erp/ci4ms> (package)
- <https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.4.0> (web)

## Sources

- CVE List: [CVE-2026-39393](https://www.cve.org/CVERecord?id=CVE-2026-39393), CVE Terms of Use, modified 2026-04-10
- GitHub Advisory Database: [GHSA-8rh5-4mvx-xj7j](https://github.com/advisories/GHSA-8rh5-4mvx-xj7j), CC-BY-4.0, modified 2026-04-08
- NVD: [CVE-2026-39393](https://nvd.nist.gov/vuln/detail/CVE-2026-39393), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-39393 · Whole record: https://cve.day/CVE-2026-39393.json · Rebuilt by cve.day 2026-11-25T22:59:18.281Z
