Home / hexpm / hex / CVE-2026-96618
CVE-2026-96618: is it exploited, and which versions of hexpm hex are affected and fixed?
CVE-2026-96618 is an improper Handling of Highly Compressed Data (Data Amplification) vulnerability in hexpm hex. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: hex from 0.11.2 before 2.5.2 (CVE record by EEF). Fixed in 2.5.2 (CVE record by EEF). Severity: Low (2.1, CVSS 4.0, from EEF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 20, 2026, 06:15 UTC and NVD November 20, 2026, 07:04 UTC.
What is CVE-2026-96618?
Hex exhausts memory and disk on oversized or compressed responses from an untrusted mirror
Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in hexpm hex allows an untrusted package mirror to exhaust the memory or disk space of the machine running mix deps.get, mix deps.update, mix hex.package fetch or mix hex.docs fetch. Hex treats a mirror configured with HEX_MIRROR_URL, HEX_MIRROR or mirror_url as untrusted: it doesn't send credentials to it, and it checks registry signatures and package checksums that the mirror can't forge. Several response paths consume memory or disk in proportion to what the mirror sends before any of those checks run. Hex.HTTP.request/5 reads the whole response body into memory and decompresses it with :zlib.gunzip/1 whenever the response's Content-Encoding contains gzip, with no limit on the compressed or decompressed size. Hex doesn't ask for compressed responses, so the server decides whether this step runs. It applies to registry, package, docs and API responses. Package tarballs have no download size limit. Hex 2.5.1 holds the whole tarball in memory and writes it to the cache, and the development branch streams it to a temporary file; the 16 MiB tarball limit is checked only when the file is unpacked. The tarball is then unpacked, into deps/<app> in 2.5.1 and into a staging directory on the development branch, before its checksums are compared with the registry. mix hex.docs fetch, and mix hex.docs offline when docs are missing, write the docs tarball to disk and extract it with :mix_hex_erl_tar.extract/2 without the 16 MiB compressed and 128 MiB decompressed limits that mix_hex_tarball:unpack_docs/3 applies. The signed registry doesn't cover docs tarballs, so nothing checks them. Registry responses are also decompressed before their signature is checked, in hex_core code that Hex vendors; that part is tracked in https://github.com/hexpm/hex_core/security/advisories/GHSA-7c4r-cgf9-9jmq. This issue affects hex: from 0.11.2 before 2.5.2.
From the CVE record by EEF, last updated November 20, 2026, 06:01 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| hexpm | hex | from 0.11.2 before 2.5.2 | 2.5.2 |
| hexpm | hex hexpm/hex | not stated |
As the CVE record by EEF states it, last updated November 20, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-96618?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.1 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | EEF |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-96618 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, October 16, 2026)
- EPSS
- 0.47% probability of exploitation activity in the next 30 days, percentile 42.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)
- CWE-770 Allocation of Resources Without Limits or Throttling
How do I fix it? (from the CVE record)
Upgrade Hex to 2.5.2 or later, for example with mix local.hex. Hex then stops downloading a registry file, package, docs tarball or other file from a repository or mirror once it's larger than 16 MiB, including after decompressing a gzip-encoded response, and checks packages against the registry checksum before writing them to the package cache or unpacking a cached copy.
Is there a workaround? (from the CVE record)
Fetch from repo.hex.pm or a mirror you operate. Running Mix under operating system memory and disk limits, such as container limits, confines the effect to that container.
Where are the vendor advisories and references?
- GitHub Advisory related, vendor-advisory
- EEF CNA record for CVE-2026-96618 related
- OSV record EEF-CVE-2026-96618 related
- Introducing commit 51ea632 in hexpm/hex related
- Fix commit 0895610 in hexpm/hex patch
- Fix commit bb5189e in hexpm/hex patch
Who found and reported it?
- Peter Ullrich (finder)
- Jonatan Männchen / EEF (analyst)
- Eric Meadows-Jönsson (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- October 10, 2026
- Published
- October 12, 2026, 15:29 UTC
- CVE record updated
- November 20, 2026, 06:01 UTC by EEF
- NVD
- Deferred, last modified November 20, 2026, 06:17 UTC
- Last checked
- CVE list November 20, 2026, 06:15 UTC; NVD November 20, 2026, 07:04 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect hex?
- Oct 14, 2026CVE-2026-96596 Erlang OTP: infinite loop (denial of service)
- Oct 12, 2026CVE-2026-105274 erlang rebar3: improper Handling of Highly Compressed Data (Data Amplification)
- Oct 12, 2026CVE-2026-81856 hexpm hex: improper Neutralization of Escape, Meta, or Control Sequences
- Oct 12, 2026CVE-2026-96612 hexpm hex: path traversal (reading or writing files outside the intended folder)
- Oct 12, 2026CVE-2026-105668 hexpm hex: protection mechanism failure
- Oct 12, 2026CVE-2026-105280 hexpm hex: improper Validation of Integrity Check Value
- Oct 12, 2026CVE-2026-103503 hexpm hex: improper certificate validation
- Apr 30, 2026CVE-2026-32148 hexpm hex: improper Validation of Integrity Check Value
Questions about CVE-2026-96618
Is CVE-2026-96618 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 0.47% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of hexpm hex are affected by CVE-2026-96618?
hex from 0.11.2 before 2.5.2, per the CVE record by EEF. The tables above give every range the sources list.
Which version fixes CVE-2026-96618?
2.5.2, per the CVE record by EEF. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-96618?
Low (2.1, CVSS 4.0, from EEF). The severity table above shows each score with its source.
Where is the official record of CVE-2026-96618?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.