BuzzPHP
LightDarkSystem

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

High severity. Published 20 November 2026. Update baserproject/baser-core to 5.3.0 or later: composer update baserproject/baser-core.

Which versions are affected?

PackageAffected versionsFixed in
baserproject/baser-core (opens in a new tab)< 5.3.05.3.0

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show baserproject/baser-core
composer audit

Advisory details

SeverityHighCVSS 7.2
Published
Updated
CVECVE-2026-62955 (opens in a new tab)
GHSAGHSA-2pj4-v76f-wjvx (opens in a new tab)
WeaknessCWE-22

What the advisory says

Summary

The security patch introduced in baserCMS 5.2.3 to address CVE-2026-30940 / 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.

Source: GHSA-2pj4-v76f-wjvx (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories