NetSight
medium6.5

CVE-2026-46629

twig/intl-extra: Unbounded formatter memoisation in keyed on template-controlled arguments

Impact

Twig is a template language for PHP. Prior to 3.26.0, twig/intl-extra memoises IntlDateFormatter and NumberFormatter instances in arrays keyed by template-controlled filter arguments such as locale, pattern, and attrs, allowing a template to allocate many ICU formatter objects that remain pinned for the lifetime of the Twig\Environment. This issue is fixed in version 3.26.0.

Affected packages

EcosystemPackageAffectedFixed in
composertwig/intl-extra< 3.26.03.26.0

Affected products

VendorProductAffected versions
SymfonyTwig
before 3.26.0

Weakness classification

References