CVE-2026-46629 PUBLISHED

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

Assigner: GitHub_M
Reserved: 15.05.2026 Published: 14.07.2026 Updated: 15.07.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
CVSS Score: 5.3

Product Status

Vendor twigphp
Product Twig
Versions
  • Version < 3.26.0 is affected

References

Problem Types

  • CWE-770: Allocation of Resources Without Limits or Throttling CWE