All reports
Low

Twig Sandbox Information Disclosure

Affected versions

Version ranges need review.

Composertwig/twig
Affected versions
< 1.38.0
Fixed version
1.38.0
Composertwig/twig
Affected versions
>= 2.0.0, < 2.7.0
Fixed version
2.7.0
Composertwig/twig
Affected versions
<1.38.0|>=2.0.0,<2.7.0
Fixed version
Not reported

Exploitation

CVE-2019-9942

Probability of exploitation in the next 30 days: 1.41%

FIRST EPSS · 2026-11-19

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.

Links