CVE-2022-23614

HIGH

Symfony Twig < 2.14.11 - Injection

Title source: rule

Description

Twig is an open source template language for PHP. When in a sandbox mode, the `arrow` parameter of the `sort` filter must be a closure to avoid attackers being able to run arbitrary PHP functions. In affected versions this constraint was not properly enforced and could lead to code injection of arbitrary PHP code. Patched versions now disallow calling non Closure in the `sort` filter as is the case for some other filters. Users are advised to upgrade.

Exploits (2)

nomisec WORKING POC 4 stars
by davwwwx · poc
https://github.com/davwwwx/CVE-2022-23614
nomisec WORKING POC
by 4rtamis · poc
https://github.com/4rtamis/CVE-2022-23614

Scores

CVSS v3 8.8
EPSS 0.2783
EPSS Percentile 96.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-74 CWE-94
Status published
Products (5)
debian/debian_linux 11.0
fedoraproject/fedora 34
fedoraproject/fedora 35
symfony/twig 2.0.0 - 2.14.11
twig/twig 2.0.0 - 2.14.11Packagist
Published Feb 04, 2022
Tracked Since Feb 18, 2026