Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Symfony | Twig | >= 2.0.0, < 2.14.11 |
| Fedoraproject | Fedora | 34 |
| Debian | Debian Linux | 11.0 |
Related Weaknesses (CWE)
References
- https://github.com/twigphp/Twig/commit/22b9dc3c03ee66d7e21d9ed2ca76052b134cb9e9PatchThird Party Advisory
- https://github.com/twigphp/Twig/commit/2eb33080558611201b55079d07ac88f207b466d5PatchThird Party Advisory
- https://github.com/twigphp/Twig/security/advisories/GHSA-5mv2-rx3q-4w2vThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://www.debian.org/security/2022/dsa-5107Third Party Advisory
- https://github.com/twigphp/Twig/commit/22b9dc3c03ee66d7e21d9ed2ca76052b134cb9e9PatchThird Party Advisory
- https://github.com/twigphp/Twig/commit/2eb33080558611201b55079d07ac88f207b466d5PatchThird Party Advisory
- https://github.com/twigphp/Twig/security/advisories/GHSA-5mv2-rx3q-4w2vThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
FAQ
What is CVE-2022-23614?
CVE-2022-23614 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 ...
How severe is CVE-2022-23614?
CVE-2022-23614 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-23614?
Check the references section above for vendor advisories and patch information. Affected products include: Symfony Twig, Fedoraproject Fedora, Debian Debian Linux.