RCE in Symfony Twig

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.082 (94.7th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 95th percentile — 94.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2022-23614: held from 0.082 to 0.082.

EPSS over last 30 days · oldest: 0.082 · newest: 0.082 · change: 0.000

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-23614?
CVE-2022-23614 is a high-severity vulnerability in Symfony Twig, classified under Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection). CVSS score: 8.8/10. Published 2022-02-04.
How severe is CVE-2022-23614?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2022-23614 known to be exploited?
17 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.