Allocation of Resources Without Limits or Throttling Affecting twig/twig package, versions <3.26.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-TWIGTWIG-16776845
  • published20 May 2026
  • disclosed20 May 2026
  • creditKai Aizen

Introduced: 20 May 2026

CVE-2026-46627  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade twig/twig to version 3.26.0 or higher.

Overview

twig/twig is a flexible, fast, and secure template language for PHP.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via untrusted Twig template evaluation within the sandbox. An attacker can cause denial of service by supplying crafted templates that consume excessive CPU time, memory, or wall-clock time, as the Twig sandbox restricts access to dangerous functionality but does not enforce resource usage limits.

CVSS Base Scores

version 4.0
version 3.1