CVE-2026-74788
Last modified
CVE-2026-74788 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.28% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| scriban | scriban | < 7.0.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-74788?
How severe is CVE-2026-74788?
How do I fix CVE-2026-74788?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-74774Dell PowerProtect One, versions 20.1.0.0 and below, contain …7.5
- CVE-2026-74783Scriban versions 6.6.0 through 7.2.0 contain a non-enforcing…7.5
- CVE-2026-74784Scriban before 7.2.0 contains a denial of service vulnerabil…8.7
- CVE-2026-74785Scriban before 7.0.0 contains three distinct denial-of-servi…6.5
- CVE-2026-74786Scriban before 7.0.0 (affected versions <= 6.6.0) contains a…6.5
- CVE-2026-74787Scriban before 7.0.0 contains an uncontrolled recursion vuln…7.5
- CVE-2026-74789Scriban before 7.0.0 (affected <= 6.6.0) applies its LoopLim…7.5
- CVE-2026-74790Scriban before 7.0.0 caches TypedObjectAccessor by Type only…9.1
- CVE-2026-74791Scriban before 7.0.0 fails to clear the CachedTemplates dict…8.6
- CVE-2026-74792Scriban before 7.0.0 (affected versions <= 6.6.0) contains a…7.5
- CVE-2026-74793justhtml before 3.11.0 contains a cross-site scripting vulne…6.1
- CVE-2026-74794Scriban before 6.6.0 contains an infinite recursion vulnerab…7.5
Are you affected by CVE-2026-74788?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
