Vulnerabilities · 2022 · Prestashop
CVE-2022-31181
Prestashop vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Prestashop. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Prestashop runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/PrestaShop/PrestaShop/commit/b6d96e7c2a4e35a44e96ffbcdfd34439b56af804 · Patch
- github.com/PrestaShop/PrestaShop/security/advisories/GHSA-hrgx-p36p-89q4 · Mitigation
- github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.7 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-31181
- cve.org/CVERecord?id=CVE-2022-31181
More vulnerabilities in Prestashop products
CVE-2025-61924CVE-2025-61923CVE-2025-61922CVE-2025-51586CVE-2025-25692CVE-2025-25691CVE-2024-41651CVE-2024-36684All 124
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.