CVE-2026-43970

Decompression Bomb in cow_spdy:inflate/2 Allows Memory Exhaustion via Crafted SPDY Frame

Published May 13, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in ninenines cowlib allows unauthenticated remote denial of service via memory exhaustion.

cow_spdy:inflate/2 in cowlib passes peer-supplied compressed bytes directly to zlib:inflate/2 with no output size bound. The SPDY header compression dictionary (?ZDICT) is public, and zlib compresses long runs of repeated bytes at roughly 1024:1, so a few kilobytes of SPDY frame payload can decompress to gigabytes on the BEAM heap, OOM-killing the node. A single unauthenticated SPDY frame is sufficient to trigger the condition. The parsers for syn_stream, syn_reply, and headers frame types are all affected via cow_spdy:parse_headers/2.

This issue affects cowlib: from 0.1.0 before 2.16.1.

Analysis

AI-generated

Technical impact

The vulnerability stems from the cow_spdy:inflate/2 call in cowlib, which forwards peer-supplied compressed data directly to zlib:inflate/2 without limiting the output size. Because SPDY’s public header compression dictionary compresses long runs of repeated bytes at roughly 1024:1, a crafted few‑kilobyte SPDY frame can expand to gigabytes of BEAM heap memory, exhausting the node and triggering an out‑of‑memory crash. A single unauthenticated SPDY frame is sufficient, resulting in a remote denial‑of‑service that does not require authentication. This is a classic data‑amplification weakness (CWE‑409).

Affected Systems

Affected products are the Erlang/Elixir library cowlib maintained by ninenines. Versions from the initial release 0.1.0 up through any build prior to 2.16.1 contain the vulnerable cow_spdy module. The module was removed entirely in cowlib 2.16.1, and no backport of a patch for older versions will be released.

Risk and Exploitability

The CVSS score of 8.2 indicates high severity. The EPSS score of 0.5% indicates a very low but non‑zero likelihood of exploitation; combined with the lack of authentication, an attacker could simply send the payload over the network. The vulnerability is not listed in CISA’s KEV catalog, and no public exploits are reported; however, the potential for large‑scale denial of service or resource exhaustion makes it a serious risk in production deployments that continue to support SPDY.

Remediation

Vendor Solution

Upgrade to cowlib 2.16.1 or later, in which the cow_spdy module has been removed entirely. No patched version of cow_spdy will be provided. Migrate away from SPDY, which has been deprecated since 2015 in favour of HTTP/2.


OpenCVE Recommended Actions

  • Upgrade cowlib to version 2.16.1 or later, which removes the vulnerable cow_spdy module and eliminates the decompression vulnerability.
  • Migrate application code and configuration away from SPDY to the supported HTTP/2 protocol, as SPDY has been deprecated since 2015.
  • Until an upgrade is possible, block or drop incoming SPDY frames at network or proxy layers to prevent the inflated payload from reaching the BEAM heap.

Generated by OpenCVE AI on November 22, 2026 at 23:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-84f2-rp86-235p cowlib: Decompression Bomb in cow_spdy:inflate/2 Allows Memory Exhaustion via Crafted SPDY Frame
History
Type Values Removed Values Added
Description Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in ninenines cowlib allows unauthenticated remote denial of service via memory exhaustion. cow_spdy:inflate/2 in cowlib passes peer-supplied compressed bytes directly to zlib:inflate/2 with no output size bound. The SPDY header compression dictionary (?ZDICT) is public, and zlib compresses long runs of repeated bytes at roughly 1024:1, so a few kilobytes of SPDY frame payload can decompress to gigabytes on the BEAM heap, OOM-killing the node. A single unauthenticated SPDY frame is sufficient to trigger the condition. The parsers for syn_stream, syn_reply, and headers frame types are all affected via cow_spdy:parse_headers/2. This issue affects cowlib from 0.1.0 before 2.16.1. Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in ninenines cowlib allows unauthenticated remote denial of service via memory exhaustion. cow_spdy:inflate/2 in cowlib passes peer-supplied compressed bytes directly to zlib:inflate/2 with no output size bound. The SPDY header compression dictionary (?ZDICT) is public, and zlib compresses long runs of repeated bytes at roughly 1024:1, so a few kilobytes of SPDY frame payload can decompress to gigabytes on the BEAM heap, OOM-killing the node. A single unauthenticated SPDY frame is sufficient to trigger the condition. The parsers for syn_stream, syn_reply, and headers frame types are all affected via cow_spdy:parse_headers/2. This issue affects cowlib: from 0.1.0 before 2.16.1.
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in ninenines cowlib allows unauthenticated remote denial of service via memory exhaustion. cow_spdy:inflate/2 in cowlib passes peer-supplied compressed bytes directly to zlib:inflate/2 with no output size bound. The SPDY header compression dictionary (?ZDICT) is public, and zlib compresses long runs of repeated bytes at roughly 1024:1, so a few kilobytes of SPDY frame payload can decompress to gigabytes on the BEAM heap, OOM-killing the node. A single unauthenticated SPDY frame is sufficient to trigger the condition. The parsers for syn_stream, syn_reply, and headers frame types are all affected via cow_spdy:parse_headers/2. This issue affects cowlib from 0.1.0 before 2.16.1.
Title Decompression Bomb in cow_spdy:inflate/2 Allows Memory Exhaustion via Crafted SPDY Frame
First Time appeared Ninenines
Ninenines cowlib
Weaknesses CWE-409
CPEs cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*
Vendors & Products Ninenines
Ninenines cowlib
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-409

    Improper Handling of Highly Compressed Data (Data Amplification)

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 20, 2026, 5:26 AM
Reserved
May 4, 2026, 6:23 PM
Status
Deferred
Published
May 13, 2026, 7:17 PM
Modified
Nov 20, 2026, 6:17 AM