PatchSiren cyber security CVE debrief
CVE-2026-96618 hexpm CVE debrief
CVE-2026-96618 is a vulnerability in the hex package for Elixir that allows an untrusted package mirror to exhaust the memory or disk space of a machine running certain mix commands. The vulnerability is due to improper handling of highly compressed data, which can cause a denial of service. The vulnerability has a CVSS score of 2.1 and is considered low severity.
- Vendor
- hexpm
- Product
- hex
- CVSS
- LOW 2.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-12
- Original CVE updated
- 2026-10-12
- Advisory published
- 2026-10-12
- Advisory updated
- 2026-10-12
Who should care
Defenders who use the hex package for Elixir should verify the versions in use and check for any oversized or compressed responses from untrusted mirrors. This vulnerability may impact systems that rely on the hex package for package management.
Why it matters
CVE-2026-96618 is a vulnerability in the hex package for Elixir that allows an untrusted package mirror to exhaust the memory or disk space of a machine running certain mix commands. Defenders should verify the versions of the hex package in use and check for any oversized or compressed responses from untrusted mirrors.
- Denial of service due to memory or disk exhaustion
- Potential for data loss or corruption due to untrusted mirror responses
- Need for verification of hex package versions and mirror configurations
- Possible impact on system availability and package management
Technical summary
The hex package for Elixir is vulnerable to a denial of service attack due to improper handling of highly compressed data. An untrusted package mirror can exhaust the memory or disk space of a machine running certain mix commands, such as mix deps.get, mix deps.update, mix hex.package fetch, or mix hex.docs fetch. This occurs because 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 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
Defensive priority
Defenders should prioritize verifying the versions of the hex package in use and checking for any oversized or compressed responses from untrusted mirrors.
Recommended defensive actions
- Verify the versions of the hex package in use and check for any oversized or compressed responses from untrusted mirrors.
- Implement limits on the size of responses from untrusted mirrors.
- Use a trusted package mirror or configure the hex package to use a trusted mirror.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
Evidence notes
The vulnerability is caused by the hex package's improper handling of highly compressed data. The package's HTTP client reads the whole response body into memory and decompresses it with zlib.gunzip/1 without any limit on the compressed or decompressed size. This can cause a denial of service when an untrusted mirror sends an oversized or compressed response.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-96618 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-96618
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-96618 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-96618
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Hex exhausts memory and disk on oversized or compressed responses from an untrusted mirror
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/96xxx/CVE-2026-96618.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/hexpm/hex/security/advisories/GHSA-gf42-pg2f-63jp
Supplemental source - related, vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://cna.erlef.org/cves/CVE-2026-96618.html
Supplemental source - related
-
Source reference
Unverified legacy reference
URL: https://osv.dev/vulnerability/EEF-CVE-2026-96618
Supplemental source - related
-
Source reference
Unverified legacy reference
URL: https://github.com/hexpm/hex/commit/51ea632424fb6ea8765148f96dc25dfeb526b1f8
Supplemental source - related
-
Source reference
Unverified legacy reference
URL: https://github.com/hexpm/hex/commit/bb5189eade682c5fc3f98d9725973a7beb4e1deb
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/hexpm/hex/commit/08956100a8283ba500a123e5539ac64d5d7e91d8
Supplemental source - patch
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.