CVE-2022-31181 — Vulnerability in prestashop/prestashop — CVE Details
PrestaShop eval injection possible if shop vulnerable to SQL injection
Summary
Advisory Timeline
- First published July 29, 2022 (1536 days ago).
- Last revised November 8, 2023 — 466 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "prestashop/prestashop:^1.7.8.7"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| prestashop/prestashop | packagist | 1.7.0.0, 1.7.0.0-beta.1.0, 1.7.0.0-beta.2.0, 1.7.0.0-beta.3.0 (+70 more) | 1.7.8.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
- CWE-95
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
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-89q4WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31181ADVISORY
- https://github.com/PrestaShop/PrestaShop/commit/b6d96e7c2a4e35a44e96ffbcdfd34439b56af804WEB
- https://github.com/PrestaShop/PrestaShopPACKAGE
- https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.7WEB
Frequently Asked Questions
- What is CVE-2022-31181?
- PrestaShop eval injection possible if shop vulnerable to SQL injection This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2022-31181?
- CVE-2022-31181 affects prestashop/prestashop. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-31181 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2024-34716CRITICAL
PrestaShop cross-site scripting via customer contact form in FO, through file upload
- CVE-2026-107845CRITICAL
Contao: Cross-site scripting in the comments bundle
- CVE-2026-92161CRITICAL
FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider
- CVE-2023-39526CRITICAL
PrestaShop SQL manager vulnerability
- CVE-2023-30839CRITICAL
SQL filter bypass leading to arbitrary write requests using "SQL Manager"
- CVE-2026-44212CRITICAL
PrestaShop has a stored XSS executable in customer service view
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies