CVE-2026-21619
Unsafe Deserialization of Erlang Terms in hex_core
Check your servers for CVE-2026-21619
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-21619 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
Uncontrolled Resource Consumption, Deserialization of Untrusted Data vulnerability in hexpm hex_core (hex_api modules), hexpm hex (mix_hex_api modules), erlang rebar3 (r3_hex_api modules) allows Object Injection, Excessive Allocation.
This vulnerability is associated with program files src/hex_api.erl, src/mix_hex_api.erl, apps/rebar/src/vendored/r3_hex_api.erl and program routines hex_core:request/4, mix_hex_api:request/4, r3_hex_api:request/4.
This issue affects rebar3: from 3.9.1 before 3.27.0; hex: from 2.3.0 before 2.3.2; hex_core: from 0.1.0 before 0.12.1.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/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
- low: the attacker needs an ordinary user 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.74%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 55.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 27 Feb 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
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
rebar3
package
rebar3 |
affected from 3.9.1, before 3.27.0
Other versions: unaffected
|
|
rebar3
package
erlang/rebar3 |
affected from 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, before 1d4478f527e373de0b225951e53115450e0d9b9d
Other versions: unaffected
|
|
hex
package
hex |
affected from 2.3.0, before 2.3.2
Other versions: unaffected
|
|
hex
package
hexpm/hex |
affected 314546ac432229518714cc8e3336e916b9da6305 and later (unaffected from 636739f3322514e9303ca335fb630696fcbb3c95, unaffected from a9999e425d9c0f9fc8c53e7823eee898156c4d1a)
Other versions: unaffected
|
|
hex_core
package
hex_core |
affected from 0.1.0, before 0.12.1
Other versions: unaffected
|
|
hex_core
package
hexpm/hex_core |
affected from eb327f8edfe45507351e38cc0805aa12fa647f0b, before cdf726095bca85ad2549d146df1e831ae93c2b13
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-21619 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-21619RHEL, Rocky, Alma, Fedora
rpm -q hex
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-21619Alpine
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-21619
trivy image --scanners vuln IMAGE | grep CVE-2026-21619
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
- Unsafe Deserialization of Erlang Terms in hex_core github.com · vendor advisory, related
Patches and release notes
- Fix commit 1d4478f in erlang/rebar3 github.com · patch
- Fix commit 636739f in hexpm/hex github.com · patch
- Fix commit a9999e4 in hexpm/hex github.com · patch
- Fix commit cdf7260 in hexpm/hex_core github.com · patch
Other references
- EEF CNA record for CVE-2026-21619 cna.erlef.org · related
- OSV record EEF-CVE-2026-21619 osv.dev · related
- Introducing commit 209c02e in erlang/rebar3 github.com · related
- Introducing commit 314546a in hexpm/hex github.com · related
- Introducing commit eb327f8 in hexpm/hex_core github.com · related
Source: the record CVE-2026-21619 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