CVE-2026-46639CWE-693

Twig: Sandbox property and method bypass via object-destructuring assignment

High · published July 14, 2026

CVSS v4.0
7.1
EPSS
0%
Percentile
32.5
In the wild
Unconfirmed
What it is

Twig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling property and method policy checks and allowing an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. This issue is fixed in version 3.26.0.

The record
Technical detail
CVSS v4.0
7.1 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS
0.00394 · 32.5th percentile
Weakness
CWE-693 · Protection Mechanism Failure
Published
2026-07-14T21:13Z
EPSS history
Timeline
  • 14 JUL 21:13Z
    Twig: Sandbox property and method bypass via object-destructuring assignment
    cvelistv5