CVE-2022-21686CWE-94

Server Side Twig Template Injection in PrestaShop

Critical · published January 26, 2022

CVSS v3.1
9.0
EPSS
2%
Percentile
78.2
In the wild
Unconfirmed
What it is

🔥 A crafty twig injection vulnerability is lurking in PrestaShop, allowing attackers to manipulate code in the back office! Imagine a restaurant where the chef blindly trusts any recipe submitted by a waiter. If that waiter slips in a secret ingredient that ruins the whole dish, chaos ensues! This vulnerability lets an attacker inject harmful code just like that sneaky waiter. An attacker could gain control over the back office, potentially leading to unauthorized access, data breaches, or even complete takeover of your e-commerce platform. The consequences could be absolutely devastating for your business, as sensitive customer information could be compromised and your store brought to a halt.

Put simply

Imagine a restaurant where the chef blindly trusts any recipe submitted by a waiter. If that waiter slips in a secret ingredient that ruins the whole dish, chaos ensues! This vulnerability lets an attacker inject harmful code just like that sneaky waiter. This vulnerability allows code injection through twig templates in PrestaShop versions 1.7.0.0 to 1.7.8.3 when using a legacy layout, enabling attackers to execute arbitrary code within the application ecosystem.

What to do

An attacker could gain control over the back office, potentially leading to unauthorized access, data breaches, or even complete takeover of your e-commerce platform. The consequences could be absolutely devastating for your business, as sensitive customer information could be compromised and your store brought to a halt. To protect your store, upgrade to version 1.7.8.4 or later immediately. There are no known workarounds, so patching is crucial. Regularly review your security settings and stay informed about updates to prevent future vulnerabilities. You've got this! Follow these steps, and you’ll secure your shop in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01786 · 78.2th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2022-01-26T20:10Z
EPSS history
Timeline
  • 26 JAN 20:10Z
    Server Side Twig Template Injection in PrestaShop
    cvelistv5