CVE-2026-74788: Scriban - Denial of Service
- Cve: CVE-2026-74788
- Name: Scriban - Denial of Service
- 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.
- Impact: Attackers can cause application crashes by triggering large memory allocations, resulting in denial of service.
- Remediation: Update to version 7.0.0 or later.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00488
- Epss percentile: 0.42547
- Assignee: [email protected]
- Published at: 2026-08-16T14:16:56Z
- Age in days: 100
- Modified at: 2026-08-31T20:30:14Z
- References total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-74788
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/scriban/scriban/security/advisories/GHSA-v66j-x4hw-fv9g | nvd | |
| https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-string-pad-left-pad-right | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| scriban/scriban | security_advisory | yes | /v1/repositories/scriban/scriban |
Index
- Repositories: 12
- Repositories high signal: 11
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts