CVE-2025-24374

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

Published Jan 29, 2025 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-0128 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.
Github GHSA Github GHSA GHSA-3xg3-cgvq-2xwr Twig security issue where escaping was missing when using null coalesce operator
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Twig fixes a security issue where escaping was missing when using null coalesce operator (??)
Weaknesses CWE-74
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

Subscriptions

No data.

Weaknesses
  • CWE-74

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 29, 2025, 3:44 PM
Reserved
Jan 20, 2025, 3:18 PM
Status
Deferred
Published
Jan 29, 2025, 4:15 PM
Modified
Jun 17, 2026, 8:58 AM