S4E just found a medium log file scanner
critical·Product Based Web Vulnerabilities·Updated Oct 11, 2025

CVE-2022-31181 Scanner

CVE-2022-31181 Scanner - SQL Injection vulnerability in PrestaShop

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
2.4k
Times Used
continuous scan runs
3.4k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2022-31181
9.8
CVSScritical
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
PrestaShopby PrestaShop
>= 1.6.0.10, < 1.7.8.7
Updated Aug 22, 2026View on NVD →
Detail

PrestaShop is a widely-used open-source e-commerce platform designed for small to medium businesses around the world. Its flexible architecture allows merchants to customize and enhance their online stores with a variety of themes and plugins. PrestaShop is utilized in many industries including electronics, fashion, and furniture, providing a comprehensive solution to manage orders, products, and customer relationships. Built on PHP and MySQL, it supports various payment gateways and shipping options. With its user-friendly interface, both technical and non-technical individuals can effectively manage their online stores on PrestaShop. This vulnerability check is crucial for business owners to ensure their online stores remain secure and fully functional.

The SQL Injection vulnerability in PrestaShop poses a significant threat as it allows attackers to manipulate database queries by submitting unsanitized user inputs. This vulnerability is particularly dangerous as it can lead to unauthorized access and manipulation of sensitive data stored in the database. Malicious actors can exploit this vulnerability to inject malicious SQL statements, potentially gaining the ability to read, modify, or delete data. Furthermore, the injection can be chained to other vulnerabilities, such as calling the PHP Eval function, escalating the impact to possible remote code execution. Protecting against this vulnerability is critical to maintaining the integrity and confidentiality of the data held by PrestaShop stores. Regularly updating and sanitizing input fields is essential to mitigating this risk.

The vulnerability occurs at several endpoints within the PrestaShop platform, often involving modules that handle customer inputs, such as login and wishlist functions. Attackers can send malicious inputs to these endpoints which are not properly sanitized, allowing SQL injections. The vulnerable SQL commands typically include data retrieval and updates, posing the risk of unauthorized database manipulation. Attackers exploit the 'id_wishlist' parameter in particular, chaining multiple SQL commands to manipulate database settings. The nature of the injection enables further exploitation by altering configuration settings which involve executing PHP code through eval(), thereby posing a severe risk to the system's security. Technical understanding of HTTP requests is essential to identifying and fixing these vectors.

If exploited, this vulnerability can result in severe consequences including full system compromise. Attackers could execute arbitrary PHP code, leading to unauthorized access to sensitive data, database manipulation, defacement of the website, and potentially, persistence through backdoors. Such a compromise would gravely affect the brand's reputation, result in loss of customer trust, and potentially incur financial losses due to data breaches or business interruption. Moreover, attackers gaining prolonged access could launch further attacks against internal networks, causing extensive damage. It is critical to address this SQL Injection vulnerability promptly to protect business assets and customer information.

REFERENCES

Solution Advice
  • Upgrade PrestaShop to version 1.7.8.7 or later immediately to apply security patches
  • If an upgrade is not possible, remove the MySQL Smarty cache feature to mitigate exploitation
  • Implement input validation and parameterized queries to protect against SQL injections in all user inputs
  • Regularly perform security audits of PrestaShop plugins and modules for vulnerabilities
  • Ensure consistent monitoring and alerting for suspicious activities within the PrestaShop environment

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2022-31181 Scanner - SQL Injection vulnerability in PrestaShop S4E