baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)
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…
Proof-of-concept code is published
Public PoC
- Public PoCgooglesky/CVE-2026-62955
Signals come from Exploit-DB, Metasploit, Nuclei and published proof-of-concept repositories. Their absence means nothing was found, not that nothing exists.
Assessment
- CVSS
- 7.2 (v3.1)
- Severity
- High
- EPSS
- 0.01062% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Public PoC
- Published
- 20 November 2026
- Last updated
- 20 November 2026
- Affected
- baserproject/baser-core
- Weakness
- CWE-22
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
At the source
References
- https://github.com/baserproject/basercms/security/advisories/GHSA-2pj4-v76f-wjvx
- https://nvd.nist.gov/vuln/detail/CVE-2026-62955
- 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
- https://github.com/advisories/GHSA-2pj4-v76f-wjvx
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-62955