# CVE-2026-30940: baserCMS: Path Traversal in Theme File API Leads to Arbitrary File Write and RCE

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/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): 1.18%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-31T00:45:35.177Z
- Modified: 2026-09-10T03:50:38.564Z
- Also known as: GHSA-c5c6-37vq-pjcq
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- baserproject basercms: < 5.2.3
- baserproject/basercms (Packagist): before 5.2.3
- basercms basercms: before 5.2.3

## Every score

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

## References

- <https://github.com/baserproject/basercms/security/advisories/GHSA-c5c6-37vq-pjcq> (exploit, vendor-advisory, web)
- <https://basercms.net/security/JVN_20837860> (vendor-advisory, web)
- <https://github.com/baserproject/basercms/releases/tag/5.2.3> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-30940> (advisory)
- <https://github.com/baserproject/basercms> (package)

## Sources

- CVE List: [CVE-2026-30940](https://www.cve.org/CVERecord?id=CVE-2026-30940), CVE Terms of Use, modified 2026-04-02
- GitHub Advisory Database: [GHSA-c5c6-37vq-pjcq](https://github.com/advisories/GHSA-c5c6-37vq-pjcq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-30940](https://nvd.nist.gov/vuln/detail/CVE-2026-30940), Public domain, modified 2026-06-17

---

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