Skip to main content

cowlib CVE-2026-7790

| EUVDEUVD-2026-29200 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-05-11 EEF GHSA-32p9-57cr-4x65
8.7
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

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

  1. Access
    Connect to HTTP/1.1 endpoint
  2. Delivery
    Send chunked request with huge hex chunk-size
  3. Exploit
    Drip-feed bytes to force parser restarts
  4. Execution
    Trigger O(N³) bignum accumulation in chunked_len
  5. Persist
    Exhaust CPU and memory
  6. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target must terminate HTTP/1.1 using cowlib < 2.16.1 (typically via the Cowboy server or Gun client) and accept requests using Transfer-Encoding: chunked - which is standard, default HTTP/1.1 behavior, not an opt-in feature. Exploitation requires no authentication, no user interaction, and no special configuration (CVSS PR:N/UI:N/AC:L), so any reachable HTTP endpoint parsing chunked bodies is exposed. The severity of impact scales with the attacker's ability to send a long chunk-size field and to drip-feed it across multiple partial reads (which unlocks the worst-case O(N³) cost); limiting factors are therefore any upstream proxy/WAF that caps request-line/chunk-size length or buffers the full request before forwarding, and network reachability of the vulnerable service (internal-only services face far lower real-world risk).

Impact

The CVSS 4.0 base score is 8.7 (High) with vector AV:N/AC:L/AT:N/PR:N/UI:N and impact isolated to availability (VA:H, no confidentiality or integrity impact), which is internally consistent with a pure DoS reachable by any unauthenticated remote client against default configurations. CISA SSVC lists Exploitation: none, Automatable: yes, Technical Impact: partial - so this is a scalable, easily-scriptable availability attack but not a code-execution or data-breach issue. EPSS is only 0.08% (23rd percentile) and the CVE is not in CISA KEV, and no public PoC has been identified, so real-world exploitation pressure is currently low despite the high base score. The signals are not conflicting so much as differently weighted: high severity comes entirely from ease of reach plus total availability loss, while low EPSS reflects that this is a targeted resource-exhaustion bug rather than a wormable RCE. Priority should be driven by exposure - internet-facing Cowboy/Gun deployments warrant prompt patching, internal-only services can follow normal cycles.

Exploit ScenarioDerived

