CVE-2026-46629 Details
Description
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.
A vulnerability exists in the Twig template engine's intl-extra extension, prior to version 3.26.0, due to unbounded memoization of IntlDateFormatter and NumberFormatter instances. This memoization occurs in arrays keyed by template-controlled filter arguments such as locale, pattern, and attributes. As a result, a template can create numerous ICU formatter objects that remain allocated for the entire duration of the Twig Environment. This issue is particularly problematic in long-running PHP environments, where the accumulated cache can exceed memory limits, leading to potential resource exhaustion.
Users can upgrade to Twig version 3.26.0 or later, where this vulnerability has been fixed. Instructions for updating Twig can be found in the Twig documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| symfony twig | < 3.26.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 16, 2026 | Initial Analysis | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | New CVE Received | [email protected] |