CVE-2026-62955
baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)
- CVSS
- 7.2
- EPSS
- 1.09% (p66)
- Published
- 2026-11-19
- Age
- 14d old
- Modified
- 2026-11-24
- Product
- baserproject basercms
- Aliases
- GHSA-2pj4-v76f-wjvx
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
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.
Fixed in
5.3.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Packagist | baserproject/baser-core | < 5.3.0 | 5.3.0 |
| Packagist | baserproject/baser-core | >=0, <5.3.0 | 5.3.0 |
Sources
- NVD · first seen 14d ago · NVD terms of use
- OSV · first seen 14d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 14d ago · CC-BY 4.0
- CVE List · first seen 14d ago · CVE Terms of Use
References
- https://github.com/baserproject/basercms/security/advisories/GHSA-2pj4-v76f-wjvx x_refsource_CONFIRM
- https://github.com/baserproject/basercms/commit/464227b8770704076ee6eddd4bd464c184786eca x_refsource_MISC
- https://github.com/baserproject/basercms/commit/c650017acf5dfbfd15eb2f3eda07967bcb002be2 x_refsource_MISC
- https://github.com/baserproject/bc-theme-file/commit/a8f90096f13eca576a87cb25aa02e8f54642af7e x_refsource_MISC
- https://github.com/baserproject/basercms/releases/tag/5.3.0 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62955.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-62955 advisory
- https://github.com/advisories/GHSA-2pj4-v76f-wjvx other
- https://github.com/baserproject/basercms package