1. Accueil
  2. Vulnérabilités
  3. CVE-2026-7790

CVE-2026-7790

Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS

Publiée le 11 mai 2026 · modifiée le 20 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Moyen 45/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Ninenines (2 ligne(s))
Ninenines
ProduitVersionsCorrigé dansSource
Cowlib de 0.6.0 (inclus) à 2.16.1 (exclu) — CNA (éditeur ou attributeur)
Cowlib de 0.6.0 (inclus) à 2.16.1 (exclu) — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Contournementsource officielle

In Cowboy, setting initial_stream_flow_size to a much lower value limits the amount of chunked body data that cowlib will parse in a single read, reducing the window of data an attacker can use to trigger the quadratic work. This does not fully eliminate the vulnerability but can significantly reduce its impact for some applications.

Source : CNA (éditeur ou attributeur)

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-400 · Autre (CWE-400)

Comment sont obtenues et calculées ces données