Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-113431

HIGH 8.7EPSS 38%

Unbounded decoded HTTP/2 header-list size in cowlib cow_http2_machine enables HPACK amplification memory exhaustion

Mitigation

  • Upgrade cowlib to 2.22.0 or later.
  • Vendor workaround: Cowboy servers that do not need HTTP/2 can set protocols => [http] in the protocol options. The listener then answers the HTTP/2 preface with 501 Not Implemented and the decoder is never reached.
  • Lowering max_headers in the HTTP/2 protocol options shrinks the per-stream allocation in proportion, to about max_headers times the 4096-byte table entry. This reduces the amplification but does not remove it.

Who should check

  • Anyone running ninenines cowlib >= 2.7.0, < 2.22.0
  • Anyone running ninenines cowlib >= b461b119e78e4e09bb28b186b09da7ed4a86a0dd, < a3b15e29b3067644bfd580246c87f7af7a90b3b8

Vulnerability facts

Affected
ninenines cowlib >= 2.7.0, < 2.22.0; ninenines cowlib >= b461b119e78e4e09bb28b186b09da7ed4a86a0dd, < a3b15e29b3067644bfd580246c87f7af7a90b3b8
Fixed in
ninenines cowlib 2.22.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.52% chance of exploitation in 30 days (percentile 38, 2026-11-28)
CWE
CWE-770
Published
Modified

Description

Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowlib allows an unauthenticated remote peer to exhaust the memory of an HTTP/2 endpoint via HPACK-indexed header fields. cow_http2_machine:headers_decode/4 in src/cow_http2_machine.erl decodes every HEADERS block with cow_hpack:decode/3. It bounds the compressed block size and the number of fields, but not the size of the decoded header list that RFC 9113 section 6.5.2 places under SETTINGS_MAX_HEADER_LIST_SIZE. A peer stores one header value of up to the dynamic table size (4096 bytes by default) and then references it with one-byte indexed fields, so about 100 bytes on the wire decode to a header list of about 390 KB. A consumer that copies the decoded values, as Cowboy does when cowboy_http2:headers_to_map/2 joins repeated cookie fields into one binary, allocates that amount for every stream. The total across streams and connections is not bounded. This issue affects cowlib: from 2.7.0 before 2.22.0.

Affected and fixed versions

Package / productAffectedFixedSource
ninenines cowlib>= 2.7.0, < 2.22.0—cvelist
ninenines cowlib>= b461b119e78e4e09bb28b186b09da7ed4a86a0dd, < a3b15e29b3067644bfd580246c87f7af7a90b3b8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-113431. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-113431.md
Affected: ninenines cowlib >= 2.7.0, < 2.22.0; ninenines cowlib >= b461b119e78e4e09bb28b186b09da7ed4a86a0dd, < a3b15e29b3067644bfd580246c87f7af7a90b3b8
Fixed in: ninenines cowlib 2.22.0

Steps:
1. Search this machine and project for ninenines cowlib: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-113431 being exploited?

There is no confirmed exploitation: CVE-2026-113431 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-28).

How serious is CVE-2026-113431?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-113431?

ninenines cowlib >= 2.7.0, < 2.22.0; ninenines cowlib >= b461b119e78e4e09bb28b186b09da7ed4a86a0dd, < a3b15e29b3067644bfd580246c87f7af7a90b3b8.

Is there a fix for CVE-2026-113431?

Yes. Fixed in ninenines cowlib 2.22.0. Upgrade cowlib to 2.22.0 or later. Vendor workaround: Cowboy servers that do not need HTTP/2 can set protocols => [http] in the protocol options. The listener then answers the HTTP/2 preface with 501 Not Implemented and the decoder is never reached. Lowering max_headers in the HTTP/2 protocol options shrinks the per-stream allocation in proportion, to about max_headers times the 4096-byte table entry. This reduces the amplification but does not remove it.

How do I check if I'm affected by CVE-2026-113431?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors