Service crash via unchecked pad width
Published Aug 16, 2026 · Updated Aug 16, 2026
Resource exhaustion in Scriban before 7.0.0 allows remote attackers to crash applications via crafted template pad-width values. The string.pad_left and string.pad_right built-ins call StringFunctions.PadLeft and PadRight, which pass an untrusted width directly to .NET String.PadLeft and String.PadRight without an upper bound, so a single template expression can force a very large intermediate string allocation before TemplateContext.LimitToString is applied. Exposure requires an application to render untrusted Scriban templates; in that configuration, one request can raise OutOfMemoryException and interrupt the hosting process or service.
Summary
What happened
Resource exhaustion in Scriban before 7.0.0 allows remote attackers to crash applications via crafted template pad-width values. The string.pad_left and string.pad_right built-ins call StringFunctions.PadLeft and PadRight, which pass an untrusted width directly to .NET String.PadLeft and String.PadRight without an upper bound, so a single template expression can force a very large intermediate string allocation before TemplateContext.LimitToString is applied. Exposure requires an application to render untrusted Scriban templates; in that configuration, one request can raise OutOfMemoryException and interrupt the hosting process or service.
The record
- CVE
- CVE-2026-74788
- Published
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Vendor
- Scriban
- Product
- Scriban
- Classifications
- CWE-770, T1499
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 16, 2026CVE publishedPublication date reported by the CVE source.
- Aug 16, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <7.0.0
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-v66j-x4hw-fv9g single-request pad-width proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo