CVE-2022-21686 json
Server Side Twig Template Injection in PrestaShop
published 2022-01-26 4 y ago modified 2026-06-17 4 mo ago also GHSA-mrq4-7ch7-2465 , EUVD-2022-0651
- cvss
- 9.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
PrestaShop is an Open Source e-commerce platform. Starting with version 1.7.0.0 and ending with version 1.7.8.3, an attacker is able to inject twig code inside the back office when using the legacy layout. The problem is fixed in version 1.7.8.3. There are no known workarounds.
Patch / fix
- packagist prestashop/prestashop 1.7.8.3
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.79% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | prestashop/prestashop | >=1.7.0.0, <1.7.8.3 |
1.7.8.3 |
Affected products
- PrestaShop PrestaShop
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/PrestaShop/PrestaShop/commit/d02b469ec365822e6a9f017e57f588966248bf21
web, patch, third-party-advisory
-
github.com
/PrestaShop/PrestaShop/security/advisories/GHSA-mrq4-7ch7-2465
web, third-party-advisory
-
github.com
/PrestaShop/PrestaShop/releases/tag/1.7.8.3
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21686
advisory
-
github.com
/PrestaShop/PrestaShop
web
Sources
- CVE List CVE-2022-21686
- GitHub Advisory GHSA-mrq4-7ch7-2465
- NVD CVE-2022-21686
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.