NetSight
high8.8

CVE-2022-23614

Code injection in Twig

Impact

# Description 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. # Resolution We now disallow calling non Closure in the `sort` filter like we already did for some other filters. # Credits We would like to thank Marlon Starkloff for reporting the issue and Fabien Potencier for fixing the issue.

Affected packages

EcosystemPackageAffectedFixed in
composertwig/twig>= 2.0.0, < 2.14.112.14.11

Affected products

VendorProductAffected versions
SymfonyTwig
from 2.0.0 before 2.14.11
from 3.0.0 before 3.3.8
FedoraprojectFedora
Versions 34, 35
DebianDebian Linux
Version 11.0

Weakness classification

References