Skip to main content

cowlib CVE-2026-43970

| EUVDEUVD-2026-30131 HIGH
Improper Handling of Highly Compressed Data (Data Amplification) (CWE-409)
2026-05-13 EEF GHSA-84f2-rp86-235p
8.2
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Erlang service advertising SPDY/3
  2. Delivery
    Establish TLS with spdy/3 ALPN
  3. Exploit
    Send crafted compressed SPDY header frame
  4. Execution
    cow_spdy:inflate/2 expands payload unbounded
  5. Persist
    BEAM heap exhausts available memory
  6. Impact
    OOM kill terminates node and denies service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
Exploitation Conditions

The target must be running cowlib <2.16.1 AND actively accepting SPDY/3 traffic through the cow_spdy parser - concretely, a Ranch/Cowboy listener configured for SPDY, an ALPN/NPN negotiation that selects the spdy/3 token, or custom Erlang code that calls cow_spdy:parse/2 on attacker-controlled bytes. Once that path is reachable, exploitation needs no authentication, no user interaction, and a single SPDY frame carrying syn_stream, syn_reply, or headers; the CVSS 4.0 AT:P 'Attack Requirements: Present' bit captures exactly this 'SPDY must be enabled' precondition. Limiting factors are significant: SPDY/3 is obsolete and not enabled by default in modern Cowboy/Phoenix stacks, so typical HTTP/1.1 or HTTP/2-only deployments are not exploitable even while running a vulnerable cowlib version.

Impact

Signals are mixed and lean lower than the 8.2 CVSS suggests. CVSS:4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VA:H) reflects network-reachable, unauthenticated, low-complexity attack with high availability impact and an attack requirement (AT:P) noting that the target must actually be speaking SPDY. EPSS is only 0.14% (34th percentile) and CISA's SSVC framework records exploitation 'none', automatable 'no', and technical impact 'partial' - consistent with no public exploit identified at time of analysis and no CISA KEV listing. The practical limiting factor is large: SPDY/3 was deprecated years ago and Cowboy itself does not enable a SPDY listener by default; cow_spdy is a vestigial parser module rather than a hot code path, which is likely why the maintainers chose deletion over a size cap. Real-world risk is therefore concentrated in legacy Erlang services that explicitly stood up SPDY endpoints or call cow_spdy directly from custom code - for those operators the issue is genuinely a one-packet remote OOM, but for typical Cowboy/Phoenix HTTP/1.1+HTTP/2 deployments the attack surface is effectively zero.

Exploit ScenarioDerived

An attacker locates an Erlang/Elixir service that still negotiates SPDY/3 (typically via ALPN or a legacy listener), opens a single TLS connection, and sends one syn_stream, syn_reply, or headers frame whose compressed payload is a few kilobytes of highly repetitive data crafted against the public ?ZDICT dictionary. When cow_spdy:inflate/2 hands the buffer to zlib:inflate/2, the BEAM heap balloons into the gigabyte range and the OOM killer terminates the node, taking down the service for every connected user. No public exploit identified at time of analysis, but the recipe is straightforward given that ?ZDICT is published in the SPDY draft.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Unauthenticated remote denial of service in ninenines cowlib (versions 0.1.0 through 2.16.0) allows a single crafted SPDY frame to exhaust BEAM VM memory via a zlib decompression bomb. The cow_spdy:inflate/2 path passes peer-controlled compressed bytes to zlib:inflate/2 without bounding output size, and because the SPDY ?ZDICT dictionary is public and zlib achieves roughly 1024:1 compression on repeated bytes, kilobytes of input expand to gigabytes of heap, OOM-killing the Erlang node. No public exploit identified at time of analysis, EPSS is low (0.14%), and CISA SSVC marks exploitation as none, but the upstream fix is to remove cow_spdy entirely in 2.16.1.

RemediationAI

Vendor-released patch: cowlib 2.16.1, which removes the cow_spdy module entirely; upgrade the cowlib dependency in rebar.config, mix.exs, or your release lock file to 2.16.1 or later and rebuild all downstream releases (Cowboy, Phoenix, RabbitMQ, etc.) so the vulnerable module is no longer shipped in the BEAM load path. The upstream fix commit is https://github.com/ninenines/cowlib/commit/16aad3fb9f81f5cda4d1706ff0c54237c619c282 and the coordinating advisory is at https://cna.erlef.org/cves/CVE-2026-43970.html. If you cannot upgrade immediately, the effective compensating control is to ensure no SPDY listener is configured - SPDY is not enabled by default in Cowboy, so audit ranch/cowboy listener specs and reverse-proxy ALPN/NPN configuration to confirm only http/1.1 and h2 are negotiated, and remove any custom code that calls cow_spdy:parse/2 directly; as a network-layer fallback, terminate TLS at a front proxy that does not advertise the spdy/3 ALPN token, which prevents clients from ever reaching the vulnerable parser at the cost of dropping any (now extremely rare) legitimate SPDY clients.

Affected VersionsENISA

cowlib 0.1.0 <2.16.1
cowlib fad5c0049df278cc498b6cdb519b09e845a070a8 <16aad3fb9f81f5cda4d1706ff0c54237c619c282

Affected Packages

euvd cowlib fix: 2.16.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

cowlib is the low-level HTTP/SPDY/WebSocket parsing library underlying the Cowboy Erlang web server, widely used in Erlang/OTP and Elixir/Phoenix deployments. The defect is classified as CWE-409 (Improper Handling of Highly Compressed Data, a 'zip bomb' class amplification flaw): cow_spdy:inflate/2 forwards attacker-supplied compressed payloads into Erlang's zlib NIF (zlib:inflate/2) without bounding the decompressed length, while the SPDY/3 header compression context is preseeded with the well-known public ?ZDICT dictionary, allowing the attacker to construct a payload optimised for maximum expansion. All three SPDY header-bearing frame types - syn_stream, syn_reply, and headers - flow through the shared parse_headers/2 helper, so any of them can deliver the amplification. The affected CPE is cpe:2.3:a:ninenines:cowlib for all versions 0.1.0 up to but not including 2.16.1, and the upstream patch (commit 16aad3fb9f81f5cda4d1706ff0c54237c619c282) deletes the cow_spdy.erl module and removes it from the .app manifest rather than adding a decompressed-size limit.

Know when Cowlib gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 8.2 HIGH
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

Primary rating from Vendor (EEF) · only source for this CVE.

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 13, 2026 - 19:22 NVD
8.2 (HIGH)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Ninenines cowlib (Erlang HTTP server library) versions 0.1.0-2.16.0 contain a denial-of-service vulnerability (CVE-2026-43970) that allows unauthenticated, remote attackers to crash applications with a single network request. Organizations running Erlang-based web services must upgrade to version 2.16.1 to prevent potential service outages; while active exploitation is currently unlikely, the ease of attack and high impact severity warrant prioritized patching.

Business Impact: High
Compensating Controls

Vendor-released patch: 2.16.1

Threat Intelligence Overview

EPSS Score
0.1%
Top 66% exploitable
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy