Cloudanix VulnDB

CVE-2026-46635

Low · 2.7

Twig: Sandbox property allowlist bypass via the `column` filter (array_column on objects)

CVSS

2.7

EPSS

0.3%

Published

May 21, 2026

CISA due date

—

The record

The `column` filter passes its input straight to PHP's native `array_column()`. When the array elements are objects, `array_column()` reads `$obj->$name` (and `$obj->$index`) directly, including invoking `__get`/`__isset`. Because this property read happens entirely in PHP native code and never reaches `CoreExtension::getAttribute()`, `SandboxExtension::checkPropertyAllowed()` is never consulted. An untrusted template author with `column` in their `allowedFilters` list can therefore read any public or magic property of any object reachable in the render context, regardless of the `SecurityPolicy` `allowedProperties` list. This is a variant of CVE-2024-51755 / GHSA-jjxq-ff2g-95vh that the `ArrayAccess`-focused fix did not cover.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities