CVE-2026-21619
Unsafe Deserialization of Erlang Terms in hex_core
Mitigation
- Upgrade rebar3 to 3.27.0 or later.
- Upgrade rebar3 to 1d4478f527e373de0b225951e53115450e0d9b9d or later.
- Upgrade hex to 2.3.2 or later.
- Upgrade hex_core to 0.12.1 or later.
Who should check
- Anyone running erlang rebar3 >= 3.9.1, < 3.27.0
- Anyone running erlang rebar3 >= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 1d4478f527e373de0b225951e53115450e0d9b9d
- Anyone running hexpm hex >= 2.3.0, < 2.3.2
- Anyone running hexpm hex >= 314546ac432229518714cc8e3336e916b9da6305, < *
- Anyone running hexpm hex_core >= 0.1.0, < 0.12.1
- Anyone running hexpm hex_core >= eb327f8edfe45507351e38cc0805aa12fa647f0b, < cdf726095bca85ad2549d146df1e831ae93c2b13
Vulnerability facts
- Affected
- erlang rebar3 >= 3.9.1, < 3.27.0; erlang rebar3 >= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 1d4478f527e373de0b225951e53115450e0d9b9d; hexpm hex >= 2.3.0, < 2.3.2; hexpm hex >= 314546ac432229518714cc8e3336e916b9da6305, < *; hexpm hex_core >= 0.1.0, < 0.12.1; hexpm hex_core >= eb327f8edfe45507351e38cc0805aa12fa647f0b, < cdf726095bca85ad2549d146df1e831ae93c2b13
- Fixed in
- erlang rebar3 3.27.0, erlang rebar3 1d4478f527e373de0b225951e53115450e0d9b9d, hexpm hex 2.3.2, hexpm hex_core 0.12.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 2.0 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: Low
- User interaction: Active
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 1.42% chance of exploitation in 30 days (percentile 73, 2026-11-26)
- CWE
- CWE-400, CWE-502
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| erlang rebar3 | >= 3.9.1, < 3.27.0 | — | cvelist |
| erlang rebar3 | >= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 1d4478f527e373de0b225951e53115450e0d9b9d | — | cvelist |
| hexpm hex | >= 2.3.0, < 2.3.2 | — | cvelist |
| hexpm hex | >= 314546ac432229518714cc8e3336e916b9da6305, < * | — | cvelist |
| hexpm hex_core | >= 0.1.0, < 0.12.1 | — | cvelist |
| hexpm hex_core | >= eb327f8edfe45507351e38cc0805aa12fa647f0b, < cdf726095bca85ad2549d146df1e831ae93c2b13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-21619. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-21619.md Affected: erlang rebar3 >= 3.9.1, < 3.27.0; erlang rebar3 >= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 1d4478f527e373de0b225951e53115450e0d9b9d; hexpm hex >= 2.3.0, < 2.3.2; hexpm hex >= 314546ac432229518714cc8e3336e916b9da6305, < *; hexpm hex_core >= 0.1.0, < 0.12.1; hexpm hex_core >= eb327f8edfe45507351e… Fixed in: erlang rebar3 3.27.0, erlang rebar3 1d4478f527e373de0b225951e53115450e0d9b9d, hexpm hex 2.3.2, hexpm hex_core 0.12.1 Steps: 1. Search this machine and project for erlang rebar3, hexpm hex, hexpm hex_core: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79
- https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d
- https://github.com/hexpm/hex/commit/314546ac432229518714cc8e3336e916b9da6305
- https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95
- https://github.com/hexpm/hex/commit/a9999e425d9c0f9fc8c53e7823eee898156c4d1a
- https://github.com/hexpm/hex_core/commit/eb327f8edfe45507351e38cc0805aa12fa647f0b
- https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13
FAQ
Is CVE-2026-21619 being exploited?
There is no confirmed exploitation: CVE-2026-21619 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.42% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-21619?
Low: CVSS 2.0 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-21619?
erlang rebar3 >= 3.9.1, < 3.27.0; erlang rebar3 >= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 1d4478f527e373de0b225951e53115450e0d9b9d; hexpm hex >= 2.3.0, < 2.3.2; hexpm hex >= 314546ac432229518714cc8e3336e916b9da6305, < *; hexpm hex_core >= 0.1.0, < 0.12.1; hexpm hex_core >= eb327f8edfe45507351e38cc0805aa12fa647f0b, < cdf726095bca85ad2549d146df1e831ae93c2b13.
Is there a fix for CVE-2026-21619?
Yes. Fixed in erlang rebar3 3.27.0, erlang rebar3 1d4478f527e373de0b225951e53115450e0d9b9d, hexpm hex 2.3.2, hexpm hex_core 0.12.1. Upgrade rebar3 to 3.27.0 or later. Upgrade rebar3 to 1d4478f527e373de0b225951e53115450e0d9b9d or later. Upgrade hex to 2.3.2 or later. Upgrade hex_core to 0.12.1 or later.
How do I check if I'm affected by CVE-2026-21619?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.