Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 57%

CVE-2026-46629: CWE-770: Allocation of Resources Without Limits or Throttling in twigphp Twig

0
Medium
VulnerabilityCVE-2026-46629cvecve-2026-46629cwe-770
Published: 07/14/2026 (07/14/2026, 21:22:15 UTC)
Source: CVE Database V5
Vendor/Project: twigphp
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Packagistmore threats →ai
twig/twig
pkg:composer/twig/twig
Affected versions
<3.26.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/21/2026, 22:46:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses