Skip to content
OpenAdvisories
High · 7.2 CVE-2026-30940 EUVD-2026-17267GHSA-c5c6-37vq-pjcq

baserCMS: Path Traversal in Theme File API Leads to Arbitrary File Write and RCE

Published Mar 31, 2026 · Updated Apr 2, 2026 · 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.

Affected products

VendorProductAffectedFixed
baserproject basercms < 5.2.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist baserproject/basercms < 5.2.3 5.2.3 GHSA-c5c6-37vq-pjcq

References