CVE-2022-31181
CRITICAL 9.8CVSS 3.1PrestaShop eval injection possible if shop vulnerable to SQL injection
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.
- Published
- 1 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-74CWE-89CWE-95
- Also known as
- GHSA-hrgx-p36p-89q4
- Sources
- NVDJSONOSV GHSA-hrgx-p36p-89q4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | prestashop | prestashopcpe:2.3:a:prestashop:prestashop:*:*:*:*:*:*:*:* |
>= 1.6.0.10, < 1.7.8.7 | 1.7.8.7 |
| OSV | Packagist | prestashop/prestashop | >= 1.6.0.10, < 1.7.8.7 | 1.7.8.7 |
References
- https://github.com/PrestaShop/PrestaShop/commit/b6d96e7c2a4e35a44e96ffbcdfd34439b56af804 · Patch, Third Party Advisory, WEB
- https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.7 · Release Notes, Third Party Advisory, WEB
- https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-hrgx-p36p-89q4 · Mitigation, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31181 · ADVISORY
- https://github.com/PrestaShop/PrestaShop · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 Aug 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 29 Jul 2022)