# CVE-2022-31181: Remote code execution in prestashop

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.65%, higher than 94% of CVEs (2026-12-01)
- Published: 2022-07-29T22:27:27.000Z
- Modified: 2026-06-17T04:44:58.520Z
- Also known as: GHSA-hrgx-p36p-89q4
- Weaknesses: CWE-74, CWE-89, CWE-95
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- PrestaShop PrestaShop: >= 1.6.0.10, < 1.7.8.7; from 1.6.0.10 before 1.7.8.7
- prestashop/prestashop (Packagist): from 1.6.0.10 before 1.7.8.7

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-hrgx-p36p-89q4> (mitigation, third-party-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2022-31181> (advisory)
- <https://github.com/PrestaShop/PrestaShop> (package)

## Sources

- CVE List: [CVE-2022-31181](https://www.cve.org/CVERecord?id=CVE-2022-31181), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-hrgx-p36p-89q4](https://github.com/advisories/GHSA-hrgx-p36p-89q4), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31181](https://nvd.nist.gov/vuln/detail/CVE-2022-31181), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31181 · Whole record: https://cve.day/CVE-2022-31181.json · Rebuilt by cve.day 2026-11-25T22:58:13.344Z
