{"id":"CVE-2019-9942","published":"2019-03-23T14:31:53Z","modified":"2024-08-04T22:10:08Z","title":"A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01405,"percentile":0.73236,"provenance":"source"},"cwes":[],"references":[{"url":"https://symfony.com/blog/twig-sandbox-information-disclosure","tags":["x_refsource_MISC"]},{"url":"https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2019/dsa-4419","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://seclists.org/bugtraq/2019/Mar/60","tags":["mailing-list","x_refsource_BUGTRAQ"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":14.65}]},"affected":[{"ecosystem":"Packagist","package":"twig/twig","vulnerableRanges":["<1.38.0",">=2.0.0, <2.7.0"],"patched":["1.38.0","2.7.0"],"from":["GHSA-vxrc-68xx-x48g"],"provenance":"source"}],"summary":{"text":"The flaw is a sandbox information disclosure in Twig, the PHP template engine, affecting versions before 1.38.0 and 2.x before 2.7.0. It lies in the sandbox's enforcement logic, which can allow the __toString() method to be invoked on an object even when the active security policy does not permit it. An attacker who can supply or influence template content processed under the sandbox could trigger that __toString() call and read the resulting data, subject to the conditions under which the bypass arises.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:23Z"},"euvd":{"id":"EUVD-2022-1558","exploited":false,"provenance":"source"}}