{"apiVersion":"1.0","identifier":"CVE-2026-74788","description":"Scriban before 7.0.0 (affected versions <= 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-s 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.","publishedAt":"2026-08-16T14:16:56","lastModifiedAt":"2026-08-17T17:16:52","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-74788","cvssScore":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","epssProbability":0.00278,"riskScore":0.77,"affectedProduct":"Scriban","affectedVersions":"<7.0.0","vulnerabilityType":"Library","operatingSystems":[],"links":{"self":"https://www.redsauce.net/api/cves/CVE-2026-74788","webPages":{"es":"https://www.redsauce.net/es/cves/CVE-2026-74788","en":"https://www.redsauce.net/en/cves/CVE-2026-74788","fr":"https://www.redsauce.net/fr/cves/CVE-2026-74788","pt":"https://www.redsauce.net/pt/cves/CVE-2026-74788","de":"https://www.redsauce.net/de/cves/CVE-2026-74788","sk":"https://www.redsauce.net/sk/cves/CVE-2026-74788","el":"https://www.redsauce.net/el/cves/CVE-2026-74788"},"source":"https://nvd.nist.gov/vuln/detail/CVE-2026-74788"}}