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.
Products: twigphp Twig
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| Packagist | twig/twig | 2.14.11 |
| Packagist | twig/twig | 3.3.8 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Debian 11 | php-twig | 2.14.3-1+deb11u1 |
| Debian 12 | php-twig | 3.3.8-1 |
| Debian 13 | php-twig | 3.3.8-1 |
| Debian 14 | php-twig | 3.3.8-1 |
| Ubuntu Pro 16.04 LTS | twig | 1.23.1-1ubuntu4+esm1 |
| Ubuntu Pro 18.04 LTS | twig | 2.4.6-1ubuntu0.1~esm1 |
| Ubuntu Pro 20.04 LTS | php-twig | 2.12.5-1ubuntu0.1~esm1 |
| Ubuntu Pro 22.04 LTS | php-twig | 3.3.8-2ubuntu4+esm1 |