CVE-2026-133764

low
EUVD alias: EUVD-2026-133913
Assigned by CNA: symfony
Published 2026-11-24 · Modified 2026-12-01
CVSS v3
—
CVSS v4 NEW
2.3
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
VIR risk
2.3

Description

The sandbox checks that a template may call toString() on an object before converting it to a string. It didn't check the input of tests. The PHP callable of a test may convert this input to a string, for example when its parameter is typed as string. PHP then calls toString() on an object without the sandbox checking it first: {{ obj is upperish }} Applications are affected when they register such a test and allow it in the sandbox. No built-in test is affected. The sandbox now checks the input of tests like the input of filters. The built-in tests that never convert their input to a string still skip the check.

Predictions

Exploit likelihood
20%
Patch ETA
—

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.

Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

debian Debian Mixed 4 releases
VersionPackageStatusFixed in
trixie php-twig Affected —
sid php-twig Fixed 3.31.1-1
forky php-twig Fixed 3.31.1-1
bookworm php-twig Affected —

Package impact

EcosystemPackageVulnerableFixed
php Packagisttwig/twig>=1.0.0,<2.0.0|>=2.0.0,<3.0.0|>=3.0.0,<3.31.1

Application impact

VendorProductVersionsFixed
twigtwig_twig{"endExcluding":"3.31.1"}3.31.1

References

CWEs

CWE-693 CWE-863

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.