PT-2026-110652 · Hexpm · Hex

·

CVE-2026-96618

·

تاريخ النشر

2026-10-12

·

تاريخ التحديث

2026-10-12

CVSS v4.0

2.1

منخفضة

المتجهAV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions hexpm hex versions 0.11.2 through 2.5.1
Description An improper handling of highly compressed data, known as data amplification, allows an untrusted package mirror to exhaust the memory or disk space of a machine running mix deps.get, mix deps.update, mix hex.package fetch, or mix hex.docs fetch. This occurs when a mirror is configured via HEX MIRROR URL, HEX MIRROR, or mirror url.
Technical details include:
  • The function Hex.HTTP.request/5 reads the entire response body into memory and decompresses it using :zlib.gunzip/1 if the Content-Encoding contains gzip, without limits on compressed or decompressed size. This affects registry, package, docs, and API responses.
  • Package tarballs lack download size limits. In version 2.5.1, the entire tarball is held in memory and written to cache before the 16 MiB limit is checked during unpacking.
  • The commands mix hex.docs fetch and mix hex.docs offline write docs tarballs to disk and extract them using :mix hex erl tar.extract/2 without applying the 16 MiB compressed and 128 MiB decompressed limits used by mix hex tarball:unpack docs/3.
  • Registry responses are decompressed before their signatures are verified.
Recommendations Upgrade hexpm hex to version 2.5.2 or later using mix local.hex. As a temporary workaround, fetch packages only from repo.hex.pm or a mirror you operate. Run Mix under operating system memory and disk limits, such as container limits, to confine the impact.

استغلال

إصلاح

Allocation of Resources Without Limits

وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾

تصنيف نقاط الضعف

المعرّفات ذات الصلة

CVE-2026-96618
GHSA-GF42-PG2F-63JP

المنتجات المتأثرة

Hex