8.2high
Decompression Bomb in cow_spdy:inflate/2 Allows Memory Exhaustion via Crafted SPDY Frame
- Severity
- 8.2high CVSS:4.0 by EEF
- Exploit likelihood
- 0.64% (higher than 46% of CVEs)
- Published
- Last changed
- Assigned by
- EEF
- Also known as
- GHSA-84f2-rp86-235pEEF-CVE-2026-43970
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cowlib | from 0.1.0 before 2.16.1 | CVE List |
| ninenines/cowlib | from fad5c0049df278cc498b6cdb519b09e845a070a8 before 16aad3fb9f81f5cda4d1706ff0c54237c619c282 | CVE List |
| cowlib (Hex) | from 0.1.0 before 2.16.1 | GitHub Advisory Database, Erlang Ecosystem Foundation |
| https://github.com/ninenines/cowlib | from fad5c0049df278cc498b6cdb519b09e845a070a8 before 16aad3fb9f81f5cda4d1706ff0c54237c619c282 | Erlang Ecosystem Foundation |
All scores
| EEF | 8.2high CVSS:4.0 | 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 |
| GitHub | high CVSS:4.0 | 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 |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
Erlang Ecosystem Foundation
Summary
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.
Configurations
The application must use cow_spdy:parse/2 to parse SPDY frames from an untrusted peer. cowboy itself does not use cow_spdy; only direct callers of the cow_spdy API are affected.
Solutions
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.
NVD (es)
La vulnerabilidad de Manejo Inadecuado de Datos Altamente Comprimidos (Amplificación de Datos) en ninenines cowlib permite una denegación de servicio remota no autenticada a través del agotamiento de la memoria. cow_spdy:inflate/2 en cowlib pasa los bytes comprimidos suministrados por el par directamente a zlib:inflate/2 sin un límite de tamaño de salida. El diccionario de compresión de cabeceras SPDY (?ZDICT) es público, y zlib comprime largas secuencias de bytes repetidos a una proporción aproximada de 1024:1, por lo que unos pocos kilobytes de carga útil de trama SPDY pueden descomprimirse a gigabytes en el heap de BEAM, provocando la terminación del nodo por falta de memoria. Una única trama SPDY no autenticada es suficiente para activar la condición. Los analizadores para los tipos de trama syn_stream, syn_reply y headers están todos afectados a través de cow_spdy:parse_headers/2. Este problema afecta a cowlib desde la versión 0.1.0 anterior a la 2.16.1.
References
| https://cna.erlef.org/cves/CVE-2026-43970.html | related, third-party-advisory, web | |
| https://osv.dev/vulnerability/EEF-CVE-2026-43970 | related, web | |
| https://github.com/ninenines/cowlib/commit/fad5c0049df278cc498b6cdb519b09e845a070a8 | related, web | |
| https://github.com/ninenines/cowlib/commit/16aad3fb9f81f5cda4d1706ff0c54237c619c282 | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-43970 | advisory | |
| https://github.com/ninenines/cowlib | package | |
| https://hex.pm/packages/cowlib | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43970 changed 2026-11-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-84f2-rp86-235p changed 2026-05-19 | CC-BY-4.0 |
| Erlang Ecosystem Foundation | EEF-CVE-2026-43970 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2026-43970 changed 2026-11-20 | Public domain |