VYPR
High severity8.8NVD Advisory· Published Feb 4, 2022· Updated Jun 17, 2026

CVE-2022-23614

CVE-2022-23614

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
twig/twigPackagist
>= 2.0.0, < 2.14.112.14.11
twig/twigPackagist
>= 3.0.0, < 3.3.83.3.8

Affected products

6
  • cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
    Range: >=2.0.0,<2.14.11
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
    • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • ghsa-coords
    Range: >= 2.0.0, < 2.14.11
  • Twigphp/Twigcpe-rescue
    Range: >= 3.0.0, < 3.3.8

Patches

Vulnerability mechanics

References

16

News mentions

0

No linked articles in our index yet.