CVE-2025-24374: Twig security issue where escaping was missing when using null coalesce operator

CVE-2025-24374 · Severity: low · CVSS 3.1 · Published 2025-01-29

Twig security issue where escaping was missing when using null coalesce operator

Technologies: twig/twig (Packagist). Vendors: Packagist.

Quick answers

Is CVE-2025-24374 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-24374 being exploited in the wild.
How severe is CVE-2025-24374?
Low severity, with a CVSS score of 3.1, published 29 January 2025.
Which products and versions are affected?
twig/twig (Packagist) ECOSYSTEM:introduced=3.16.0,fixed=3.19.0.
Is there a fix for CVE-2025-24374?
Yes. twig/twig (Packagist): upgrade to 3.19.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-24374?
Check whether you run twig/twig (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • twig/twig (Packagist): upgrade to 3.19.0 or later
    composer require twig/twig:^3.19.0

Affected products

  • twig/twig (Packagist) ECOSYSTEM:introduced=3.16.0,fixed=3.19.0

Identifiers

  • CVE-2025-24374
  • GHSA-3xg3-cgvq-2xwr

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.