CVE-2025-24374

Twig fixes a security issue where escaping was missing when using null coalesce operator (??)

State
Published
Severity
4.3 Medium
Published
Jan 29, 2025
Updated
Jan 29, 2025
Reserved
Jan 20, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NGitHub_M

Weaknesses

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Affected Products

ProductVersions
Twigtwigphp
  • >= 3.16.0, < 3.19.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.