{"id":"CVE-2026-74788","state":"PUBLISHED","title":"Scriban before 7.0.0 Denial of Service via string.pad_left/pad_right","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-16T13:14:13.132Z","updatedAt":"2026-08-17T16:46:25.578Z","severity":{"score":8.7,"label":"High","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["scriban scriban"],"affected":[{"vendor":"scriban","product":"scriban","packageURL":"pkg:nuget/Scriban","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"7.0.0","versionType":"semver"},{"version":"7.0.0","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/scriban/scriban/security/advisories/GHSA-v66j-x4hw-fv9g","https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-string-pad-left-pad-right"],"weaknesses":["CWE-770"],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74788.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74788","state":"PUBLISHED","datePublished":"2026-08-16T13:14:13.132Z","dateUpdated":"2026-08-17T16:46:25.578Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-08-16T12:56:02.577Z"},"containers":{"cna":{"title":"Scriban before 7.0.0 Denial of Service via string.pad_left/pad_right","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"scriban","product":"scriban","packageURL":"pkg:nuget/Scriban","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"7.0.0","versionType":"semver"},{"version":"7.0.0","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/scriban/scriban/security/advisories/GHSA-v66j-x4hw-fv9g","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-v66j-x4hw-fv9g)"},{"url":"https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-string-pad-left-pad-right","name":"VulnCheck Advisory: Scriban before 7.0.0 Denial of Service via string.pad_left/pad_right","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.7,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-770","lang":"en","description":"Allocation of Resources Without Limits or Throttling","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-08-16T13:14:13.132Z"},"datePublic":"2026-03-22T00:00:00.000Z","credits":[{"lang":"en","value":"offset","type":"reporter"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/scriban/scriban/security/advisories/GHSA-v66j-x4hw-fv9g","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-17T16:44:00.266870Z","id":"CVE-2026-74788","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-17T16:46:25.578Z"}}]}}}