Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-46629
Published:June 01, 2026
Updated:June 01, 2026
Description "IntlExtension" memoises every "\IntlDateFormatter" and "\NumberFormatter" it creates in instance-level arrays keyed on a hash that includes "locale", "pattern", "attrs" and other values that are ordinary named arguments of the "format_datetime" / "format_date" / "format_time" / "format_number" / "format_currency" filters. There is no size limit and no eviction. A template that iterates over many distinct "pattern" (or "locale", or "grouping_used", ...) values therefore allocates one ICU formatter object per distinct value and pins it for the entire lifetime of the "Twig\Environment". Because ICU allocates its backing buffers outside the Zend memory manager, this growth is not bounded by "memory_limit". On long-running runtimes (RoadRunner, Swoole, FrankenPHP worker mode, ReactPHP) where the "Environment" outlives a single request, the cache also accumulates across requests. Resolution The formatter caches are now bounded in size (100 entries each) and evict on a FIFO basis. Credits Twig would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and providing the fix.
Affected Packages
https://github.com/twigphp/Twig.git (GITHUB):
Affected version(s) >=v0.9.0 <v3.26.0
Fix Suggestion:
Update to version v3.26.0
twig/intl-extra (PHP):
Affected version(s) >=v2.12.0 <v3.26.0
Fix Suggestion:
Update to version v3.26.0
twig/intl-extra (PHP):
Affected version(s) >=v2.12.0 <3.26.0
Fix Suggestion:
Update to version 3.26.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
2.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
UNREPORTED
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Allocation of Resources Without Limits or Throttling