CVE-2026-58226

Vulnérabilité élevée dans hpax (elixir-mint)

CVSS 8.7 · Élevée
EPSS 0.5%
elixir-mint•hpax•Versions : <1ba4bb2dc91e80089cf89c73970ac3ded76f17eb, 56db437a7e2c515e3bdd770ac7947b02cd2390d0, 0.1.1, <1.0.4

Description

Inefficient Algorithmic Complexity vulnerability in elixir-mint hpax allows unauthenticated denial-of-service via unbounded HPACK integer decoding. hpax decodes HPACK variable-length integers with no upper bound on the decoded value or the number of continuation octets. 'Elixir.HPAX.Types':decode_remaining_integer/3 accumulates the integer as int + (value <<< m), shifting by 7 more bits for each continuation octet and stopping only on a terminating octet or truncated input, never because the integer grew too large. Because BEAM integers are arbitrary precision, a run of N continuation octets builds an O(N)-bit bignum and re-adds into an ever-larger bignum on each step, so the total decoding cost is superlinear (about O(N^2)). An unauthenticated attacker who can send an HTTP/2 header block to a server using this decoder (reached through the 'Elixir.HPAX':decode/2 entry point) can supply a small header block that forces a large, attacker-controlled amount of CPU (and transient memory), a denial-of-service amplification. This issue affects hpax from 0.1.1 before 1.0.4.

Gravité et risque d'exploitation

CVE-2026-58226 obtient un score CVSS de 8.7/10, soit une gravité élevée. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 0.55 %, ce qui la place devant 44.7 % des CVE référencées.

Que faire ?

  • Vérifiez si hpax (versions <1ba4bb2dc91e80089cf89c73970ac3ded76f17eb, 56db437a7e2c515e3bdd770ac7947b02cd2390d0, 0.1.1, <1.0.4) est présent sur votre parc.
  • Appliquez le correctif ou la version corrigée indiqués dans les références de l'éditeur.
  • À défaut de correctif, limitez l'exposition (filtrage réseau, désactivation du composant).
  • Automatisez la détection : les agents CVE Heimdall (gratuits, open source) corrèlent l'inventaire de vos serveurs avec la base CVE.

Références