CVE-2026-46635: CWE-863: Incorrect Authorization in twigphp Twig
Twig, a PHP template language, has an authorization vulnerability prior to version 3.26.0. The issue arises because the column filter passes object arrays directly to PHP's array_column() function, which accesses public and magic properties without invoking Twig's CoreExtension::getAttribute() or SandboxExtension::checkPropertyAllowed(). This allows an untrusted template author with column in allowedFilters to read properties not permitted by the sandbox allowlist. The vulnerability is fixed in Twig version 3.26.0.
AI Analysis
Technical Summary
CVE-2026-46635 describes an incorrect authorization vulnerability (CWE-863) in twigphp Twig prior to version 3.26.0. The vulnerability occurs because the column filter uses PHP's array_column() on object arrays, which reads public and magic properties directly, bypassing Twig's attribute access controls and sandbox property checks. This enables an untrusted template author with column in allowedFilters to access properties outside the sandbox allowlist. The issue is resolved in version 3.26.0.
Potential Impact
An untrusted template author with the column filter allowed can read object properties that should be restricted by the sandbox allowlist, potentially exposing sensitive data within the application context. The CVSS 4.0 base score is 5.3 (medium), indicating a moderate impact with network attack vector, low complexity, and no privileges required beyond limited template authoring rights.
Mitigation Recommendations
Upgrade Twig to version 3.26.0 or later, where this authorization issue is fixed. No other official remediation or temporary fixes are documented. Since this is not a cloud service, users must apply the update themselves. Patch status is confirmed fixed in 3.26.0.
CVE-2026-46635: CWE-863: Incorrect Authorization in twigphp Twig
Description
Twig, a PHP template language, has an authorization vulnerability prior to version 3.26.0. The issue arises because the column filter passes object arrays directly to PHP's array_column() function, which accesses public and magic properties without invoking Twig's CoreExtension::getAttribute() or SandboxExtension::checkPropertyAllowed(). This allows an untrusted template author with column in allowedFilters to read properties not permitted by the sandbox allowlist. The vulnerability is fixed in Twig version 3.26.0.
CVSS v4.0
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-46635 describes an incorrect authorization vulnerability (CWE-863) in twigphp Twig prior to version 3.26.0. The vulnerability occurs because the column filter uses PHP's array_column() on object arrays, which reads public and magic properties directly, bypassing Twig's attribute access controls and sandbox property checks. This enables an untrusted template author with column in allowedFilters to access properties outside the sandbox allowlist. The issue is resolved in version 3.26.0.
Potential Impact
An untrusted template author with the column filter allowed can read object properties that should be restricted by the sandbox allowlist, potentially exposing sensitive data within the application context. The CVSS 4.0 base score is 5.3 (medium), indicating a moderate impact with network attack vector, low complexity, and no privileges required beyond limited template authoring rights.
Mitigation Recommendations
Upgrade Twig to version 3.26.0 or later, where this authorization issue is fixed. No other official remediation or temporary fixes are documented. Since this is not a cloud service, users must apply the update themselves. Patch status is confirmed fixed in 3.26.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-15T20:11:54.583Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a56aea068715ace4342b0e6
Added to database: 07/14/2026, 21:48:16 UTC
Last enriched: 07/14/2026, 22:24:14 UTC
Last updated: 07/14/2026, 22:27:36 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.