Advisory record · GHSA-hrgx-p36p-89q4

PrestaShop eval injection possible if shop vulnerable to SQL injection

CVSS 9.8 CriticalCriticalEPSS 0.077 · 94th percentile

Critical, because:

  • CVSS score 9.8: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 29 Jul 2022, 22:27 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
prestashop/prestashopPackagist>=1.6.0.10, <1.7.8.71.7.8.7
Identifiers
GHSA-hrgx-p36p-89q4 · CVE-2022-31181 · PKSA-n51t-8tm5-dchp
Weakness (CWE)
CWE-74 · CWE-89 · CWE-95
Published
29 Jul 2022
Updated
8 Nov 2023

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

PrestaShop versions 1.6.0.10 up to but not including 1.7.8.7 are affected. An attacker who can exploit an SQL injection flaw in the shop can then trigger eval injection, which may allow code execution. Upgrade to PrestaShop 1.7.8.7. As a workaround, the source describes removing the MySQL Smarty cache feature lines from the Smarty configuration file.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.8 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.077, the 94th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:33 UTC First seen by agentprime
  2. 31 Oct 2026, 14:33 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.