{"id":"CVE-2026-58226","aliases":["CVE-2026-58226","EEF-CVE-2026-58226","GHSA-jj2p-32j7-whj2"],"related":[],"kind":"vulnerability","state":"published","title":"Unauthenticated denial-of-service via unbounded HPACK integer decoding in hpax","summary":"Inefficient Algorithmic Complexity vulnerability in elixir-mint hpax allows unauthenticated denial-of-service via unbounded HPACK integer decoding.\n\nhpax 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.\n\nThis issue affects hpax: from 0.1.0 before 1.0.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Inefficient Algorithmic Complexity vulnerability in elixir-mint hpax allows unauthenticated denial-of-service via unbounded HPACK integer decoding.\n\nhpax 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.\n\nThis issue affects hpax: from 0.1.0 before 1.0.4.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nInefficient Algorithmic Complexity vulnerability in elixir-mint hpax allows unauthenticated denial-of-service via unbounded HPACK integer decoding.\n\n`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.\n\nThis issue affects hpax: from 0.1.0 before 1.0.4.","format":"markdown","source":"eef"},{"lang":"es","text":"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.\n\nhpax 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.\n\nEste problema afecta a hpax desde la versión 0.1.1 anterior a la 1.0.4.","source":"nvd"}],"published":"2026-07-06T09:03:47.374Z","modified":"2026-11-26T17:23:06.255Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-407"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"1.0.4","status":"affected"}],"vendor":"elixir-mint","product":"hpax","package":"hpax","cpe":"cpe:2.3:a:elixir-mint:hpax:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-mint/hpax","source":"cvelist"},{"ranges":[{"type":"git","introduced":"56db437a7e2c515e3bdd770ac7947b02cd2390d0","fixed":"1ba4bb2dc91e80089cf89c73970ac3ded76f17eb","status":"affected"}],"vendor":"elixir-mint","product":"hpax","package":"elixir-mint/hpax","cpe":"cpe:2.3:a:elixir-mint:hpax:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-mint/hpax","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"1.0.4"}],"ecosystem":"Hex","package":"hpax","purl":"pkg:hex/hpax","source":"eef"},{"ranges":[{"type":"git","introduced":"56db437a7e2c515e3bdd770ac7947b02cd2390d0","status":"affected","fixed":"1ba4bb2dc91e80089cf89c73970ac3ded76f17eb"}],"repo":"https://github.com/elixir-mint/hpax","source":"eef"}],"references":[{"url":"https://github.com/elixir-mint/hpax/security/advisories/GHSA-jj2p-32j7-whj2","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-58226.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-58226","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/elixir-mint/hpax/commit/56db437a7e2c515e3bdd770ac7947b02cd2390d0","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-mint/hpax/commit/1ba4bb2dc91e80089cf89c73970ac3ded76f17eb","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/hpax","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Eric Meadows-Jönsson","Jonatan Männchen / EEF","Andrea Leopardi"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-07-06T12:49:38.954Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-58226","url":"https://www.cve.org/CVERecord?id=CVE-2026-58226","licence":"CVE Terms of Use","modified":"2026-11-24T05:13:51.343Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-58226","url":"https://osv.dev/vulnerability/EEF-CVE-2026-58226","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:06.255Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-58226","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58226","licence":"Public domain","modified":"2026-11-24T06:17:08.450Z"}],"updatedAt":"2026-11-26T17:37:05.897Z","epss":{"score":0.00574,"percentile":0.4877,"date":"2026-12-01T12:00:22.000Z"}}