CVE-2026-133768 in Twiginfo

Summary

by MITRE • 11/24/2026

The join filter converted a value that isn't iterable with (array) $value. For an object, that gives every property, including the private and protected ones. A sandboxed template allowed to use join could therefore print properties that the policy denies, and that templates can't read otherwise:

{{ user|join(',') }}

A value that isn't iterable is now joined as a single item. A Stringable object prints its checked string, and other objects throw, as with the first and last filters.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/24/2026

The vulnerability described involves an improper handling of non-iterable values within a template engine's join filter functionality, specifically affecting how objects are converted into arrays for processing. In many modern web frameworks and templating systems, such as Twig or similar PHP-based engines, the join filter is designed to concatenate elements from an iterable data structure like an array or list into a single string separated by a specified delimiter. However, when this filter encounters a value that does not natively support iteration, it attempts to coerce the input into an array using standard type casting mechanisms. In languages like PHP, casting an object to an array results in all properties of that object being exposed as key-value pairs within the resulting array. This behavior includes public, protected, and private properties, effectively bypassing encapsulation boundaries that are normally enforced by the language's access control rules.

This technical flaw creates a significant information disclosure risk, particularly in environments where template engines operate under sandboxed security policies. A sandbox is intended to restrict what actions templates can perform, often limiting them to reading specific public data while preventing access to internal state or sensitive configuration details stored within private properties of objects. When the join filter converts an object into an array by exposing all its properties, it allows a malicious actor who has control over template content to extract these hidden values. For instance, if a user object contains private fields such as authentication tokens, password hashes, or internal identifiers, the expression {{ user|join(',') }} would output these sensitive details directly in the rendered response, violating the principle of least privilege and compromising data confidentiality.

The operational impact extends beyond simple information leakage. By exposing protected and private properties, attackers can gain insights into the application's architecture, identify potential secondary vulnerabilities such as insecure deserialization or logic flaws related to specific internal states, and potentially escalate privileges if certain property values influence access control decisions. This behavior undermines the integrity of the sandboxing mechanism, which relies on strict separation between public interfaces and internal implementation details. The vulnerability is particularly dangerous in scenarios where user input can indirectly influence template rendering paths, allowing attackers to probe for sensitive data without triggering obvious error messages that might alert administrators or intrusion detection systems.

From a classification perspective, this issue aligns with CWE-209: Generation of Error Message Containing Sensitive Information and CWE-798: Use of Hard-coded Credentials if the exposed properties include secrets. It also relates to CWE-611: Improper Restriction of XML External Entity Reference in broader contexts where object introspection leads to unauthorized data access, though more accurately it falls under CWE-200 or general information exposure due to improper encapsulation enforcement. In terms of MITRE ATT&CK techniques, this vulnerability facilitates Data from Information Repositories (T1005) and potentially Discovery activities such as System Information Discovery (T1082), allowing adversaries to map out the internal structure of the application for further exploitation.

Mitigation strategies should focus on enforcing strict type checking within template filters before attempting any conversion or iteration. Developers must ensure that only explicitly iterable types are processed by join-like functions, rejecting objects unless they implement specific interfaces designed for safe serialization. Additionally, sandboxed environments should validate object properties against a whitelist of allowed fields rather than relying on default language behavior which exposes all attributes. Implementing custom serializers that respect access modifiers and excluding private or protected members during conversion is essential to maintaining security boundaries. Regular code audits focusing on template engine configurations and filter implementations can help identify similar weaknesses where implicit type coercion leads to unintended data exposure.

Responsible

Symfony

Reservation

11/20/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00533

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!