CVE-2025-24374 Details
Description
Twig is a template language for PHP. When using the ?? operator, output escaping was missing for the expression on the left side of the operator. This vulnerability is fixed in 3.19.0.
A vulnerability in Twig, a PHP template language, was identified regarding the null coalesce operator (??). In versions 3.16.0 prior to 3.19.0, output escaping was not applied to the expression on the left side of the operator, potentially leading to improper handling of output. This issue has been addressed in Twig version 3.19.0.
Users can upgrade to Twig version 3.19.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 29, 2025CISA-ADP
Assessed Jan 29, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3 | [email protected] | Source CodeVendor |
| https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Twig | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 29, 2025 | New CVE Received | [email protected] |
Volerion