CVE-2026-21619
JSON

2.0low

Unsafe Deserialization of Erlang Terms in hex_core

Severity
2.0low CVSS:4.0 by EEF
Exploit likelihood
0.74% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
GHSA-hx9w-f2w9-9g96EEF-CVE-2026-21619

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.

Affected

Product or packageVersionsReported by
rebar3from 3.9.1 before 3.27.0CVE List
erlang/rebar3from 209c02ec57c2cc3207ee0174c3af3675b8dc8f79 before 1d4478f527e373de0b225951e53115450e0d9b9dCVE List
hexfrom 2.3.0 before 2.3.2CVE List
hexpm/hexfrom 314546ac432229518714cc8e3336e916b9da6305 before *CVE List
hex_corefrom 0.1.0 before 0.12.1CVE List
hexpm/hex_corefrom eb327f8edfe45507351e38cc0805aa12fa647f0b before cdf726095bca85ad2549d146df1e831ae93c2b13CVE List
hex_core (Hex)before 0.12.1, from 0.1.0 before 0.12.1GitHub Advisory Database, Erlang Ecosystem Foundation
https://github.com/erlang/rebar3from 209c02ec57c2cc3207ee0174c3af3675b8dc8f79 before 1d4478f527e373de0b225951e53115450e0d9b9dErlang Ecosystem Foundation
https://github.com/hexpm/hexfrom 314546ac432229518714cc8e3336e916b9da6305 before 636739f3322514e9303ca335fb630696fcbb3c95, before a9999e425d9c0f9fc8c53e7823eee898156c4d1aErlang Ecosystem Foundation
https://github.com/hexpm/hex_corefrom eb327f8edfe45507351e38cc0805aa12fa647f0b before cdf726095bca85ad2549d146df1e831ae93c2b13Erlang Ecosystem Foundation
erlang rebar3from 3.9.1 before 3.27.0NVD
hex hexfrom 2.3.0 before 2.3.2NVD

All scores

EEF2.0low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-502

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

The Hex client (hex_core) deserializes Erlang terms received from the Hex API using binary_to_term/1 without sufficient restrictions.

If an attacker can control the HTTP response body returned by the Hex API, this allows denial-of-service attacks such as atom table exhaustion, leading to a VM crash. No released versions are known to allow remote code execution.

Patches
Workarounds

Ensure that the Hex API URL (HEX_API_URL) points only to trusted endpoints. There is no client-side workaround that fully mitigates this issue without applying the patch.

Resources
Erlang Ecosystem Foundation

Summary

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.

NVD (es)

Consumo de Recursos No Controlado, vulnerabilidad de Deserialización de Datos No Confiables en hexpm hex_core (módulos hex_api), hexpm hex (módulos mix_hex_api), erlang rebar3 (módulos r3_hex_api) permite Inyección de Objetos, Asignación Excesiva. Esta vulnerabilidad está asociada con los archivos de programa src/hex_api.erl, src/mix_hex_api.erl, apps/rebar/src/vendored/r3_hex_api.erl y las rutinas de programa hex_core:request/4, mix_hex_api:request/4, r3_hex_api:request/4. Este problema afecta a hex_core: desde 0.1.0 antes de 0.12.1; hex: desde 2.3.0 antes de 2.3.2; rebar3: desde 3.9.1 antes de 3.27.0.

References

https://github.com/hexpm/hex_core/security/advisories/GHSA-hx9w-f2w9-9g96advisory, mitigation, related, vendor-advisory, web
https://cna.erlef.org/cves/CVE-2026-21619.htmlrelated, web
https://osv.dev/vulnerability/EEF-CVE-2026-21619related, web
https://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79related, web
https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9dfix, patch, web
https://github.com/hexpm/hex/commit/314546ac432229518714cc8e3336e916b9da6305related, web
https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95fix, patch, web
https://github.com/hexpm/hex/commit/a9999e425d9c0f9fc8c53e7823eee898156c4d1afix, patch
https://github.com/hexpm/hex_core/commit/eb327f8edfe45507351e38cc0805aa12fa647f0brelated, web
https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13fix, patch, web
https://nvd.nist.gov/vuln/detail/CVE-2026-21619advisory
https://github.com/hexpm/hex_corepackage

Sources

SourceRecordLicence
CVE ListCVE-2026-21619 changed 2026-11-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-hx9w-f2w9-9g96 changed 2026-04-06CC-BY-4.0
Erlang Ecosystem FoundationEEF-CVE-2026-21619 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-21619 changed 2026-11-20Public domain