## baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)

- 種別: advisory
- 重大度: high
- 関連技術: php, github
- CVE: CVE-2026-62955, CVE-2026-30940
- 公開日時: 2026-11-20T00:17:47.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-2pj4-v76f-wjvx)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-2pj4-v76f-wjvx

影響: composer:baserproject/baser-core < 5.3.0 → 5.3.0
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 patc…