baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)
- State
- Published
- Severity
- 7.2 High
- Published
- Nov 19, 2026
- Updated
- Nov 24, 2026
- Reserved
- Jul 14, 2026
Description
baserCMS is a website development framework. From 5.2.3 until 5.3.0, BcThemeFileService::getFullpath() in plugins/bc-theme-file/src/Service/BcThemeFileService.php skips its path containment check when realpath() fails for a nonexistent theme subdirectory selected by the type parameter. An authenticated administrator can supply a traversal path through the theme-file API to access locations outside the theme directory. The bypass of the CVE-2026-30940 fix can permit file writes, overwrites or deletion within the PHP process permissions and, where executable PHP can be written, remote code execution. This issue is fixed in 5.3.0.
| Product | Versions |
|---|---|
| basercms baserproject | >= 5.2.3, < 5.3.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.2 High | GitHub_M |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
- https://github.com/baserproject/basercms/security/advisories/GHSA-2pj4-v76f-wjvx
- https://github.com/baserproject/basercms/commit/464227b8770704076ee6eddd4bd464c184786eca
- https://github.com/baserproject/basercms/commit/c650017acf5dfbfd15eb2f3eda07967bcb002be2
- https://github.com/baserproject/bc-theme-file/commit/a8f90096f13eca576a87cb25aa02e8f54642af7e
- https://github.com/baserproject/basercms/releases/tag/5.3.0
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.