An unauthenticated attacker opens a TCP connection to an internet-facing Cowboy-based HTTP server and sends an HTTP/1.1 request with Transfer-Encoding: chunked whose chunk-size field is a very long string of hex digits (e.g. tens of thousands of F's), optionally drip-fed a few bytes at a time to trigger the O(N³) restart-on-partial-read path. The server's Erlang scheduler burns CPU on ever-growing bignum multiplications and allocates large integers, and a handful of such connections can exhaust processing capacity and degrade or halt the service. No public proof-of-concept has been identified at time of analysis, but the attack is trivially scriptable given the low complexity.

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 – Jul 23, 2026

Remote denial of service in ninenines cowlib (the HTTP support library behind the Cowboy web server and Gun client) from 0.6.0 before 2.16.1 lets an unauthenticated attacker exhaust CPU and memory by sending an HTTP/1.1 request whose Transfer-Encoding: chunked chunk-size field contains an unbounded run of hex digits. Each digit triggers a bignum multiply-add, so N digits cost O(N²) CPU and O(N) memory, and because the parser discards accumulated length and restarts on every partial read, drip-feeding the input inflates this to O(N³). There is no public exploit identified at time of analysis and EPSS is very low (0.08%), but the flaw is unauthenticated, network-reachable, and per CISA SSVC automatable.

RemediationAI

Vendor-released patch: upgrade cowlib to 2.16.1 or later (fix commit a4b8039ce8c93ab00867ef6b7e888822c09f4369), which caps the chunk-size parser at 16 hex digits. Because cowlib is usually a transitive dependency, update it through your dependency manager (e.g. bump the cowlib entry via rebar3/mix and confirm the resolved version is >= 2.16.1) and rebuild, since pinning only Cowboy/Gun may not force the cowlib bump. If you cannot patch immediately, place the service behind a reverse proxy or WAF that normalizes or bounds Transfer-Encoding: chunked requests and rejects abnormally long chunk-size lines (trade-off: adds an extra hop and requires the proxy to fully parse chunked framing), and/or enforce strict request-size, header, and connection-time limits plus per-IP rate limiting to blunt CPU/memory amplification (trade-off: aggressive limits may reject large legitimate uploads or slow clients). Reference the advisories at https://cna.erlef.org/cves/CVE-2026-7790.html and https://github.com/ninenines/cowlib/commit/a4b8039ce8c93ab00867ef6b7e888822c09f4369.

Affected VersionsENISA

cowlib 0.6.0 <2.16.1
cowlib 8c0e428b012c59f553a264f285ed89d36f791e3e <a4b8039ce8c93ab00867ef6b7e888822c09f4369

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/1.1 and HTTP/2 message-parsing library used by the Cowboy HTTP server and the Gun HTTP client in the Erlang/Elixir ecosystem. The defect (CWE-400, Uncontrolled Resource Consumption / Excessive Allocation) lives in src/cow_http_te.erl, specifically cow_http_te:stream_chunked/2 and the recursive hex accumulator cow_http_te:chunked_len/4, which computes the chunk length as Len*16+digit for every hex character with no cap on the number of digits. Because Erlang integers are arbitrary-precision bignums, Len grows without bound, making each successive multiplication more expensive; the vendor fix adds a digit counter (chunked_len/5 with a when D < 16 guard) that stops accumulating after 16 hex digits, which is more than enough for any legitimate chunk size. The upstream test confirms the pre-patch behavior by parsing 16 F's into the value 18446744073709551617.

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.7 HIGH
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
vuln.today AI 7.5 HIGH

Unauthenticated remote request over default HTTP/1.1 chunked parsing with low complexity (AV:N/AC:L/PR:N/UI:N); impact is pure availability loss (A:H), no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
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

3
CVSS changed
May 11, 2026 - 19:22 NVD
8.7 (HIGH)
CVE Published
May 11, 2026 - 18:06 nvd
UNKNOWN (no severity yet)
CVE Published
May 11, 2026 - 18:06 nvd
HIGH 8.7

DescriptionCVE.org

Uncontrolled Resource Consumption vulnerability in ninenines cowlib (cow_http_te module) allows Excessive Allocation.

The chunked transfer-encoding parser in cow_http_te accepts an unbounded number of hex digits in the chunk-size field. Each digit causes a bignum multiplication (Len * 16 + digit), so parsing N hex digits requires O(N²) CPU work and O(N) memory. Additionally, when input is drip-fed, the parser discards the accumulated length on each partial read and restarts from zero on resumption, raising the cost to O(N³). An unauthenticated remote attacker can exploit this by sending an HTTP/1.1 request with Transfer-Encoding: chunked and a very long chunk-size hex string to cause denial of service through CPU exhaustion and memory amplification.

This vulnerability is associated with program file src/cow_http_te.erl and program routines cow_http_te:stream_chunked/2, cow_http_te:chunked_len/4.

This issue affects cowlib: from 0.6.0 before 2.16.1.

Executive ViewAI

Why It Matters

Ninenines cowlib versions before 2.16.1, which power Cowboy web servers and Gun HTTP clients, are vulnerable to remote denial-of-service attacks from unauthenticated attackers. Attackers can exhaust server CPU and memory with specially crafted HTTP/1.1 requests, rendering affected services unavailable. Any organization running services built on these frameworks faces service continuity risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 77% exploitable
Prevalence
Medium
core HTTP library behind Cowboy/Gun, common across Erlang/Elixir stacks
Threat Intel
1
1 sources
Data Quality
7 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
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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