CVE-2022-23614CWE-74

Code injection in Twig

High · published February 4, 2022

CVSS v3.1
8.8
EPSS
8%
Percentile
94.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.08209 · 94.9th percentile
Weakness
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2022-02-04T22:25Z
EPSS history
Timeline
  • 04 FEB 22:25Z
    Code injection in Twig
    cvelistv5