CVE-2026-46639

NameCVE-2026-46639
DescriptionTwig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling property and method policy checks and allowing an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. This issue is fixed in version 3.26.0.
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)bullseye2.14.3-1+deb11u2fixed
bullseye (security)2.14.3-1+deb11u4fixed
bookworm, bookworm (security)3.5.1-1+deb12u3fixed
trixie (security), trixie3.27.0-0+deb13u1fixed
forky, sid3.27.1-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-twigsourcebullseye(not affected)
php-twigsourcebookworm(not affected)
php-twigsourcetrixie(not affected)
php-twigsource(unstable)3.26.0-1

Notes

[trixie] - php-twig <not-affected> (Vulnerable code not present, introduced in 3.24)
[bookworm] - php-twig <not-affected> (Vulnerable code not present, introduced in 3.24)
[bullseye] - php-twig <not-affected> (Vulnerable code not present, introduced in 3.24)
https://symfony.com/blog/cve-2026-46639-sandbox-property-and-method-bypass-via-object-destructuring-assignment

Search for package or bug name: Reporting problems