Thelia versions before 3.1.2 and 3.2.x before 3.2.1 have an unrestricted file upload vulnerability. Authenticated back-office users can upload PHP files by exploiting a filename handling flaw involving trailing spaces. This allows storing executable PHP files in the public cache directory, enabling code execution as the web server user.