CVEvulnerability

CVE-2026-49981

6.0 MEDIUM Published 2026-07-14 Modified 2026-10-24 Official page ↗
Status
Analyzed
Published
2026-07-14
Last modified
2026-10-24
Assigner
[email protected]
CVSS 4.0 ([email protected])
6.0 MEDIUM — 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1 ([email protected])
8.2 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Weaknesses
CWE-693, CWE-863

Description

Twig is a template language for PHP. Prior to 3.27.0, the per-template filter, tag, and function allow-list verdict is computed when a Template instance is constructed and can remain cached after sandbox state changes between renders, allowing a later sandboxed render to reuse a template that was originally checked with a different or empty policy. This issue is fixed in version 3.27.0.

Affected configurations

• symfony twig (< 3.27.0)

Related

Weakness · CWE (2)

  • CWE-693 Protection Mechanism Failure weakness
  • CWE-863 Incorrect Authorization weakness

References