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 package | Versions | Reported by |
|---|---|---|
| hpax | from 0.1.0 before 1.0.4 | CVE List |
| elixir-mint/hpax | from 56db437a7e2c515e3bdd770ac7947b02cd2390d0 before 1ba4bb2dc91e80089cf89c73970ac3ded76f17eb | CVE List |
| hpax (Hex) | from 0.1.0 before 1.0.4 | Erlang Ecosystem Foundation |
| https://github.com/elixir-mint/hpax | from 56db437a7e2c515e3bdd770ac7947b02cd2390d0 before 1ba4bb2dc91e80089cf89c73970ac3ded76f17eb | Erlang Ecosystem Foundation |
All scores
| EEF | 8.7high CVSS:4.0 | 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 |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | 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 |
Classification
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
| https://github.com/elixir-mint/hpax/security/advisories/GHSA-jj2p-32j7-whj2 | advisory, exploit, related, vendor-advisory | |
| https://cna.erlef.org/cves/CVE-2026-58226.html | related, web | |
| https://osv.dev/vulnerability/EEF-CVE-2026-58226 | related | |
| https://github.com/elixir-mint/hpax/commit/56db437a7e2c515e3bdd770ac7947b02cd2390d0 | related, web | |
| https://github.com/elixir-mint/hpax/commit/1ba4bb2dc91e80089cf89c73970ac3ded76f17eb | fix, patch | |
| https://hex.pm/packages/hpax | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58226 changed 2026-11-24 | CVE Terms of Use |
| Erlang Ecosystem Foundation | EEF-CVE-2026-58226 changed 2026-11-26 | CC-BY-4.0 |
| NVD | CVE-2026-58226 changed 2026-11-24 | Public domain |