CVE-2026-96618 Details
Description
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.
A data amplification vulnerability has been identified in the Hex package manager for Elixir. This issue allows an untrusted package mirror to exhaust the memory or disk space of the machine running certain Hex commands. The vulnerability arises because Hex does not trust mirrors configured with specific environment variables, leading to unchecked responses that can be manipulated to cause resource exhaustion. When a response from a mirror is gzip-compressed, Hex decompresses it without any size limits, leading to excessive memory usage. Similarly, documentation tarballs fetched from mirrors can also exceed normal size limits, causing further disk space exhaustion. This vulnerability affects Hex versions from 0.11.2 prior to 2.5.2.
Users can upgrade Hex to version 2.5.2 or later, which addresses the vulnerability by implementing size limits on responses from untrusted mirrors and verifying package checksums against the registry before caching or unpacking them. Instructions for upgrading Hex can be found in the Hex documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 12, 2026CISA-ADP
Assessed Oct 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-96618.html | EEF | AdvisoryExploitRemedy |
| https://github.com/hexpm/hex/commit/08956100a8283ba500a123e5539ac64d5d7e91d8 | EEF | Source CodeVendor |
| https://github.com/hexpm/hex/commit/51ea632424fb6ea8765148f96dc25dfeb526b1f8 | EEF | Source CodeVendor |
| https://github.com/hexpm/hex/commit/bb5189eade682c5fc3f98d9725973a7beb4e1deb | EEF | Source CodeVendor |
| https://github.com/hexpm/hex/security/advisories/GHSA-gf42-pg2f-63jp | EEF | AdvisoryRemedyVendor |
| https://osv.dev/vulnerability/EEF-CVE-2026-96618 | EEF | AdvisoryExploitRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-409 | Improper Handling of Highly Compressed Data (Data Amplification) | EEF |
| CWE-770 | Allocation of Resources Without Limits or Throttling | EEF |
Affected Products
| Product | Versions |
|---|---|
| Hexpm Hex | >= 0.11.2, < 2.5.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 16, 2026 | CVE Modified | CISA-ADP |
| Oct 12, 2026 | New CVE Received | EEF |
Volerion