Skip to content
OpenAdvisories
Critical · 9.8 Scanner template Public exploit CVE-2022-31181 EUVD-2022-6354GHSA-hrgx-p36p-89q4

Remote code execution in prestashop

Published Aug 1, 2022 · Updated Apr 23, 2025 · 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.

Affected products

VendorProductAffectedFixed
PrestaShop PrestaShop >= 1.6.0.10, < 1.7.8.7 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • drkbcn/lblfixer_cve_2022_31181 ★ 0 · Jul 26, 2022

    Module for PrestaShop 1.6.1.X/1.7.X to fix CVE-2022-31181 / CVE-2022-36408 vulnerability (Chain SQL Injection)

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist prestashop/prestashop >= 1.6.0.10, < 1.7.8.7 1.7.8.7 GHSA-hrgx-p36p-89q4

References