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-46627: CWE-400: Uncontrolled Resource Consumption in twigphp Twig

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
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:H/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/22/2026, 22:59:20 UTC

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.

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: 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 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