CVE-2026-46639 HIGH

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

Vendor Twigphp
Product Twig
Weakness CWE-693
Published July 14, 2026
Last update July 15, 2026

CVSS base score

7.1/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 14, 2026 CVE published
July 15, 2026 Record updated