{"id":"CVE-2019-9942","aliases":["GHSA-vxrc-68xx-x48g"],"url":"https://o3.security/vulnerability/CVE-2019-9942","summary":"Twig Sandbox Information Disclosure","details":"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.","published":"2019-03-23T15:29:00.323Z","modified":"2026-08-07T11:48:22.133077864Z","cvss":{"score":3.7,"severity":"LOW","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"twig/twig","fixedVersion":"1.38.0"},{"ecosystem":"Packagist","name":"twig/twig","fixedVersion":"2.7.0"}],"fix":{"url":"https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077","label":"twigphp/Twig@eac5422"},"references":[{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Mar/60"},{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4419"},{"type":"FIX","url":"https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077"},{"type":"FIX","url":"https://symfony.com/blog/twig-sandbox-information-disclosure"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:48:22.133077864Z"}}