{"id":"EUVD-2026-59954","enisaUuid":"02ff6d29-c2cd-3aff-a7a4-6a8a3867aa34","description":"Scriban before 7.0.0 (affected versions \u003c\u003d 6.6.0) contains an uncontrolled memory allocation vulnerability in the string.pad_left and string.pad_right template functions, which perform no validation on the width parameter before delegating to .NET\u0027s String.PadLeft/PadRight. When an application exposes Scriban to untrusted template input, an attacker can supply an arbitrarily large width value (e.g., 500,000,000) to trigger ~1GB memory allocations in a single call, resulting in OutOfMemoryException and denial of service. The TemplateContext.LimitToString limit does not prevent this because it is only enforced after the string has been fully allocated.","datePublished":"Aug 16, 2026, 1:14:13 PM","dateUpdated":"Aug 17, 2026, 4:46:25 PM","baseScore":8.7,"baseScoreVersion":"4.0","baseScoreVector":"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","references":"https://github.com/scriban/scriban/security/advisories/GHSA-v66j-x4hw-fv9g\nhttps://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-string-pad-left-pad-right\n","aliases":"CVE-2026-74788\nGHSA-3qxv-x8gq-wgff\n","assigner":"VulnCheck","epss":0.49,"enisaIdProduct":[{"id":"8602a49a-6ed3-3313-b8fb-874992bc239b","product":{"name":"scriban","vendor":{"name":"scriban"}},"product_version":"0 \u003c7.0.0"}],"enisaIdVendor":[{"id":"69355683-a25e-39df-94de-c1a2d2f9e4e9","vendor":{"name":"scriban"}}],"enisaIdVulnerability":[{"id":"b0e5601a-117a-3985-8f64-516986915c1b","vulnerability":{"id":"GHSA-3qxv-x8gq-wgff","description":"Scriban before 7.0.0 (affected versions \u003c\u003d 6.6.0) contains an uncontrolled memory allocation vulnerability in the string.pad_left and string.pad_right template functions, which perform no validation on the width parameter before delegating to .NET\u0027s String.PadLeft/PadRight. When an application exposes Scriban to untrusted template input, an attacker can supply an arbitrarily large width value (e.g., 500,000,000) to trigger ~1GB memory allocations in a single call, resulting in OutOfMemoryException and denial of service. The TemplateContext.LimitToString limit does not prevent this because it is only enforced after the string has been fully allocated.","datePublished":"Aug 16, 2026, 3:30:26 PM","dateUpdated":"Aug 16, 2026, 3:30:26 PM","baseScore":0.0,"references":"https://github.com/scriban/scriban/security/advisories/GHSA-v66j-x4hw-fv9g\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-74788\nhttps://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-string-pad-left-pad-right\n","enisa_id":"EUVD-2026-59954\n","aliases":"GHSA-3qxv-x8gq-wgff\nCVE-2026-74788\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:53:30 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"dd4fda96-ab1b-34d2-b303-00871f63ea0e","vulnerability":{"id":"CVE-2026-74788","description":"Scriban before 7.0.0 (affected versions \u003c\u003d 6.6.0) contains an uncontrolled memory allocation vulnerability in the string.pad_left and string.pad_right template functions, which perform no validation on the width parameter before delegating to .NET\u0027s String.PadLeft/PadRight. When an application exposes Scriban to untrusted template input, an attacker can supply an arbitrarily large width value (e.g., 500,000,000) to trigger ~1GB memory allocations in a single call, resulting in OutOfMemoryException and denial of service. The TemplateContext.LimitToString limit does not prevent this because it is only enforced after the string has been fully allocated.","datePublished":"Aug 16, 2026, 1:14:13 PM","dateUpdated":"Aug 17, 2026, 4:46:25 PM","status":"PUBLISHED","baseScore":8.7,"baseScoreVersion":"4.0","baseScoreVector":"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","references":"https://github.com/scriban/scriban/security/advisories/GHSA-v66j-x4hw-fv9g\nhttps://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-string-pad-left-pad-right\n","enisa_id":"EUVD-2026-59954\n","assigner":"VulnCheck","epss":0.49,"dataProcessed":"Nov 19, 2026, 7:18:57 AM","vulnerabilityProduct":[{"id":"9a518269-6732-351b-b294-324368081c24","product":{"name":"scriban","vendor":{"name":"scriban"}},"product_version":"0 \u003c7.0.0"}],"vulnerabilityVendor":[{"id":"135397a8-247e-336b-b0f0-e8a77e3874ce","vendor":{"name":"scriban"}}]}}],"enisaIdAdvisory":[]}