CVE-2026-62955
### Summary The security patch introduced in baserCMS 5.2.3 to address CVE-2026-30940 / [GHSA-c5c6-37vq-pjcq](https://github.com/baserproject/basercms/security/advisories/GHSA-c5c6-37vq-pjcq) is **incomplete**. The patch added a `realpath()`-based directory traversal check in `BcThemeFileService::getFullpath()`, but the check is **entirely skipped** when `realpath($baseDir)` returns `false` — which occurs whenever the target subdirectory does not physically exist on disk. An authenticated administrator can bypass the patch by supplying a `type` value (e.g., `js`) that maps to a non-existent directory in the theme. The absence of the directory causes `realpath()` to return `false`, the validation block is skipped, and the raw `path` parameter containing `../` sequences is returned unvalidated. This enables arbitrary file write and remote code execution (RCE) — the exact same impact as the original CVE. **This vulnerability was verified exploitable on baserCMS 5.2.3 (the "patched" version of CVE-2026-30940).** ### Details The vulnerability exists in `BcThemeFileService::getFullpath()` at [`plugins/bc-theme-file/src/Service/BcThemeFileService.php` lines 70–82](https://github.com/baserproject/basercms/blob/5.2.x/plugins/bc-theme-file/src/Service/BcThemeFileService.php#L70): ```php public function getFullpath(string $theme, string $plugin, string $type, string $path) { // ...build $baseDir and $fullPath from $theme, $type, $path... $baseDir = $viewPath . $type . DS; // e.g. .../BcThemeSample/webroot/js/ $fullPath = $baseDir . $path; // e.g. .../webroot/js/../../../../webroot/ $resolvedBase = realpath($baseDir); if ($resolvedBase !== false) { // ← BYPASS: entire block skipped when dir absent $resolvedBase = rtrim($resolvedBase, DS) . DS; $targetDir = realpath(dirname($fullPath)); if ($targetDir === false) { $targetDir = $this->normalizePath(dirname($fullPath)); } if (
Properties
- Severity
- high
- Summary
- baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)
- Nvd fetched at
- 2026-11-22T12:30:49.958423+00:00
- Epss score
- 0.01062
- Cvss severity
- HIGH
- Cvss score
- 7.2
- Retrieved at
- 2026-11-22T12:32:27+00:00
- Ghsa published
- 2026-11-20T00:17:47Z
- Source url
- https://github.com/advisories/GHSA-2pj4-v76f-wjvx
- Ghsa updated
- 2026-11-20T00:17:48Z
- Ghsa id
- GHSA-2pj4-v76f-wjvx
- Last source
- FIRST EPSS
- Score
- 7.2
- Cvss version
- 3.1
- Cve id
- CVE-2026-62955
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- First seen by Signal
- 2026-11-19T23:31:53+00:00
- Name
- CVE-2026-62955
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph