CVE-2022-31181
PrestaShop eval injection possible if shop vulnerable to SQL injection
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.
Description
PrestaShop is an Open Source e-commerce platform. In versions from 1.6.0.10 and before 1.7.8.7 PrestaShop is subject to an SQL injection vulnerability which can be chained to call PHP's Eval function on attacker input. The problem is fixed in version 1.7.8.7. Users are advised to upgrade. Users unable to upgrade may delete the MySQL Smarty cache feature.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| composer::GitHub Security Advisory Composer | prestashop/prestashop | 1.7.8.7 |
References
- https://github.com/PrestaShop/PrestaShop
- https://github.com/PrestaShop/PrestaShop/commit/b6d96e7c2a4e35a44e96ffbcdfd34439b56af804
- https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.7
- https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-hrgx-p36p-89q4
- https://nvd.nist.gov/vuln/detail/CVE-2022-31181