CVE-2026-58226
JSON

8.7high

Unauthenticated denial-of-service via unbounded HPACK integer decoding in hpax

Severity
8.7high CVSS:4.0 by EEF
Exploit likelihood
0.57% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
EEF-CVE-2026-58226GHSA-jj2p-32j7-whj2

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. 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 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.0 before 1.0.4.

Affected

Product or packageVersionsReported by
hpaxfrom 0.1.0 before 1.0.4CVE List
elixir-mint/hpaxfrom 56db437a7e2c515e3bdd770ac7947b02cd2390d0 before 1ba4bb2dc91e80089cf89c73970ac3ded76f17ebCVE List
hpax (Hex)from 0.1.0 before 1.0.4Erlang Ecosystem Foundation
https://github.com/elixir-mint/hpaxfrom 56db437a7e2c515e3bdd770ac7947b02cd2390d0 before 1ba4bb2dc91e80089cf89c73970ac3ded76f17ebErlang Ecosystem Foundation

All scores

EEF8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Classification

CWE-407

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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. 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 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.0 before 1.0.4.

Erlang Ecosystem Foundation

Summary

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. 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 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.0 before 1.0.4.

NVD (es)

Una vulnerabilidad de complejidad algorítmica ineficiente en elixir-mint hpax permite una denegación de servicio no autenticada a través de la decodificación de enteros HPACK sin límites. hpax decodifica enteros HPACK de longitud variable sin un límite superior en el valor decodificado o en el número de octetos de continuación. ’Elixir.HPAX.Types’:decode_remaining_integer/3 acumula el entero como int + (value <<< m), desplazando 7 bits más por cada octeto de continuación y deteniéndose solo en un octeto de terminación o entrada truncada, nunca porque el entero se hizo demasiado grande. Debido a que los enteros BEAM son de precisión arbitraria, una secuencia de N octetos de continuación construye un bignum de O(N) bits y se vuelve a añadir a un bignum cada vez más grande en cada paso, por lo que el costo total de decodificación es superlineal (aproximadamente O(N^2)). Un atacante no autenticado que puede enviar un bloque de encabezado HTTP/2 a un servidor que utiliza este decodificador (alcanzado a través del punto de entrada ’Elixir.HPAX’:decode/2) puede proporcionar un pequeño bloque de encabezado que fuerza una gran cantidad de CPU (y memoria transitoria) controlada por el atacante, una amplificación de denegación de servicio. Este problema afecta a hpax desde la versión 0.1.1 anterior a la 1.0.4.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58226 changed 2026-11-24CVE Terms of Use
Erlang Ecosystem FoundationEEF-CVE-2026-58226 changed 2026-11-26CC-BY-4.0
NVDCVE-2026-58226 changed 2026-11-24Public domain