{"id":"CVE-2022-21686","published":"2022-01-26T20:10:10Z","modified":"2025-04-23T19:09:07Z","title":"Server Side Twig Template Injection in PrestaShop","vendor":"PrestaShop","product":"PrestaShop","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01845,"percentile":0.79573,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-mrq4-7ch7-2465","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/d02b469ec365822e6a9f017e57f588966248bf21","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.3","tags":["x_refsource_MISC"]}],"priority":{"score":22.2,"factors":[{"name":"EPSS percentile","points":15.91},{"name":"CVSS severity","points":6.3}]},"vendorSlug":"prestashop","affectedVersions":[{"vendor":"PrestaShop","product":"PrestaShop","versions":[">= 1.7.0.0, < 1.7.8.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:56:49.163569Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"prestashop/prestashop","vulnerableRanges":[">=1.7.0.0, <1.7.8.3"],"patched":["1.7.8.3"],"from":["GHSA-mrq4-7ch7-2465"],"provenance":"source"}],"summary":{"text":"A server-side Twig template injection flaw in PrestaShop's back office, affecting versions 1.7.0.0 through 1.7.8.3 when the legacy layout is in use, allows attackers to inject Twig code. The attacker needs network access to the platform and can reach the vulnerable back-office path without authentication or user interaction, but the attack is conditional on the legacy layout being enabled and has high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:45:27Z"},"euvd":{"id":"EUVD-2022-0651","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-20717","published":"2019-01-15","fixed":"1.7.2.5","kev":false},{"cve":"CVE-2019-11876","published":"2019-05-24","fixed":"1.7.6.0","kev":false},{"cve":"CVE-2021-43789","published":"2021-12-07","fixed":"1.7.8.2","kev":false,"link":{"from":"CVE-2021-43789","to":"CVE-2022-21686","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"1.7.8.2","toFixed":"1.7.8.3","daysApart":50}]}},{"cve":"CVE-2022-21686","published":"2022-01-26","fixed":"1.7.8.3","kev":false},{"cve":"CVE-2022-31181","published":"2022-08-01","fixed":"1.7.8.7","kev":false,"link":{"from":"CVE-2022-21686","to":"CVE-2022-31181","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"1.7.8.3","toFixed":"1.7.8.7","daysApart":187}]}},{"cve":"CVE-2022-46158","published":"2022-12-08","fixed":"1.7.8.8","kev":false},{"cve":"CVE-2023-25170","published":"2023-03-13","fixed":"8.0.1","kev":false}],"package":"Packagist:prestashop/prestashop"}}