Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to admin API as administrator
-
DeliverySubmit theme-file add request with non-existent type
-
Exploitrealpath() fails, containment check skipped
-
ExecutionWrite PHP webshell into webroot via ../ traversal
-
ImpactRequest shell over HTTP for code execution as web user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated baserCMS administrator (CVSS PR:H) reaching the admin theme-file API, which in the documented PoC requires USE_CORE_ADMIN_API=true in .env, the BcThemeFile plugin installed, and a theme loaded (e.g. BcThemeSample). The specific trigger condition is that the supplied type parameter must map to a subdirectory that does NOT physically exist on disk, so realpath($baseDir) returns false and the containment check is skipped entirely; against an existing directory the traversal is blocked. Affected versions are 5.2.3 up to (not including) 5.3.0. Limiting factors beyond admin authentication: the API must be enabled, and each exploit creates the target directory as a side effect (one-shot per non-existent path), though an attacker can restore the bypass by rotating to other unused type values; writing an executable webshell additionally requires a PHP-process-writable, HTTP-reachable directory such as webroot/ to reach full RCE. |
| Impact | This is a genuine high-priority issue for the specific population running baserCMS 5.2.3-5.2.x, not a high-CVSS paper risk. The CVSS 7.2 vector (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) correctly captures a network-reachable, low-complexity flaw whose single real gating factor is PR:H - exploitation requires an authenticated administrator. The decisive aggravating signal is that this is a confirmed incomplete-fix bypass of CVE-2026-30940: operators who upgraded specifically to remediate that bug remain exploitable, and the GHSA advisory documents author-verified remote code execution on the supposedly-patched 5.2.3 build. No CISA KEV listing and no EPSS score are present in the input, so there is no evidence of active or widespread exploitation; the vuln.today priority is 'this_week' (not act_now/emergency), consistent with a serious but authentication-gated bug rather than a mass-exploited internet threat. The main tension to flag: raw impact is RCE-grade (C:H/I:H/A:H), but the PR:H admin requirement sharply narrows the realistic attacker set to someone who already holds admin credentials or has chained a prior auth bypass - defenders should weigh this accordingly rather than treating it as unauthenticated RCE. |
| Exploit ScenarioDerived | An attacker holding (or having phished/brute-forced) baserCMS administrator credentials on a 5.2.x instance with the core admin API enabled calls the theme-file API with a type value mapping to a directory that does not yet exist, causing realpath() to return false and the containment check to be skipped. They supply a ../ traversal path and PHP contents to drop a webshell into webroot/, then request it over HTTP to run commands as the web-server user. A complete, author-verified PoC (curl-based request sequence with captured command-execution output) is published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
Authenticated baserCMS administrators on 5.2.3 up to (but not including) 5.3.0 can escape the theme directory through the theme-file API and write, overwrite or delete files with the PHP process's privileges, escalating to remote code execution where an executable PHP file lands in a web-reachable, writable directory. The issue is an incomplete fix for CVE-2026-30940: BcThemeFileService::getFullpath() only runs its realpath()-based containment check when the base directory actually resolves on disk, so supplying a type value that maps to a non-existent theme subdirectory makes realpath() return false and the validation block is skipped entirely, returning the raw traversal path unvalidated. Exploitation requires admin credentials plus the documented deployment prerequisites (USE_CORE_ADMIN_API=true, BcThemeFile plugin installed, a theme loaded), there is no CISA KEV listing, and the upstream advisory includes a proof-of-concept with verified output on 5.2.3 while 5.3.0 ships the corrected logic.
RemediationAI
Upgrade baserCMS to 5.3.0 or later, which is the vendor-released fix; the relevant changes ship in https://github.com/baserproject/basercms/commit/464227b8770704076ee6eddd4bd464c184786eca, https://github.com/baserproject/basercms/commit/c650017acf5dfbfd15eb2f3eda07967bcb002be2 and https://github.com/baserproject/bc-theme-file/commit/a8f90096f13eca576a87cb25aa02e8f54642af7e, tracked by https://github.com/baserproject/basercms/security/advisories/GHSA-2pj4-v76f-wjvx. Because this is a bypass of the CVE-2026-30940 patch, upgrading only to 5.2.3 leaves the site exploitable. If 5.3.0 cannot be deployed immediately, the concrete compensating controls are: disable or uninstall the bc-theme-file plugin until patched (theme files can then no longer be created or edited through either the API or the admin UI); set USE_CORE_ADMIN_API=false in .env so the documented JWT-based API path used by the PoC is unavailable, keeping in mind that the admin SPA still works over session cookies and that the fix also hardens the admin web path where a request-supplied fullpath is used directly; restrict access to the admin area and /baser/api/admin/* to trusted networks at the reverse proxy, at the cost of blocking legitimate remote administrators; and make the webroot non-executable for PHP (for example remove PHP handling for uploaded/theme directories or serve them as static files) so that even a successful arbitrary write cannot become code execution, though this does not prevent file overwrite or deletion of configuration and other writable data. Review theme and webroot directories for unexpected PHP files and rotate administrator credentials if compromise is suspected.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
baserCMS is a PHP/CakePHP content management framework whose theme-file plugin (bc-theme-file) exposes an admin API for creating and editing files inside a theme. BcThemeFileService::getFullpath() builds a base directory from the request's theme, plugin and type parameters ($baseDir = $viewPath . $type . DS) and concatenates the attacker-supplied path onto it. The 5.2.3 patch for the original CVE-2026-30940 added a CWE-22 containment check that canonicalises $baseDir with realpath() and compares the target prefix - but wrapped the whole check in 'if ($resolvedBase !== false)'. PHP's realpath() returns false for paths that do not exist, so any type mapping to a directory absent from the theme (the sample theme has css and img but no js, for example) bypasses validation altogether and the function returns the unnormalised '../' path. The CWE-22 root cause is therefore a conditional guard whose failure mode is 'skip the check' rather than 'deny'. The fix in 5.3.0 normalises the base with the class's own normalizePath() when realpath() fails, validates $fullPath itself rather than dirname($fullPath), whitelists $type against BcThemeFileUtil::getTemplateTypeName(), constrains the ext field to alphanumerics/hyphen/underscore, and adds an assertWithinThemeDir() sink-level check on create/update/delete/copy so the admin web path - which passes a request-supplied fullpath directly to the filesystem - is also covered. The CPE cpe:2.3:a:baserproject:basercms:*:*:*:*:*:*:*:* is a wildcard, so version scoping comes from the advisory data: composer package baserproject/baser-core vulnerable at <= 5.2.3, fixed in 5.3.0.
Know when Basercms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Network admin API (AV:N) with an authenticated administrator required (PR:H), straightforward bypass via a non-existent type directory (AC:L), no user interaction; arbitrary file write/delete and RCE give C:H/I:H/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-22 (path traversal), with the advisory also tagging CWE-706 (use of incorrectly-resolved name/reference).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
CVE-2026-62955 is a high-severity vulnerability in baserCMS (versions 5.2.3 to before 5.3.0) that allows authenticated administrators to escape the theme directory and write or delete files, potentially leading to remote code execution. This affects organizations using baserCMS with the BcThemeFile plugin and core admin API enabled, requiring immediate remediation to prevent system compromise.
No vendor-released patch identified at time of analysis. As interim mitigations, disable the BcThemeFile plugin, set USE_CORE_ADMIN_API to false, restrict admin access to trusted IPs, and enforce multi-factor authentication for administrators.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
In baserCMS before 4.1.4, lib\Baser\Model\ThemeConfig.php allows remote attackers to execute arbitrary PHP code via the
Authorization bypass in baserCMS before 5.3.0 lets an authenticated operator account read administrator-restricted confi
SQL injection vulnerability in the baserCMS 3.0.14 and earlier, 4.0.5 and earlier allows remote attackers to execute arb
baserCMS is a website development framework. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploita
baserCMS is a website development framework. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploita
baserCMS is a Content Management system. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,
baserCMS is a Content Management system. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,
OS command injection in baserCMS installer prior to version 5.2.3 allows remote attackers to execute arbitrary system co
OS command injection in baserCMS update functionality allows authenticated administrators to execute arbitrary commands
OS command injection in baserCMS core update functionality allows authenticated administrators to execute arbitrary syst
SQL injection in baserCMS 5.0.0 through 5.3.1 and 5.4.0 through 5.4.1 allows a user who can log into the admin panel to
baserCMS 3.0.14 and earlier, 4.0.5 and earlier allows an attacker to execute arbitrary PHP code on the server via unspec
EUVD-2026-130719
GHSA-2pj4-v76f-wjvx
NVD
CVE.org
EPSS
Exploit-DB