What’s Vulnerable › Vulnerabilities
CVE-2019-9942
- Severity: low (CVSS 3.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2019-03-23 · updated 2026-06-17
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.
Affected products
- Debian Linux: 9.0
- twigphp Twig: before 1.38.0; from 2.0.0 before 2.7.0 — fixed in 1.38.0, 2.7.0
How to fix
Upgrade to a fixed version: twigphp Twig 1.38.0, 2.7.0. Check the vendor advisory for mitigations.
References
- https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077
- https://seclists.org/bugtraq/2019/Mar/60
- https://symfony.com/blog/twig-sandbox-information-disclosure
- https://www.debian.org/security/2019/dsa-4419
- https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077
- https://seclists.org/bugtraq/2019/Mar/60
- https://symfony.com/blog/twig-sandbox-information-disclosure
- https://www.debian.org/security/2019/dsa-4419
Get alerted when CVE-2019-9942 or the next vulnerability affects your stack