Live threats

All CVEs / Prestashop

CVE-2022-31181Prestashop

Critical 9.8 No auth needed

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
Weakness (CWE)
CWE-74, CWE-89
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Prestashop.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
prestashopprestashop≥ 1.6.0.10 < 1.7.8.7

Official sources

References

Links published by the sources. Open them with care.