Summary
CVE-2026-113431 is an uncontrolled resource allocation vulnerability (CWE-770) in ninenines cowlib, the support library used by the Cowboy web server for HTTP/2. A remote, unauthenticated client can cause an HTTP/2 server built on cowlib to exhaust memory. The severity is High (CVSS 8.7).
Technical details
- Root cause:
cow_http2_machine:headers_decode/4bounds the compressed block size and the field count, but does not enforceSETTINGS_MAX_HEADER_LIST_SIZEon the decoded header list. - Trigger conditions: The server accepts HTTP/2 connections built on cowlib. The attacker sends HPACK-indexed header fields.
- Attack vector: Network. No authentication or user interaction is required.
- Impact: A payload of about 100 bytes expands to about 390 KB when decoded, roughly 2,400x amplification. One connection reaches about 38 MB with default settings. The result is availability loss (denial of service) through memory exhaustion.
Affected software
- cowlib 2.7.0 and later (Hex package
pkg:hex/cowlib), as of the advisory publication. The affected range starts at commitb461b119e78e4e09bb28b186b09da7ed4a86a0dd. - Servers built on cowlib’s HTTP/2 support, such as Cowboy, are exposed through it.
Severity
- CVSS v4.0 base score: 8.7 (High)
- Vector:
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 - The published record gives a CVSS v4.0 score. It does not give a v3.1 score.
Mitigation and recommended actions
- Immediate: Update cowlib to a build that includes the fix commit
a3b15e29b3067644bfd580246c87f7af7a90b3b8. The advisory does not name a released fixed version number. Check the Hex releases and the vendor repository for one. - Workaround: If HTTP/2 is not required, set
protocols => [http]in the protocol options. HTTP/2 requests then receive501 Not Implemented. - Partial mitigation: Lower
max_headersin the HTTP/2 protocol options. This shrinks the per-stream allocation but does not eliminate the amplification.

