# CVE-2026-45139: ci4-cms-erp CI4MS file deletion and rename in Fileeditor module

Source: https://junglewise.ai/threats/cve-2026-45139-ci4-cms-erp-ci4ms-file-deletion-and-rename-in-fileeditor-module  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-20. Updated: 2026-07-20  
License: CC BY 4.0 with a link back

CVE-2026-45139 · Severity: medium · CVSS 6.5 · Published 2026-07-20

CI4MS, a content management system based on CodeIgniter 4, contains a vulnerability in its file management module. An authorized user with file-editing permissions can bypass security restrictions to rename or delete critical system files, such as database configurations or the application's main entry point. This can lead to a permanent shutdown of the website, requiring a manual re-installation of the software to restore service.

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-45139 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-45139 being exploited in the wild.

**How severe is CVE-2026-45139?** Medium severity, with a CVSS score of 6.5, published 20 July 2026.

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

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

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

**Am I affected by CVE-2026-45139?** 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.9.0 or later

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


## Technical details

A vulnerability exists in the Fileeditor module of CI4MS due to inconsistent application of extension allowlists. While 'saveFile' and 'createFile' operations enforce an allowlist (css, js, html, etc.), the 'deleteFileOrFolder' and 'renameFile' endpoints do not validate the extension of the source path. An authenticated attacker with 'fileeditor.delete' or 'fileeditor.update' permissions can target files outside the '$hiddenItems' blocklist, including critical framework files like 'app/Config/Database.php' or 'public/index.php'. By unlinking or renaming these files, an attacker can cause a persistent Denial of Service (DoS). The issue is resolved in version 0.31.9.0 by enforcing the extension allowlist across all destructive operations.

## Affected products

- ci4-cms-erp CI4MS <= 0.31.8.0

## Identifiers

- CVE-2026-45139
- GHSA-245j-xjvr-xvm5

## Timeline

- 2026-05-08: patched: Version 0.31.9.0 released
- 2026-05-14: advisory: GitHub Security Advisory published
- 2026-07-20: disclosed: NVD publication date

## References

- [https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.9.0](https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.9.0)
- [https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-245j-xjvr-xvm5](https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-245j-xjvr-xvm5)

## 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 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)
- [CI4MS has Unrestricted PHP File Upload via Theme Installation that Leads to Authenticated Remote Code Execution](https://junglewise.ai/threats/cve-2026-41587-ci4ms-has-unrestricted-php-file-upload-via-theme-installation)
