Skip to content
OpenAdvisories
Medium · 4.3 CVE-2025-24374 EUVD-2025-0128GHSA-3xg3-cgvq-2xwr

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

Published Jan 29, 2025 · Updated Jan 29, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
twigphp Twig >= 3.16.0, < 3.19.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php-twig 3.19.0-1~bootstrap —
Debian 13 php-twig 3.19.0-1~bootstrap —
Debian 12 php-twig No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS twig No fix yet —
Ubuntu Pro 16.04 LTS twig No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist twig/twig >= 3.16.0, < 3.19.0 3.19.0 GHSA-3xg3-cgvq-2xwr

References