CVE-2026-96618
Received Received - Intake

Memory Exhaustion in Hex Package Manager

Vulnerability report for CVE-2026-96618, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-12

Last updated on: 2026-10-12

Assigner: EEF

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-12
Last Modified
2026-10-12
Generated
2026-10-12
AI Q&A
2026-10-12
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
hexpm hex 0.11.2
hexpm hex 51ea632424fb6ea8765148f96dc25dfeb526b1f8

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-409 The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.
CWE-770 The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-96618 is a vulnerability in Hex, a package manager for Elixir, where untrusted package mirrors can exhaust system memory or disk space. This happens because Hex reads entire HTTP responses into memory or writes them to disk without size limits before validating them. Attackers can send oversized or highly compressed data to trigger denial-of-service conditions.

Detection Guidance

Monitor for unusually high memory or disk usage during Hex operations like mix deps.get, mix deps.update, mix hex.package fetch, or mix hex.docs fetch. Check for processes consuming excessive resources when interacting with untrusted mirrors.

Impact Analysis

This vulnerability can cause your system to run out of memory or disk space, leading to crashes or degraded performance. Commands like mix deps.get or mix hex.docs fetch may fail or slow down significantly if an attacker exploits this issue via an untrusted mirror.

Mitigation Strategies

Upgrade Hex to version 2.5.2 or later. Avoid using untrusted mirrors by fetching packages directly from repo.hex.pm. Set container limits to confine resource usage if untrusted mirrors must be used.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-96618. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart