CVE-2026-74786
Received Received - Intake

Scriban Template Engine Denial-of-Service via Memory Exhaustion

Vulnerability report for CVE-2026-74786, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-16

Last updated on: 2026-08-16

Assigner: VulnCheck

Description

Scriban before 7.0.0 (affected versions <= 6.6.0) contains a denial-of-service vulnerability in which the LimitToString safety limit (default 1MB) can be bypassed because ObjectToString resets the per-call length counter (_currentToStringLength) on every top-level call and StringBuilderOutput enforces no cumulative output-size limit. An attacker who can supply a template can render a near-limit string repeatedly in a loop, allocating approximately 1GB of memory and causing an out-of-memory condition that crashes the host application.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-16
Last Modified
2026-08-16
Generated
2026-08-16
AI Q&A
2026-08-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
scriban scriban to 7.0.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-770 The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-74786 is a Denial of Service (DoS) vulnerability in Scriban, a .NET templating library. It affects versions up to 6.6.0. The issue allows bypassing the default 1MB safety limit for string output by exploiting a flaw where the length counter resets on each top-level call. Attackers can render large strings repeatedly in a loop, causing the application to allocate excessive memory (up to 1GB) and crash due to an out-of-memory condition.

Detection Guidance

To detect this vulnerability, monitor for excessive memory usage in applications using Scriban versions <= 6.6.0. Check for repeated crashes or high memory consumption during template rendering. Use tools like 'dotnet-counters monitor' to track memory usage in .NET processes.

Impact Analysis

This vulnerability can crash the host application by consuming excessive memory, leading to service disruption. If exploited in a web application, it may cause downtime or require manual intervention to restart the process. Systems processing untrusted templates are particularly at risk.

Compliance Impact

This vulnerability primarily impacts availability by causing out-of-memory crashes in host applications. While it does not directly expose or leak data, prolonged downtime from crashes could violate availability requirements in GDPR (Article 32) and HIPAA (Security Rule Β§164.308(a)(7)). However, the vulnerability itself does not directly affect data confidentiality or integrity.

Mitigation Strategies

Upgrade Scriban to version 7.0.0 or later immediately. If upgrading is not possible, implement a custom output size limit in TemplateContext to track cumulative bytes written across all Write calls. Disable untrusted template rendering until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-74786. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart