Patchfirst
CVE-2022-31181 Public exploit Critical · 9.8 EPSS 7.7%

Remote code execution in prestashop

Fix:upgrade prestashop to 1.7.8.7 or later Details ↓

PrestaShop · PrestaShop

Summary

A SQL injection flaw in PrestaShop, the open-source e-commerce platform, can be chained to make PHP's eval function run attacker-supplied input, affecting versions from 1.6.0.10 up to but not including 1.7.8.7. An unauthenticated attacker with network access can exploit it without user interaction, with no special configuration beyond the affected version, to execute code on the server.

Official description · CVE.org

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.

Breakdown
65.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 10 days before it was disclosed. Public exploit code (PoC-in-GitHub) was available 6 days before disclosure.

  1. First seen exploitedVulnCheck KEV evidence10 days before
  2. Public exploit codePoC-in-GitHub6 days before
  3. Disclosedday 0

7 fixes in prestashop/prestashop over 4 years. The latest fix listed for prestashop/prestashop is 8.0.4.

Fixes in prestashop/prestashopPackagist package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 1.7.6.0CVE-2019-1187624 May 2019
  2. 1.7.8.2CVE-2021-437897 Dec 2021
  3. 1.7.8.3CVE-2022-2168626 Jan 2022
  4. 1.7.8.7CVE-2022-311811 Aug 2022
  5. 1.7.8.8CVE-2022-461588 Dec 2022
  6. 8.0.1CVE-2023-2517013 Mar 2023
  7. 8.0.4CVE-2023-3054525 Apr 2023Latest listed

Affected versions and fixes

as published in the CVE record

PrestaShop PrestaShop

Affected: >= 1.6.0.10, < 1.7.8.7

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: prestashop/prestashop.

Packagistprestashop/prestashopGHSA-hrgx-p36p-89q4

Upgrade to 1.7.8.7 or later

Set the version to 1.7.8.7 or later in your composer.json.

The first fix for CVE-2022-31181.

Affected versions

If you runUpgrade to
1.6.0.10 up to 1.7.8.71.7.8.7

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close