{"id":"CVE-2026-62955","summary":"baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)","details":"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.","aliases":["GHSA-2pj4-v76f-wjvx"],"modified":"2026-11-24T20:48:27.900323185Z","published":"2026-11-19T20:25:27.503Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62955.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/baserproject/basercms/releases/tag/5.3.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62955.json"},{"type":"ADVISORY","url":"https://github.com/baserproject/basercms/security/advisories/GHSA-2pj4-v76f-wjvx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62955"},{"type":"FIX","url":"https://github.com/baserproject/basercms/commit/464227b8770704076ee6eddd4bd464c184786eca"},{"type":"FIX","url":"https://github.com/baserproject/basercms/commit/c650017acf5dfbfd15eb2f3eda07967bcb002be2"},{"type":"FIX","url":"https://github.com/baserproject/bc-theme-file/commit/a8f90096f13eca576a87cb25aa02e8f54642af7e"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/baserproject/basercms","events":[{"introduced":"4cab078c93054f55d8fb36990a7ec7550f443932"},{"fixed":"ef5ee92e5a2952e46874f12afbfee12f98f933bb"},{"fixed":"464227b8770704076ee6eddd4bd464c184786eca"},{"fixed":"c650017acf5dfbfd15eb2f3eda07967bcb002be2"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"5.2.3"},{"fixed":"5.3.0"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"464227b8770704076ee6eddd4bd464c184786eca"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"c650017acf5dfbfd15eb2f3eda07967bcb002be2"}],"source":"REFERENCES_COMMIT"},{"original_tag":"5.3.0","range":[{"fixed":"ef5ee92e5a2952e46874f12afbfee12f98f933bb"}],"source":"REFERENCES_TAG"}]}},{"type":"GIT","repo":"https://github.com/baserproject/bc-theme-file","events":[{"introduced":"0"},{"fixed":"a8f90096f13eca576a87cb25aa02e8f54642af7e"}],"database_specific":{"extracted_events":[{"source":"REFERENCES_COMMIT","range":[{"fixed":"a8f90096f13eca576a87cb25aa02e8f54642af7e"}]}]}}],"versions":["5.2.9","5.2.8","5.2.7","5.2.6","5.2.5.1","5.2.5","5.2.4","5.2.3","5.2.2","5.2.1","5.2.0","5.1.9","5.1.8","5.1.7","5.1.6","5.1.5","5.1.4","5.1.3","5.1.10","5.0.21","5.1.2","5.1.1","5.1.0","5.0.20","5.0.19","5.0.18","5.0.17","5.0.16","5.0.15","5.0.14","5.0.13","5.0.12","5.0.9","5.0.8","5.0.11","5.0.10","5.0.7","5.0.6","5.0.5","5.0.4","5.0.3","5.0.2","5.0.1","5.0.0","5.0.0-beta4","5.0.0-beta3","5.0.0-beta2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-62955.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"}]}