Uncontrolled Memory Allocation in Scriban Template Functions by Scriban
CVE-2026-74788

8.7HIGH

Key Information:

Vendor

Scriban

Status
Vendor
CVE Published:
16 August 2026

What is CVE-2026-74788?

Scriban, a popular template engine, is impacted by an uncontrolled memory allocation vulnerability in its string.pad_left and string.pad_right functions. This vulnerability arises from the lack of validation on the width parameter when delegating operations to the .NET String.PadLeft and PadRight methods. An attacker can exploit this flaw by providing excessively large width values through untrusted template inputs, potentially triggering massive memory allocations, resulting in OutOfMemoryExceptions and denial of service. The limitation set in TemplateContext.LimitToString is ineffective as it is only enforced post allocation, leaving systems vulnerable to attack.

Affected Version(s)

scriban 0 < 7.0.0

scriban 7.0.0

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

offset
.