CVE-2026-74788
published high CVSS 4.0 · 8.7Scriban before 7.0.0 Denial of Service via string.pad_left/pad_right
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| scriban | — | scriban0 to < 7.0.0 (affected · semver) · 7.0.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| scriban | scriban | 0 to < 7.0.0 (affected · semver)7.0.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-770 Allocation of Resources Without Limits or Throttling
References
2- GitHub Security Advisory (GHSA-v66j-x4hw-fv9g) https://github.com/scriban/scriban/security/advisories/GHSA-v66j-x4hw-fv9g
- VulnCheck Advisory: Scriban before 7.0.0 Denial of Service via string.pad_left/pad_right https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-string-pad-left-pad-right
Provider assertions
2VulnCheck · cna
Scriban before 7.0.0 Denial of Service via string.pad_left/pad_right
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c31e9e1c65aeab391e79a2013bf5844280ee9cea5f20de648a773d8e46539564
- Ingested
- 23 Sep 2026, 09:31:28 UTC
- Source record
- Official CVE record