Description
h2o is an HTTP server with support for HTTP/1.x, HTTP/2 and HTTP/3. Prior to commit 6b5370d, h2o is vulnerable to a Denial of Service attack when calling alloca under certain conditions. When serving static files, h2o builds the file path on stack, by calling alloca. The maximum size of the memory allocated using alloca can be as huge as ~600KB, which exceeds the default pthread stack size used by musl libc (128KB). If the amount of memory allocated by alloca exceeds the stack size, the h2o server crashes with a segmentation fault, while it tries to touch the guard page. This issue has been fixed by commit 6b5370d.
Severity (CVSS)
| Base score | 7.5 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Provided by | CNA |
Weaknesses
- CWE-789 — CWE-789: Memory Allocation with Excessive Size Value
- CWE-770 — CWE-770: Allocation of Resources Without Limits or Throttling
Affected products
| Vendor | Product | Versions |
|---|---|---|
| h2o | h2o | < 6b5370d |
References
- https://github.com/h2o/h2o/security/advisories/GHSA-rf9v-m59p-mq84 (x_refsource_CONFIRM)
- https://github.com/h2o/h2o/commit/6b5370d9d09fcf83aa7620ddf77de1954a192181 (x_refsource_MISC)
Generated from the official CVE List on 17 Jul 2026 07:01 UTC.