# CVE-2026-58226: Unauthenticated denial-of-service via unbounded HPACK integer decoding in hpax

Status: published. Published: 2026-07-06. Updated: 2026-11-24.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/elixir-mint/hpax/commit/1ba4bb2dc91e80089cf89c73970ac3ded76f17eb

## Affected products and versions

- elixir-mint / hpax (hpax): ≥ 0.1.0; < 1.0.4 (affected, semver). Source: CNA: EEF
- elixir-mint / hpax (elixir-mint/hpax): ≥ 56db437a7e2c515e3bdd770ac7947b02cd2390d0; < 1ba4bb2dc91e80089cf89c73970ac3ded76f17eb (affected, git). Source: CNA: EEF

## Severity and prioritization

- CVSS 4.0: 8.7 (high); 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; source: CNA: EEF

- CISA KEV: No listing in collected sources

- EPSS: 0.57% as of 2026-11-23; percentile 48.31%

- SSVC: exploitation poc; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-407

## Exploit evidence

- exploit: https://github.com/elixir-mint/hpax/security/advisories/GHSA-jj2p-32j7-whj2 (ADP: CISA-ADP)

## References

- https://github.com/elixir-mint/hpax/security/advisories/GHSA-jj2p-32j7-whj2 (CNA: EEF; vendor-advisory, related)

- https://cna.erlef.org/cves/CVE-2026-58226.html (CNA: EEF; related)

- https://osv.dev/vulnerability/EEF-CVE-2026-58226 (CNA: EEF; related)

- https://github.com/elixir-mint/hpax/commit/56db437a7e2c515e3bdd770ac7947b02cd2390d0 (CNA: EEF; related)

- https://github.com/elixir-mint/hpax/commit/1ba4bb2dc91e80089cf89c73970ac3ded76f17eb (CNA: EEF; patch)

- https://github.com/elixir-mint/hpax/security/advisories/GHSA-jj2p-32j7-whj2 (ADP: CISA-ADP; exploit)

## Provenance

- CNA: EEF: https://www.cve.org/CVERecord?id=CVE-2026-58226; retrieved 2026-11-24; source updated 2026-11-24

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-58226; retrieved 2026-11-24; source updated Not reported

Revision: 095832939ddbce502af9936d62c5caa6dbcf6df43dfd32fbbeeb9c44f43e6a57

Canonical: https://y2.dev/cve/CVE-2026-58226

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.