{"id":"CVE-2022-21686","aliases":["EUVD-2022-0651","GHSA-mrq4-7ch7-2465"],"status":"published","title":"Server Side Twig Template Injection in PrestaShop","description":"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.","severity":{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01786,"percentile":0.78478,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2022-01-26T20:10:10Z","modified":"2026-10-28T02:30:27Z","fixes":[{"ecosystem":"Packagist","package":"prestashop/prestashop","fixed_in":["1.7.8.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"prestashop/prestashop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.7.0.0"},{"last_affected":"1.7.8.2"},{"fixed":"1.7.8.3"}]}]},{"source":"osv","ecosystem":"Packagist","package":"prestashop/prestashop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.7.0.0"},{"fixed":"1.7.8.3"}]}],"versions":["1.7.0.0","1.7.0.1","1.7.0.2","1.7.0.3","1.7.0.4","1.7.0.5","1.7.0.6","1.7.1.0","1.7.1.1","1.7.1.2","1.7.2.0","1.7.2.0-rc.1.0","1.7.2.1","1.7.2.2","1.7.2.3","1.7.2.4","1.7.2.5","1.7.3.0","1.7.3.1","1.7.3.2","1.7.3.3","1.7.3.4","1.7.4.0","1.7.4.0-beta.1","1.7.4.1","1.7.4.2","1.7.4.3","1.7.4.4","1.7.5.0","1.7.5.0-beta.1","1.7.5.0-rc.1","1.7.5.1","1.7.5.2","1.7.6.0","1.7.6.0-beta.1","1.7.6.0-rc.1","1.7.6.0-rc.2","1.7.6.1","1.7.6.2","1.7.6.3","1.7.6.4","1.7.6.5","1.7.6.6","1.7.6.7","1.7.6.8","1.7.6.9","1.7.7.0","1.7.7.0-beta.1","1.7.7.0-beta.2","1.7.7.0-rc.1","1.7.7.1","1.7.7.2","1.7.7.3","1.7.7.4","1.7.7.5","1.7.7.6","1.7.7.7","1.7.7.8","1.7.8.0","1.7.8.0-beta.1","1.7.8.0-rc.1","1.7.8.1","1.7.8.2"]}],"products":[{"vendor":"prestashop","product":"prestashop"}],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-mrq4-7ch7-2465","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/d02b469ec365822e6a9f017e57f588966248bf21","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.3","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21686","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mrq4-7ch7-2465"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21686.json","tags":["advisory"]},{"url":"https://github.com/PrestaShop/PrestaShop","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2022-21686","title":"Server Side Twig Template Injection in PrestaShop","description":"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.","status":"published","published":"2022-01-26T20:10:10Z","modified":"2025-04-23T19:09:07.936Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:34:29.057251Z"}],"euvd":[{"id":"EUVD-2022-0651","description":"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.","status":"published","published":"2022-01-26T20:10:10Z","modified":"2025-04-23T19:09:07Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:52:06.891582Z"}],"ghsa":[{"id":"GHSA-mrq4-7ch7-2465","title":"Server Side Twig Template Injection","description":"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.\n","status":"published","published":"2022-01-27T18:32:47Z","modified":"2023-02-03T05:05:15Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:36:42.703723Z"}],"nvd":[{"id":"CVE-2022-21686","description":"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.","status":"published","published":"2022-01-26T20:15:07.843Z","modified":"2026-06-17T04:26:45.73Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:07:11.52734Z"}],"osv":[{"id":"CVE-2022-21686","title":"Server Side Twig Template Injection in PrestaShop","description":"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.","status":"published","published":"2022-01-26T20:10:10Z","modified":"2026-10-28T02:30:27.665844708Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:44:23.655778Z"},{"id":"GHSA-mrq4-7ch7-2465","title":"Server Side Twig Template Injection","description":"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.\n","status":"published","published":"2022-01-27T18:32:47Z","modified":"2024-02-19T05:33:18.569946Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:52.170928Z"}]}}
