Sceawere

Vulnerability Detail

CVE-2026-74786UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

Scriban ObjectToString Denial of Service

Vulnerability Metadata

Severity
Medium
Score / CVSS
6.5
Creation Date
7h ago
Vendor
scriban
Product
scriban
Attack Type
Allocation of Resources Without Limits or Throttling
Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Complexity
LOW

Narrative and Response

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.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "6.5",
  "pubDate": "2026-08-16T14:16:56.523Z",
  "pubdate": "2026-08-16T14:16:56.523Z",
  "executiveSummary": "Scriban before version 7.0.0, specifically affecting versions 6.6.0 and prior, contains a denial-of-service vulnerability arising from a flaw in safety limit enforcement during string conversion.\nThe vulnerability allows an attacker capable of supplying a template to repeatedly render near-limit strings within a loop, circumventing the intended LimitToString safety limit of 1MB.\nThis behavior leads to excessive memory allocation of approximately 1GB, triggering an out-of-memory condition that results in the crash of the host application.\nThe primary impact is the complete unavailability of the affected system or application, presenting a high risk for services that process untrusted templates.\nExploitation requires the ability to supply and execute arbitrary template input against the vulnerable parsing and rendering engine.",
  "technicalDetails": "The vulnerability resides within the string conversion and output handling components of Scriban, specifically involving the LimitToString safety limit, the ObjectToString function, and the StringBuilderOutput mechanism.\nThe root cause of the vulnerability is twofold: ObjectToString resets the per-call length counter (_currentToStringLength) on every top-level call, and StringBuilderOutput enforces no cumulative output-size limit across multiple operations.\nWhile the default LimitToString safety limit is configured to 1MB to prevent excessive memory consumption per string conversion operation, the resetting mechanism allows this boundary to be repeatedly approached without tracking cumulative growth.\nAn attacker exploits this flaw by crafting a malicious template containing a loop structure that repeatedly invokes string generation operations, rendering a string just under the 1MB limit in each iteration.\nBecause the per-call length counter is reset with each top-level call and the underlying StringBuilderOutput does not aggregate or restrict cumulative output size, the application continues to allocate memory for each iteration.\nThe attack flow proceeds as follows: 1) The attacker submits a specially crafted template containing a repetitive loop. 2) The Scriban rendering engine processes the loop, executing top-level string conversions that repeatedly trigger the reset of _currentToStringLength. 3) Each iteration outputs a near-limit string, bypassing the intended cumulative safety threshold. 4) The continuous allocation accumulates approximately 1GB of memory.\nThis rapid and unrestrained memory consumption exhausts available system resources, leading directly to an out-of-memory condition and causing the host application to crash.\nThe affected versions include all releases of Scriban prior to version 7.0.0, with version 6.6.0 explicitly confirmed as vulnerable.\nNo specific authentication, privileges, or network exposure are inherently required beyond the ability to supply a template to the application rendering engine."
}
CVE-2026-74786: Scriban ObjectToString Denial of Service (MEDIUM Severity, CVSS: 6.5) - Sceawere