CVE-2022-23614

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.
Injection
Code Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub_MCNA
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 97%
VendorProductVersion
symfonytwig
2.0.0 ≤
𝑥
< 2.14.11
symfonytwig
3.0.0 ≤
𝑥
< 3.3.8
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
php-twig
bullseye
2.14.3-1+deb11u2
fixed
buster
not-affected
stretch
not-affected
bullseye (security)
2.14.3-1+deb11u3
fixed
bookworm
3.5.1-1
fixed
bookworm (security)
3.5.1-1+deb12u1
fixed
sid
3.14.0-4
fixed
trixie
3.14.0-4
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php-twig
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
not-affected
jammy
not-affected
focal
Fixed 2.12.5-1ubuntu0.1~esm1
released
bionic
dne
xenial
ignored
trusty
ignored
twig
bionic
not-affected
xenial
not-affected
trusty
ignored
References