{"id":"CVE-2026-46627","aliases":["CVE-2026-46627"],"related":[],"kind":"vulnerability","state":"published","title":"Twig: Sandbox resource exhaustion via unbounded `for` / `range()`","summary":"Twig is a template language for PHP. Prior to 3.26.0, the Twig sandbox does not prevent a template from consuming CPU, memory, or wall-clock time, even under the strictest allow-list, allowing untrusted templates to cause resource exhaustion. This issue is addressed in version 3.26.0 by documenting that the sandbox does not protect against resource exhaustion.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Twig is a template language for PHP. Prior to 3.26.0, the Twig sandbox does not prevent a template from consuming CPU, memory, or wall-clock time, even under the strictest allow-list, allowing untrusted templates to cause resource exhaustion. This issue is addressed in version 3.26.0 by documenting that the sandbox does not protect against resource exhaustion.","source":"cvelist"},{"lang":"es","text":"Twig es un lenguaje de plantillas para PHP. Antes de 3.26.0, el sandbox de Twig no impide que una plantilla consuma CPU, memoria o tiempo de reloj de pared, incluso bajo la lista de permitidos más estricta, permitiendo que plantillas no confiables causen agotamiento de recursos. Este problema se aborda en la versión 3.26.0 al documentar que el sandbox no protege contra el agotamiento de recursos.","source":"nvd"}],"published":"2026-07-14T21:15:17.366Z","modified":"2026-10-24T22:10:00.210Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 3.26.0","status":"affected"}],"vendor":"twigphp","product":"Twig","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.26.0"}],"vendor":"symfony","product":"twig","cpe":"cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-923g-j88x-j34q","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/twigphp/Twig/commit/6bfa285e2f98651adb7aa480bf83a741d154f09f","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-16T15:03:26.852Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46627","url":"https://www.cve.org/CVERecord?id=CVE-2026-46627","licence":"CVE Terms of Use","modified":"2026-07-16T15:03:37.558Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46627","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46627","licence":"Public domain","modified":"2026-10-24T22:10:00.210Z"}],"updatedAt":"2026-11-25T22:59:28.236Z","epss":{"score":0.00385,"percentile":0.3466,"date":"2026-12-01T12:00:22.000Z"}}