# CVE-2026-74788: Scriban before 7.0.0 Denial of Service via string.pad_left/pad_right

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-24T22:13:37.000Z
- Modified: 2026-08-31T20:30:14.457Z
- Also known as: GHSA-v66j-x4hw-fv9g
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- scriban scriban: before 7.0.0 (not affected: 7.0.0)
- Scriban (NuGet): before 7.0.0
- Scriban.Signed (NuGet): before 7.0.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/scriban/scriban/security/advisories/GHSA-v66j-x4hw-fv9g> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-string-pad-left-pad-right> (third-party-advisory)
- <https://github.com/scriban/scriban> (package)

## Sources

- CVE List: [CVE-2026-74788](https://www.cve.org/CVERecord?id=CVE-2026-74788), CVE Terms of Use, modified 2026-08-17
- GitHub Advisory Database: [GHSA-v66j-x4hw-fv9g](https://github.com/advisories/GHSA-v66j-x4hw-fv9g), CC-BY-4.0, modified 2026-08-17
- NVD: [CVE-2026-74788](https://nvd.nist.gov/vuln/detail/CVE-2026-74788), Public domain, modified 2026-08-31

---

Page: https://cve.day/CVE-2026-74788 · Whole record: https://cve.day/CVE-2026-74788.json · Rebuilt by cve.day 2026-11-25T22:59:33.306Z
