{"id":"CVE-2026-48806","aliases":["GHSA-5v5v-ww74-355v"],"url":"https://o3.security/vulnerability/CVE-2026-48806","summary":"Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys","details":"Twig is a template language for PHP. Prior to 3.27.0, ArrayExpression does not guard dynamic mapping keys that are coerced to strings, allowing PHP to invoke __toString() on a Stringable object used as a mapping key without calling SandboxExtension::ensureToStringAllowed(). This issue is fixed in version 3.27.0.","published":"2026-07-14T21:28:08.781Z","modified":"2026-08-12T03:51:09.308651563Z","cvss":null,"epss":{"score":0.00234,"percentile":0.14581,"asOf":"2026-08-22"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"twig/twig","fixedVersion":"3.27.0"}],"fix":{"url":"https://github.com/twigphp/Twig/commit/9ff41014639ef0e8eb50ac7669191c309d863105","label":"twigphp/Twig@9ff4101"},"references":[{"type":"WEB","url":"https://github.com/twigphp/Twig/releases/tag/v3.27.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48806.json"},{"type":"ADVISORY","url":"https://github.com/twigphp/Twig/security/advisories/GHSA-5v5v-ww74-355v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48806"},{"type":"FIX","url":"https://github.com/twigphp/Twig/commit/9ff41014639ef0e8eb50ac7669191c309d863105"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:09.308651563Z"}}