CVE-2026-46639
published high CVSS 4.0 · 7.1Twig: Sandbox property and method bypass via object-destructuring assignment
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| twigphp | — | Twig>= 3.24.0, < 3.26.0 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| twigphp | Twig | >= 3.24.0, < 3.26.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-693 CWE-693: Protection Mechanism Failure
References
2Provider assertions
2GitHub_M · cna
Twig: Sandbox property and method bypass via object-destructuring assignment
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3b77fb0078348c152815c28717e09d961e93fe40f5c4b669332e838bea579a15
- Ingested
- 23 Sep 2026, 09:16:38 UTC
- Source record
- Official CVE record