LiveActive security incident?Get immediate response
CVE Record

CVE-2022-31181: Remote code execution in prestashop

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.

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

This flaw affects older PrestaShop e-commerce sites and can let an unauthenticated internet attacker take control of the shop server. The vendor rates it critical and provides a fixed release. Treat exposed stores in the affected version range as urgent because compromise could affect orders, customer data, payments-adjacent operations, and store availability.

Executive priority

Immediate remediation is warranted for any affected internet-facing store. The business risk is server takeover with high confidentiality, integrity, and availability impact. Absence from KEV in the bundle lowers certainty about known exploitation, not the technical urgency.

Technical view

PrestaShop versions from 1.6.0.10 before 1.7.8.7 contain an SQL injection issue that can be chained into PHP Eval execution on attacker input. The CVSS 3.1 score is 9.8, network-accessible, low complexity, no privileges, and no user interaction. The listed weaknesses are CWE-89 and CWE-74.

Likely exposure

Internet-facing PrestaShop stores running versions >= 1.6.0.10 and < 1.7.8.7 are the relevant exposure. The source bundle does not identify additional affected products or precise deployment prerequisites beyond the MySQL Smarty cache mitigation note.

Exploitation context

The provided sources support remote code execution potential and critical severity. They do not show CISA KEV listing or cited confirmation of active exploitation, so active exploitation should not be stated from this bundle alone.

Researcher notes

Focus validation on version range, vendor patch status, and whether the MySQL Smarty cache feature exists where upgrades lag. The bundle names the vulnerability class and outcome but does not provide safe endpoint-level validation details or exploitation evidence.

Mitigation direction

  • Upgrade affected PrestaShop installations to version 1.7.8.7 or later vendor-fixed guidance.
  • If unable to upgrade, delete the MySQL Smarty cache feature per vendor advice.
  • Review the PrestaShop advisory and release notes before changing production stores.
  • Prioritize backups and a rollback plan before emergency upgrade work.

Validation and detection

  • Inventory all PrestaShop stores and record exact running versions.
  • Confirm no production instance is >= 1.6.0.10 and < 1.7.8.7.
  • Verify the 1.7.8.7 fix or equivalent vendor patch is deployed.
  • Check whether the MySQL Smarty cache feature remains present on unupgraded systems.
  • Review application logs for suspicious errors or unexpected template/cache behavior.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-74: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-89: Database access and collection lookup

Injection into data stores can inform collection, data access, and exfiltration detection reviews. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

Database behavior lookup

The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31181 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2022-31181Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
PrestaShopPrestaShop>= 1.6.0.10, < 1.7.8.7Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-74 · source CWE mapping

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-89 · source CWE mapping

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.