CVE-2026-46627: CWE-400: Uncontrolled Resource Consumption in twigphp Twig
Twig versions prior to 3.26.0 have a vulnerability in the sandbox feature that allows untrusted templates to consume excessive CPU, memory, or wall-clock time, leading to resource exhaustion. The issue is documented in version 3.26.0, clarifying that the sandbox does not protect against such resource consumption. This vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption) and has a high severity rating with a CVSS score of 7.1.
AI Analysis
Technical Summary
The Twig template engine for PHP contains an uncontrolled resource consumption vulnerability (CWE-400) in its sandbox implementation prior to version 3.26.0. The sandbox does not restrict CPU, memory, or wall-clock time usage by templates, allowing untrusted templates to potentially exhaust system resources. Version 3.26.0 addresses this by documenting the limitation rather than providing a technical fix, indicating that the sandbox is not designed to prevent resource exhaustion.
Potential Impact
Untrusted templates executed within the Twig sandbox can cause excessive consumption of CPU, memory, or time resources, potentially leading to denial of service conditions. This can affect availability of applications relying on Twig templates when processing untrusted input.
Mitigation Recommendations
There is no official fix or patch that prevents resource exhaustion in the Twig sandbox as of version 3.26.0; the vendor documents this limitation. Users should avoid executing untrusted templates or implement external resource usage controls. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2026-46627: CWE-400: Uncontrolled Resource Consumption in twigphp Twig
Description
Twig versions prior to 3.26.0 have a vulnerability in the sandbox feature that allows untrusted templates to consume excessive CPU, memory, or wall-clock time, leading to resource exhaustion. The issue is documented in version 3.26.0, clarifying that the sandbox does not protect against such resource consumption. This vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption) and has a high severity rating with a CVSS score of 7.1.
CVSS v4.0
Score 7.1high
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
The Twig template engine for PHP contains an uncontrolled resource consumption vulnerability (CWE-400) in its sandbox implementation prior to version 3.26.0. The sandbox does not restrict CPU, memory, or wall-clock time usage by templates, allowing untrusted templates to potentially exhaust system resources. Version 3.26.0 addresses this by documenting the limitation rather than providing a technical fix, indicating that the sandbox is not designed to prevent resource exhaustion.
Potential Impact
Untrusted templates executed within the Twig sandbox can cause excessive consumption of CPU, memory, or time resources, potentially leading to denial of service conditions. This can affect availability of applications relying on Twig templates when processing untrusted input.
Mitigation Recommendations
There is no official fix or patch that prevents resource exhaustion in the Twig sandbox as of version 3.26.0; the vendor documents this limitation. Users should avoid executing untrusted templates or implement external resource usage controls. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
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: 6a56aea068715ace4342b0cc
Added to database: 07/14/2026, 21:48:16 UTC
Last enriched: 07/22/2026, 22:59:20 UTC
Last updated: 08/28/2026, 22:52:11 UTC
Views: 77
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.