Description
A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances, it is possible to call the __toString() method on an object even if not allowed by the security policy in place.
References (4)
Core 4
Core References
Patch, Vendor Advisory x_refsource_misc
https://symfony.com/blog/twig-sandbox-information-disclosure
Patch, Third Party Advisory x_refsource_misc
https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077
Third Party Advisory vendor-advisory
x_refsource_debian
https://www.debian.org/security/2019/dsa-4419
Mailing List, Third Party Advisory mailing-list
x_refsource_bugtraq
https://seclists.org/bugtraq/2019/Mar/60
Scores
CVSS v3
3.7
EPSS
0.0042
EPSS Percentile
61.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Details
Status
published
Products (3)
debian/debian_linux
9.0
symfony/twig
< 1.38.0
twig/twig
0 - 1.38.0Packagist
Published
Mar 23, 2019
Tracked Since
Feb 18, 2026