HighGHSA-44wr-rmwq-3phw
Craft CMS vulnerable to Remote Code Execution via validatePath bypass
Affected versions
4.0.0-RC1 to before 4.4.15, 3.0.0 to before 3.8.15 - fixed in 4.4.15Details
### Summary Bypassing the validatePath function can lead to potential Remote Code Execution (Post-authentication, ALLOW_ADMIN_CHANGES=true) ### Details In bootstrap.php, the SystemPaths path is set as below. ```php // Set the vendor path. By default assume that it's 4 levels up from here $vendorPath = $findConfigPath('--vendorPath', 'CRAFT_VENDOR_PATH') ?? dirname(__DIR__, 3); // Set the "project root" path that contains config/, storage/, etc. By default assume that it's up a level from vendor/. $rootPath = $findConfigPath('--basePath', 'CRAFT_BASE_PATH') ?? dirname($vendorPath); // By de
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-40035
- https://github.com/craftcms/cms/security/advisories/GHSA-44wr-rmwq-3phw
- https://nvd.nist.gov/vuln/detail/CVE-2023-40035
- https://github.com/craftcms/cms/commit/0bd33861abdc60c93209cff03eeee54504d3d3b5
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/releases/tag/3.8.15
- https://github.com/craftcms/cms/releases/tag/4.4.15
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected