{"id":"CVE-2026-62955","published":"2026-11-19T20:25:27Z","modified":"2026-11-19T20:25:27Z","title":"baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)","vendor":"baserproject","product":"basercms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01062,"percentile":0.65412,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/baserproject/basercms/security/advisories/GHSA-2pj4-v76f-wjvx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/baserproject/basercms/commit/464227b8770704076ee6eddd4bd464c184786eca","tags":["x_refsource_MISC"]},{"url":"https://github.com/baserproject/basercms/commit/c650017acf5dfbfd15eb2f3eda07967bcb002be2","tags":["x_refsource_MISC"]},{"url":"https://github.com/baserproject/bc-theme-file/commit/a8f90096f13eca576a87cb25aa02e8f54642af7e","tags":["x_refsource_MISC"]},{"url":"https://github.com/baserproject/basercms/releases/tag/5.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":23.1,"factors":[{"name":"EPSS percentile","points":13.08},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.04}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-20","earliestUrl":"https://github.com/googlesky/CVE-2026-62955","repos":[{"name":"googlesky/CVE-2026-62955","url":"https://github.com/googlesky/CVE-2026-62955","stars":0,"created":"2026-11-20"}]},"first":{"date":"2026-11-20","source":"PoC-in-GitHub","url":"https://github.com/googlesky/CVE-2026-62955"},"provenance":"source"},"vendorSlug":"baserproject","affectedVersions":[{"vendor":"baserproject","product":"basercms","versions":[">= 5.2.3, < 5.3.0"]}],"affected":[{"ecosystem":"Packagist","package":"baserproject/baser-core","vulnerableRanges":["<5.3.0"],"patched":["5.3.0"],"from":["GHSA-2pj4-v76f-wjvx"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-130719","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-baserproject-basercms-cve-2026-30940","parents":[{"from":"CVE-2026-30940","to":"CVE-2026-62955","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"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.","from":"CVE.org","in":"CVE-2026-62955"}]},{"from":"CVE-2026-114622","to":"CVE-2026-62955","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["plugins/bc-theme-file/src/Service/BcThemeFileService.php","plugins/bc-theme-file/src/Service/ThemeFilesService.php","plugins/bc-theme-file/src/Service/ThemeFoldersService.php"],"commits":["https://github.com/baserproject/basercms/commit/53ecf177dfb10eb1fb89c4b42d313983329aa162","https://github.com/baserproject/basercms/commit/464227b8770704076ee6eddd4bd464c184786eca","https://github.com/baserproject/basercms/commit/c650017acf5dfbfd15eb2f3eda07967bcb002be2"],"basis":"shared function","functions":["copyToTheme","getFullpath","update"]}]},{"from":"CVE-2026-114623","to":"CVE-2026-62955","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["plugins/bc-theme-file/src/Service/BcThemeFileService.php","plugins/bc-theme-file/src/Service/ThemeFilesService.php","plugins/bc-theme-file/src/Service/ThemeFoldersService.php"],"commits":["https://github.com/baserproject/basercms/commit/53ecf177dfb10eb1fb89c4b42d313983329aa162","https://github.com/baserproject/basercms/commit/464227b8770704076ee6eddd4bd464c184786eca","https://github.com/baserproject/basercms/commit/c650017acf5dfbfd15eb2f3eda07967bcb002be2"],"basis":"shared function","functions":["copyToTheme","getFullpath","update"]}]}]}}