Path traversal in baserCMS - CVE-2026-30940
Published: April 27, 2026
baserCMS
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to path traversal in the theme file management API endpoint /baser/api/admin/bc-theme-file/theme_files/add.json when processing the path parameter in file creation requests. A remote privileged user can send a specially crafted API request with ../ sequences to write a php file outside the theme directory and execute arbitrary code.
Direct exploitation requires API access, such as when USE_CORE_ADMIN_API=true.