high7.2
CVE-2026-30940
baserCMS Path Traversal Leads to Arbitrary File Write and RCE via Theme File API
Impact
baserCMS is a website development framework. Prior to version 5.2.3, a path traversal vulnerability exists in the theme file management API (/baser/api/admin/bc-theme-file/theme_files/add.json) that allows arbitrary file write. An authenticated administrator can include ../ sequences in the path parameter to create a PHP file in an arbitrary directory outside the theme directory, which may result in remote code execution (RCE). This issue has been patched in version 5.2.3.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | baserproject/basercms | <= 5.2.2 | 5.2.3 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Basercms | Basercms | before 5.2.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-c5c6-37vq-pjcq
- https://github.com/baserproject/basercms/security/advisories/GHSA-c5c6-37vq-pjcq
- https://nvd.nist.gov/vuln/detail/CVE-2026-30940
- https://basercms.net/security/JVN_20837860
- https://github.com/baserproject/basercms/releases/tag/5.2.3