Patchwire CVEs, their patch status, and feeds to follow them

CVE-2022-23614

Fixed in a distro release EPSS 8%CVSS 8.8

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.

Published 2022-02-04 · CVE record · OSV

Products: twigphp Twig

Fixed upstream

EcosystemPackageFixed in
Packagisttwig/twig2.14.11
Packagisttwig/twig3.3.8

Distro releases

ReleasePackageFixed in
Debian 11php-twig2.14.3-1+deb11u1
Debian 12php-twig3.3.8-1
Debian 13php-twig3.3.8-1
Debian 14php-twig3.3.8-1
Ubuntu Pro 16.04 LTStwig1.23.1-1ubuntu4+esm1
Ubuntu Pro 18.04 LTStwig2.4.6-1ubuntu0.1~esm1
Ubuntu Pro 20.04 LTSphp-twig2.12.5-1ubuntu0.1~esm1
Ubuntu Pro 22.04 LTSphp-twig3.3.8-2ubuntu4+esm1