CVE-2026-46638CWE-693

Twig: `{% sandbox %}{% include %}` skips checkSecurity() on cached templates (incomplete fix for CVE-2024-45411)

Medium · published July 14, 2026

CVSS v4.0
6.0
EPSS
0%
Percentile
39.9
In the wild
Unconfirmed
What it is

Twig is a template language for PHP. Prior to 3.26.0, {% sandbox %}{% include %} can include a template that was previously loaded outside the sandbox without re-invoking checkSecurity(), allowing the cached template to use tags, filters, and functions that should have been denied by SecurityPolicy::checkSecurity(). This issue is fixed in version 3.26.0.

The record
Technical detail
CVSS v4.0
6.0 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS
0.00473 · 39.9th percentile
Weakness
CWE-693 · Protection Mechanism Failure
Published
2026-07-14T21:23Z
EPSS history
Timeline
  • 14 JUL 21:23Z
    Twig: `{% sandbox %}{% include %}` skips checkSecurity() on cached templates (incomplete fix for CVE-2024-45411)
    cvelistv5