{"vuln_id":"GHSA-7c4r-cgf9-9jmq","aliases":[],"description":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-11-21T19:15:46.977134Z","severity":"unknown","severity_source":null,"cvss_score":null,"cvss_vector":null,"cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-7c4r-cgf9-9jmq"},"matched_alias":null,"items":[{"id":3699,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-105274: Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in hexpm hex_core allows an untrusted repository mirror, or a server answering h…","summary":"Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in hexpm hex_core allows an untrusted repository mirror, or a server answering hex_core's API requests, to exhaust the memory of the Erlang VM running hex_core. The same code is vendored in Hex (mix_hex_repo, mix_hex_api) and rebar3 (r3_hex_repo, r3_hex_api).\n\nhex_repo:get_names/1, hex_repo:get_versions/1, hex_repo:get_package/2 and hex_repo:get_policy/2 decompress the registry response with zlib:gunzip/1 and decode the signed envelope before verifying its signature. A mirror doesn't have the repository's private key, but it chooses the compressed bytes, so a small response decompresses into an envelope of any size before the signature check rejects it.\n\nhex_api decodes responses with the application/vnd.hex+erlang content type through hex_safe_binary_to_term:safe_binary_to_term/1, which calls binary_to_term(Binary, [safe]). The safe option prevents atom creation, but it accepts compressed terms and doesn't limit the size of the decoded term, and the check that rejects functions and ports runs after the term has been built. The fix for CVE-2026-21619 added the safe option and that check without bounding the decoded size.\n\nThis issue affects rebar3: from 3.9.1 before 3.27.3; hex: from 2.1.0 before 2.5.2 and from 2.6.0 onward; hex_core: from 0.1.0 before 0.20.0.\n\nReferences:\nhttps://cna.erlef.org/cves/CVE-2026-105274.html\nhttps://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79\nhttps://github.com/erlang/rebar3/commit/360838a22f5b3a88c0358207f2923059bcbb3afb\nhttps://github.com/hexpm/hex/commit/671f695ac548ed01f5828c2a739ecaa942b21007\nhttps://github.com/hexpm/hex/commit/d8b60eee97abb119d525306f048969a217d793a5\nhttps://github.com/hexpm/hex_core/commit/ebe25d110717f6a3addba5232cd4a7dc1c76b628\nhttps://github.com/hexpm/hex_core/commit/fbb6d9de472e5edb8d6fb6b32a91cb266137892e\nhttps://github.com/hexpm/hex_core/security/advisories/GHSA-7c4r-cgf9-9jmq\nhttps://osv.dev/vulnerability/EEF-CVE-2026-105274","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105274","published_at":"2026-10-12T17:17:12.457000Z","updated_at":"2026-11-20T06:17:16.940000Z","fetched_at":"2026-11-21T19:15:31.479234Z","severity":"low","cvss_score":2.1,"epss":0.00783,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-105274","vuln_ids":["CVE-2026-105274","CVE-2026-21619","GHSA-7C4R-CGF9-9JMQ","GHSA-HX9W-F2W9-9G96"],"tags":["CWE-409"],"cluster_id":4016,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3699","html":"https://vulnwatch.ve1ve2.com/item/3699"}},{"id":3698,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"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 sp…","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.\n\nHex 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.\n\nHex.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.\n\nPackage 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/\nin 2.5.1 and into a staging directory on the development branch, before its checksums are compared with the registry.\n\nmix 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.\n\nRegistry 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.\n\nThis issue affects hex: from 0.11.2 before 2.5.2.\n\nReferences:\nhttps://cna.erlef.org/cves/CVE-2026-96618.html\nhttps://github.com/hexpm/hex/commit/08956100a8283ba500a123e5539ac64d5d7e91d8\nhttps://github.com/hexpm/hex/commit/51ea632424fb6ea8765148f96dc25dfeb526b1f8\nhttps://github.com/hexpm/hex/commit/bb5189eade682c5fc3f98d9725973a7beb4e1deb\nhttps://github.com/hexpm/hex/security/advisories/GHSA-gf42-pg2f-63jp\nhttps://osv.dev/vulnerability/EEF-CVE-2026-96618","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96618","published_at":"2026-10-12T16:17:07.920000Z","updated_at":"2026-11-20T06:17:45.800000Z","fetched_at":"2026-11-21T19:15:31.479233Z","severity":"low","cvss_score":2.1,"epss":0.00358,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-96618","vuln_ids":["CVE-2026-96618","GHSA-7C4R-CGF9-9JMQ","GHSA-GF42-PG2F-63JP"],"tags":["CWE-409","CWE-770"],"cluster_id":4013,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3698","html":"https://vulnwatch.ve1ve2.com/item/3698"}}]}