CVE-2022-23614

unknown
Published 2022-02-10 · Modified 2024-02-16
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v2
VIR risk

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2022-23614

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed3.3.8-1
debian debianbullseyefixed2.14.3-1+deb11u1
debian debianforkyfixed3.3.8-1
debian debiansidfixed3.3.8-1
debian debiantrixiefixed3.3.8-1

Package impact

EcosystemPackageVulnerableFixed
php Packagisttwig/twig>=2.0.0,<2.14.112.14.11
php Packagisttwig/twig>=3.0.0,<3.3.83.3.8

References

Verify integrity in audit chain (admin only). AS-IS.