{"id":"CVE-2026-46627","published":"2026-07-14T21:15:17Z","modified":"2026-07-16T15:03:37Z","title":"Twig: Sandbox resource exhaustion via unbounded `for` / `range()`","vendor":"twigphp","product":"Twig","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00542,"percentile":0.46483,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-923g-j88x-j34q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twigphp/Twig/commit/6bfa285e2f98651adb7aa480bf83a741d154f09f","tags":["x_refsource_MISC"]},{"url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":9.3},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"twigphp","affectedVersions":[{"vendor":"twigphp","product":"Twig","versions":["< 3.26.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-16T15:03:26.852084Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-44559","exploited":false,"provenance":"source"}}