Skip to content
Heist/ feed
Back to feed
LowFix available

erlang-hex — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-96618

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/ 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 with

Products
erlang-hex
Affected versions
2.0.6-2, 2.4.2-1, 2.4.2-2, 2.5.1-1, 2.5.1-2, 2.5.3-1, 2.5.3-2
Fixed versions
2.5.3-2
CVEs
CVE-2026-96618
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:31 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-96618

core-osv · Original source

Published 12 Oct 2026, 16:17 UTC

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/ 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 with

osv:DEBIAN-CVE-2026-96618

erlang-hex

Fixed versions: Not specified

erlang-hex

Fixed versions: 2.5.3-2

Complete source record
{
  "id": "3f193f72afd46d9a36b03bd93567f7006de311100224bf25871474647c7d424f",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-96618",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-96618",
    "summary": "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/ 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 with",
    "evidence": "osv:DEBIAN-CVE-2026-96618",
    "products": [
      {
        "name": {
          "value": "erlang-hex",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.6-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.4.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.4.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.5.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.5.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.5.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.5.3-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "erlang-hex",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.5.3-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.0.6-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.4.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.4.2-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.5.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.5.1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.5.3-1",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "DEBIAN-CVE-2026-96618",
      "aliases": [
        "DEBIAN-CVE-2026-96618"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "erlang-hex",
            "purl": "pkg:deb/debian/erlang-hex?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "2.0.6-2",
            "2.4.2-1",
            "2.4.2-2",
            "2.5.1-1",
            "2.5.1-2",
            "2.5.3-1",
            "2.5.3-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-96618.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.5.3-2"
                }
              ]
            }
          ],
          "package": {
            "name": "erlang-hex",
            "purl": "pkg:deb/debian/erlang-hex?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "2.0.6-2",
            "2.4.2-1",
            "2.4.2-2",
            "2.5.1-1",
            "2.5.1-2",
            "2.5.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-96618.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T17:47:23.123189274Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-96618"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-96618"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-96618",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 416640,
  "published_at": "2026-10-12T16:17:07.92+00:00"
}