CVE-2026-46629: CWE-770: Allocation of Resources Without Limits or Throttling in twigphp Twig
Twig versions prior to 3.26.0 contain a vulnerability where IntlDateFormatter and NumberFormatter instances are memoized without limits based on template-controlled arguments. This can lead to excessive resource allocation that persists for the lifetime of the Twig environment. The issue is addressed in version 3.26.0.
AI Analysis
Technical Summary
CVE-2026-46629 describes a resource allocation vulnerability in twigphp Twig prior to version 3.26.0. The intl-extra extension memoizes ICU formatter objects (IntlDateFormatter and NumberFormatter) in arrays keyed by template-controlled filter arguments such as locale, pattern, and attributes. Because these keys are controlled by templates, an attacker can cause Twig to allocate many formatter objects that remain pinned in memory for the lifetime of the Twig\Environment instance, potentially leading to resource exhaustion. This vulnerability is classified under CWE-770 (Allocation of Resources Without Limits or Throttling). The issue is fixed in Twig version 3.26.0.
Potential Impact
An attacker who can control template filter arguments may cause Twig to allocate a large number of ICU formatter objects that remain in memory for the lifetime of the environment. This can lead to increased memory consumption and potential denial of service due to resource exhaustion. There is no indication of privilege escalation or code execution. The CVSS 4.0 base score is 5.3 (medium severity), reflecting network attack vector with low privileges required and no user interaction needed.
Mitigation Recommendations
Upgrade Twig to version 3.26.0 or later, where this vulnerability is fixed. No other official remediation or temporary workaround is provided. Patch status is confirmed fixed in 3.26.0.
CVE-2026-46629: CWE-770: Allocation of Resources Without Limits or Throttling in twigphp Twig
Description
Twig versions prior to 3.26.0 contain a vulnerability where IntlDateFormatter and NumberFormatter instances are memoized without limits based on template-controlled arguments. This can lead to excessive resource allocation that persists for the lifetime of the Twig environment. The issue is addressed in version 3.26.0.
CVSS v4.0
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-46629 describes a resource allocation vulnerability in twigphp Twig prior to version 3.26.0. The intl-extra extension memoizes ICU formatter objects (IntlDateFormatter and NumberFormatter) in arrays keyed by template-controlled filter arguments such as locale, pattern, and attributes. Because these keys are controlled by templates, an attacker can cause Twig to allocate many formatter objects that remain pinned in memory for the lifetime of the Twig\Environment instance, potentially leading to resource exhaustion. This vulnerability is classified under CWE-770 (Allocation of Resources Without Limits or Throttling). The issue is fixed in Twig version 3.26.0.
Potential Impact
An attacker who can control template filter arguments may cause Twig to allocate a large number of ICU formatter objects that remain in memory for the lifetime of the environment. This can lead to increased memory consumption and potential denial of service due to resource exhaustion. There is no indication of privilege escalation or code execution. The CVSS 4.0 base score is 5.3 (medium severity), reflecting network attack vector with low privileges required and no user interaction needed.
Mitigation Recommendations
Upgrade Twig to version 3.26.0 or later, where this vulnerability is fixed. No other official remediation or temporary workaround is provided. Patch status is confirmed fixed in 3.26.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-15T19:34:14.013Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a56aea068715ace4342b0d6
Added to database: 07/14/2026, 21:48:16 UTC
Last enriched: 07/21/2026, 22:46:04 UTC
Last updated: 08/25/2026, 22:52:11 UTC
Views: 81
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.