Security restrictions bypass in Symfony Twig

Published: 2022-03-24 | Updated: 2022-07-18
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-23614
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Web applications / CMS

Vendor Symfony

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Security features bypass

EUVDB-ID: #VU61609

Risk: High


CVE-ID: CVE-2022-23614

CWE-ID: CWE-254 - Security Features

Exploit availability: Yes


The vulnerability allows a remote attacker to bypass implemented security restrictions.

The vulnerability exists due to missing security restrictions for non closures in "sort" filter when using a sandbox mode. A remote attacker can pass specially crafted data to the application and execute arbitrary PHP code on the system.


Install updates from vendor's website.

Vulnerable software versions

Twig: 2.0.0 - 3.3.7

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?