PrestaShop before 8.2.9 and 9.0.0 before 9.2.1 contains a path traversal vulnerability in back-office theme and module archive import that allows authenticated employees to write files outside intended directories. Attackers can craft a theme name in config/theme.yml or upload a module archive extracted before validation to place PHP files in web-accessible locations and execute code.
https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-7q68-ch46-pxmc
https://github.com/PrestaShop/PrestaShop/releases/tag/9.2.1
https://github.com/PrestaShop/PrestaShop/releases/tag/8.2.9
https://github.com/PrestaShop/PrestaShop/commit/ff100164be70b573c9beb059fc828189e934479c
https://github.com/PrestaShop/PrestaShop/commit/c1087264a329cdafb34b1ddbb368972043fd696e
https://github.com/PrestaShop/PrestaShop/commit/63ffaf0a1c48638970e12a4d1c23d7272db6b84f
https://github.com/PrestaShop/PrestaShop/commit/446da0c02b8ad9bcbdd61f5791d8e551dfab1150
https://github.com/PrestaShop/PrestaShop/blob/9.1.5/src/Core/Addon/Theme/ThemeManager.php#L404-L470