Scriban before 7.0.0 Denial of Service via string.pad_left/pad_right
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-770.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA scriban (scriban) Fixed in 7.0.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
scriban 7.0.0
8 records Highest priority Priority HIGH 5 HIGH, 3 MEDIUM
Other records, highest priority first
- TI-2026-52554 Scriban before 7.0.0 MemberFilter Bypass via TemplateContext CachePriority HIGH 81
- TI-2026-52555 Scriban before 7.0.0 Authorization Bypass via Stale Include CachePriority HIGH 79
- TI-2026-52556 Scriban before 7.0.0 Stack Overflow via nested array initializersPriority HIGH 77
Timeline
- 2026-10-02 Threatist record created from CVE-2026-74788
- 2026-10-03 Alias added: GHSA-3qxv-x8gq-wgff
References
More scriban vulnerabilities
- TI-2026-52554 Scriban before 7.0.0 MemberFilter Bypass via TemplateContext Cache CVSS 4.0CRITICAL 9.3
- TI-2026-51270 Scriban before 7.2.2 Arbitrary Property Write via TypedObjectAccessor CVSS 4.0CRITICAL 9.3
- TI-2026-52555 Scriban before 7.0.0 Authorization Bypass via Stale Include Cache CVSS 4.0CRITICAL 9.2
- TI-2026-52558 Scriban before 6.6.0 Denial of Service via Infinite Recursion CVSS 4.0HIGH 8.7
- TI-2026-52556 Scriban before 7.0.0 Stack Overflow via nested array initializers CVSS 4.0HIGH 8.7
- TI-2026-52551 Scriban before 7.0.0 Uncontrolled Recursion via object.to_json CVSS 4.0HIGH 8.7
Sources
- CVE-2026-74788 · CVE Program
- CVE-2026-74788 · NVD
- FIRST EPSS
- GHSA-3qxv-x8gq-wgff · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences