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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | twig/intl-extra | < 3.26.0 | 3.26.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Symfony | Twig | before 3.26.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-35wc-cvqg-78fp
- https://github.com/twigphp/Twig/security/advisories/GHSA-35wc-cvqg-78fp
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/intl-extra/CVE-2026-46629.yaml
- https://symfony.com/cve-2026-46629
- https://github.com/twigphp/Twig/commit/6add9066fc5c0455eb764c1f3af6e4e4e3562419
- https://github.com/twigphp/Twig/releases/tag/v3.26.0