CVE-2022-23614

CRITICALCVSS 9.8/10EPSS 8.28%

Last modified

CVE-2022-23614 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 8.28% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
8.28%

94.2th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
SymfonyTwig>= 2.0.0, < 2.14.11
SymfonyTwig>= 3.0.0, < 3.3.8
FedoraprojectFedora34
FedoraprojectFedora35
DebianDebian Linux11.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2022-23614?
CVE-2022-23614 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 8.28% probability of exploitation in the next 30 days.
How do I fix CVE-2022-23614?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-23614?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST