Vulnerability in Twigphp Twig

CVE-2025-24374

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.

EPSS: 0.003 (53.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-24374?
CVE-2025-24374 is a medium-severity vulnerability in Twigphp Twig, classified under Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection). CVSS score: 4.3/10. Published 2025-01-29.
How severe is CVE-2025-24374?
Medium severity. CVSS v3 base score is 4.3 out of 10.