CVE Catalog

CVE-2026-46635

MediumCVSS 4.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.30%

22th percentile - higher than 22% of all known CVEs

Summary

A vulnerability in the Twig template engine before version 3.26.0 allows reading public and magic properties of PHP objects via the column filter, bypassing sandbox restrictions. This enables a template author with access to the column filter to read properties not in the sandbox allowlist.

Risk Assessment

The risk involves leakage of sensitive data from PHP objects not protected by the sandbox, potentially leading to disclosure of confidential information in the application.

Recommendation

Immediately update the Twig library to version 3.26.0 or later, which includes a fix for this vulnerability.

Other vulnerabilities in Twig

See all
Original NVD description (English source)

Twig is a template language for PHP. Prior to 3.26.0, the column filter passes object arrays to PHP array_column(), which reads public and magic properties without reaching CoreExtension::getAttribute() or SandboxExtension::checkPropertyAllowed(), allowing an untrusted template author with column in allowedFilters to read properties that are not in the sandbox allowlist. This issue is fixed in version 3.26.0.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS