{"id":"CVE-2026-74792","aliases":["CVE-2026-74792","GHSA-p6q4-fgr8-vx4p"],"related":[],"kind":"vulnerability","state":"published","title":"Scriban before 7.0.0 Stack Overflow via nested array initializers","summary":"Scriban before 7.0.0 (affected versions <= 6.6.0) contains a stack overflow vulnerability in nested array initializer parsing. Deeply nested array initializers recurse through a path (ParseArrayInitializer → ParseExpression → ParseArrayInitializer) that is not covered by the ExpressionDepthLimit counter added in the fix for GHSA-wgh7-7m3c-fx25. An attacker who can supply untrusted input to Template.Parse can trigger an uncatchable StackOverflowException that immediately terminates the process, even with the default ExpressionDepthLimit enabled.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Scriban before 7.0.0 (affected versions <= 6.6.0) contains a stack overflow vulnerability in nested array initializer parsing. Deeply nested array initializers recurse through a path (ParseArrayInitializer → ParseExpression → ParseArrayInitializer) that is not covered by the ExpressionDepthLimit counter added in the fix for GHSA-wgh7-7m3c-fx25. An attacker who can supply untrusted input to Template.Parse can trigger an uncatchable StackOverflowException that immediately terminates the process, even with the default ExpressionDepthLimit enabled.","source":"cvelist"},{"lang":"en","text":"### Summary\nStackOverflowException via nested array initializers bypasses ExpressionDepthLimit fix (GHSA-wgh7-7m3c-fx25)\n\n### Details\nThe recent fix for GHSA-wgh7-7m3c-fx25 (uncontrolled recursion in parser) added `ExpressionDepthLimit` defaulting to 250. However, deeply nested **array initializers** (`[[[[...`) recurse through `ParseArrayInitializer` → `ParseExpression` → `ParseArrayInitializer`, which is a **different recursion path** not covered by the expression depth counter.\n\nThis causes a `StackOverflowException` on current main (commit b5ac4bf - \"Add limits for default safety\").\n\n### PoC\n```\nusing Scriban;\n\n// ExpressionDepthLimit (default 250) does NOT prevent this crash\nstring nested = \"{{ \" + new string('[', 5000) + \"1\" + new string(']', 5000) + \" }}\";\nTemplate.Parse(nested); // StackOverflowException - process terminates\n```\n\n### Impact\nSame as GHSA-wgh7-7m3c-fx25: High severity. StackOverflowException cannot be caught with try/catch in .NET - the process terminates immediately. Any application calling Template.Parse with untrusted input is vulnerable, even with the new default ExpressionDepthLimit enabled.","format":"markdown","source":"ghsa"}],"published":"2026-03-24T22:06:24.000Z","modified":"2026-09-08T20:32:39.347Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"7.0.0","status":"affected"},{"type":"semver","version":"7.0.0","status":"unaffected"}],"vendor":"scriban","product":"scriban","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"NuGet","package":"Scriban","purl":"pkg:nuget/Scriban","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"NuGet","package":"Scriban.Signed","purl":"pkg:nuget/Scriban.Signed","source":"ghsa"}],"references":[{"url":"https://github.com/scriban/scriban/security/advisories/GHSA-p6q4-fgr8-vx4p","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/scriban-before-stack-overflow-via-nested-array-initializers","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/advisories/GHSA-wgh7-7m3c-fx25","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/scriban/scriban","tags":["package"],"sources":["ghsa"]}],"credits":["pawlos"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-18T14:07:56.692Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74792","url":"https://www.cve.org/CVERecord?id=CVE-2026-74792","licence":"CVE Terms of Use","modified":"2026-08-18T14:08:24.056Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p6q4-fgr8-vx4p","url":"https://github.com/advisories/GHSA-p6q4-fgr8-vx4p","licence":"CC-BY-4.0","modified":"2026-08-17T03:55:58.372Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74792","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74792","licence":"Public domain","modified":"2026-09-08T20:32:39.347Z"}],"updatedAt":"2026-11-25T22:59:33.308Z","epss":{"score":0.00527,"percentile":0.38082,"date":"2026-11-30T12:00:22.000Z"}}