{"id":"CVE-2026-45139","published":"2026-07-20T13:58:39Z","modified":"2026-07-20T16:40:55Z","title":"CI4MS Fileeditor allows deletion and rename of critical application files due to missing extension allowlist on…","vendor":"ci4-cms-erp","product":"ci4ms","tier":"tail","description":{"text":"CI4MS is a CodeIgniter 4-based content management system skeleton. Prior to version 0.31.9.0, the Fileeditor module enforces an extension allowlist (`['css','js','html','txt','json','sql','md']`) on content-write operations (`saveFile`, `createFile`), but two destructive endpoints — `deleteFileOrFolder` and `renameFile` — never validate the extension of the *source* path. A backend user with file-editor permissions can therefore unlink or rename any file inside the project root that is not explicitly listed in the small `$hiddenItems` blocklist. Critical framework files such as `app/Config/Routes.php`, `app/Config/App.php`, `app/Config/Database.php`, `app/Config/Filters.php`, `public/index.php`, and `public/.htaccess` all live outside that blocklist and can be destroyed, producing a persistent denial of service that requires filesystem-level redeployment to recover. Version 0.31.9.0 patches the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00322,"percentile":0.2593,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-245j-xjvr-xvm5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.9.0","tags":["x_refsource_MISC"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":5.19},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"ci4-cms-erp","affectedVersions":[{"vendor":"ci4-cms-erp","product":"ci4ms","versions":["< 0.31.9.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-20T16:40:29.784246Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"ci4-cms-erp/ci4ms","vulnerableRanges":["<0.31.9.0"],"patched":["0.31.9.0"],"from":["GHSA-245j-xjvr-xvm5"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-45948","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-41890","published":"2026-05-07","fixed":"0.31.8.0","kev":false},{"cve":"CVE-2026-41891","published":"2026-05-07","fixed":"0.31.8.0","kev":false,"link":{"from":"CVE-2026-41891","to":"CVE-2026-45139","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:ci4-cms-erp/ci4ms","fromFixed":"0.31.8.0","toFixed":"0.31.9.0","daysApart":74}]}},{"cve":"CVE-2026-45138","published":"2026-07-19","fixed":"0.31.9.0","kev":false},{"cve":"CVE-2026-45139","published":"2026-07-20","fixed":"0.31.9.0","kev":false},{"cve":"CVE-2026-45270","published":"2026-07-20","fixed":"0.31.9.0","kev":false},{"cve":"CVE-2026-34989","published":"2026-04-06","fixed":"31.0.0.0","kev":false}],"package":"Packagist:ci4-cms-erp/ci4ms"}}