CVE-2022-31181Prestashop
Critical 9.8 No auth needed
Follow: this CVE · Prestashop · Prestashop We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 6.5% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Aug 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Prestashop.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | prestashop/prestashop |
≥ 1.6.0.10 < 1.7.8.7 |
1.7.8.7 |
composer require "prestashop/prestashop:^1.7.8.7" |
Per OSV / GitHub Advisories (GHSA-hrgx-p36p-89q4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| prestashop | prestashop | ≥ 1.6.0.10 < 1.7.8.7 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Mitigation Third Party Advisory