CVE-2019-9942
Symfony Twig vulnerability
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
Twig, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Symfony Twig runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- symfony.com/blog/twig-sandbox-information-disclosure · Patch
- github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077 · Patch
- seclists.org/bugtraq/2019/Mar/60 · Third Party Advisory
- www.debian.org/security/2019/dsa-4419 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-9942
- cve.org/CVERecord?id=CVE-2019-9942
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.