CVE-2022-31181 json
Remote code execution in prestashop
published 2022-07-29 4 y ago modified 2026-06-17 4 mo ago also GHSA-hrgx-p36p-89q4 , EUVD-2022-6354
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.7%
- EPSS 6.7% chance of exploitation in 30 days, percentile 93%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
- packagist prestashop/prestashop 1.7.8.7
- prestashop prestashop 1.7.8.7
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
6.66% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template PrestaShop - SQL Injection to Eval Injection nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | prestashop/prestashop | >=1.6.0.10, <1.7.8.7 |
1.7.8.7 |
Affected products
- PrestaShop PrestaShop
Classification
References
-
github.com
/PrestaShop/PrestaShop/commit/b6d96e7c2a4e35a44e96ffbcdfd34439b56af804
web, patch, third-party-advisory
-
github.com
/PrestaShop/PrestaShop/security/advisories/GHSA-hrgx-p36p-89q4
web, mitigation, third-party-advisory
-
github.com
/PrestaShop/PrestaShop/releases/tag/1.7.8.7
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31181
advisory
-
github.com
/PrestaShop/PrestaShop
package
Sources
- CVE List CVE-2022-31181
- GitHub Advisory GHSA-hrgx-p36p-89q4
- NVD CVE-2022-31181
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.