CVE-2026-124916
PrestaShop contains an authenticated PHP code injection vulnerability in the back-office Performance debug-mode configuration. A back-office user with permission to modify debug settings can supply a crafted `debug_cookie_name` or `debug_cookie_value` that is written without sufficient escaping into a PHP configuration file. When PrestaShop subsequently loads the generated file, the injected PHP code is executed with the privileges of the web-server process.
Am I affected?
Sign in and add the software you use to your watchlist: we check it against every new vulnerability.
Show me how to fix itTimeline
- First covered by RedTeamDaily
- Published by NVD
- Last updated by NVD
Coverage
PrestaShop debug mode flaw allows PHP code injection by authenticated back-office users
PrestaShop's back-office Debug mode does not properly escape the debugcookiename and debugcookievalue settings before writing them into a PHP define() statement. An authenticated user with permission to change debug settings can inject PHP that executes on a later request, with the privileges of the PHP process. The vendor fix is version 9.2.1.
Sources: NVD and CISA known exploited vulnerabilities catalogue.