CVE-2026-133768

NameCVE-2026-133768
DescriptionThe 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-twig (PTS)bookworm, bookworm (security)3.5.1-1+deb12u3vulnerable
trixie (security), trixie3.27.0-0+deb13u1vulnerable
forky3.30.0-1vulnerable
sid3.31.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-twigsource(unstable)3.31.1-1

Notes

https://symfony.com/blog/cve-2026-133768-sandbox-property-allow-list-bypass-via-the-join-filter-on-non-iterable-objects
https://github.com/twigphp/Twig/security/advisories/GHSA-p2x6-ppf3-32r3
https://github.com/twigphp/Twig/commit/6bcede134671133a4a056199af5cf4749d189d72 (v3.31.1)

Search for package or bug name: Reporting problems