PrestaShop debug mode flaw allows PHP code injection by authenticated back-office users
- Severity
- High
- Highest CVSS
- 5.4
- Exploited
- Not known
- Sources
- 1
What happened
CVE-2026-124916 (CERT/CC VU385711) is a PHP code injection in PrestaShop's Performance Debug mode. The debugcookiename and debugcookievalue values are written unescaped into define() in config/defines.inc.php or config/definescustom.inc.php, and the injected code runs on a subsequent request. Exploitation needs an authenticated back-office account with debug-mode permission and a PHP-writable config file. Affected versions are not yet confirmed; PrestaShop 9.2.1 fixes it. Defenders should upgrade to 9.2.1 or later, restrict debug-mode permissions and back-office access, and make the config files non-writable by the PHP process if upgrade is not immediate.
For security analysts · Written by AI from 1 source · Wrong?
What to do
- Upgrade PrestaShop to version 9.2.1 or later.
- Limit Performance and Debug mode permissions to trusted administrators only.
- Restrict network access to the back office where possible.
- Prevent the PHP process from writing to config/defines.inc.php and config/definescustom.inc.php if an immediate upgrade is not possible.
Written by AI from the sources, checked against them
Vulnerabilities
Full story timeline · 2 updates
Who reported · 1 outlet
Who and what is in it
Products