CVE-2026-105274
hex_core decompresses registry and Erlang term API responses without size limits
Check your servers for CVE-2026-105274
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-105274 affects hex, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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).
hex_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.
hex_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.
This 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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality none, integrity none, availability low: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.58%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 49.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 15 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
rebar3
package
rebar3 |
affected from 3.9.1, before 3.27.3
Other versions: unaffected
|
|
rebar3
package
erlang/rebar3 |
affected from 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, before 360838a22f5b3a88c0358207f2923059bcbb3afb
Other versions: unaffected
|
|
hex
package
hex |
affected from 2.1.0, before 2.5.2 affected 2.6.0 and later
Other versions: unaffected
|
|
hex
package
hexpm/hex |
affected from 671f695ac548ed01f5828c2a739ecaa942b21007, before d8b60eee97abb119d525306f048969a217d793a5
Other versions: unaffected
|
|
hex_core
package
hex_core |
affected from 0.1.0, before 0.20.0
Other versions: unaffected
|
|
hex_core
package
hexpm/hex_core |
affected from fbb6d9de472e5edb8d6fb6b32a91cb266137892e, before ebe25d110717f6a3addba5232cd4a7dc1c76b628
Other versions: unaffected
|
Is my server affected?
Find the installed version of hex and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i hex
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-105274 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-105274RHEL, Rocky, Alma, Fedora
rpm -q hex
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-105274Alpine
apk list --installed | grep -i hexWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-105274
trivy image --scanners vuln IMAGE | grep CVE-2026-105274
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- GitHub Advisory github.com · related, vendor advisory
Patches and release notes
- Fix commit 360838a in erlang/rebar3 github.com · patch
- Fix commit d8b60ee in hexpm/hex github.com · patch
- Fix commit ebe25d1 in hexpm/hex_core github.com · patch
Other references
- EEF CNA record for CVE-2026-105274 cna.erlef.org · related
- OSV record EEF-CVE-2026-105274 osv.dev · related
- Introducing commit 209c02e in erlang/rebar3 github.com · related
- Introducing commit 671f695 in hexpm/hex github.com · related
- Introducing commit fbb6d9d in hexpm/hex_core github.com · related
Source: the record CVE-2026-105274 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse