# CVE-2026-21619: Unsafe Deserialization of Erlang Terms in hex\_core

- Priority: **Routine**
- Reason: Not severe (CVSS 2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-27 · Modified: 2026-12-02
- Aliases: MGASA-2026-0196, UBUNTU-CVE-2026-21619, DEBIAN-CVE-2026-21619
- Record: https://cvemate.com/vulnerability/CVE-2026-21619 · JSON: https://cvemate.com/vulnerability/CVE-2026-21619/json

## Description

```text
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_api: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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.743%, percentile 56.091%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian erlang-hex (Debian): All versions (No fix recorded) \| \< 2.4.2-2
- debian rebar3 (Debian): All versions (No fix recorded) \| \< 3.27.0-1
- ubuntu rebar3 (Ubuntu): All versions (No fix recorded)
- erlang rebar3: ≥ 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, \< 1d4478f527e373de0b225951e53115450e0d9b9d \| ≥ 3.9.1, \< 3.27.0
- hex hex: ≥ 2.3.0, \< 2.3.2
- hex hex\_core: ≥ 0.1.0, \< 0.12.1
- hexpm hex: ≥ 2.3.0, \< 2.3.2 \| ≥ 314546ac432229518714cc8e3336e916b9da6305 (No fix recorded)
- hexpm hex\_core: ≥ 0.1.0, \< 0.12.1 \| ≥ eb327f8edfe45507351e38cc0805aa12fa647f0b, \< cdf726095bca85ad2549d146df1e831ae93c2b13
- mageia erlang-hex\_core (Mageia): \< 0.7.1-2.1.mga9
- mageia erlang-rebar3 (Mageia): \< 3.18.0-1.1.mga9

## References

- <https://github.com/hexpm/hex_core/security/advisories/GHSA-hx9w-f2w9-9g96>
- <https://cna.erlef.org/cves/CVE-2026-21619.html>
- <https://osv.dev/vulnerability/EEF-CVE-2026-21619>
- <https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13>
- <https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95>
- <https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d>
- <https://advisories.mageia.org/MGASA-2026-0196.html>
- <https://bugs.mageia.org/show_bug.cgi?id=35187>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULA2SKGZS6NTHYMAHGYMOGTSP4KM4IOP/>
- <https://ubuntu.com/security/CVE-2026-21619>
- <https://www.cve.org/CVERecord?id=CVE-2026-21619>
- <https://security-tracker.debian.org/tracker/CVE-2026-21619>
- <https://github.com/hexpm/hex_core/commit/eb327f8edfe45507351e38cc0805aa12fa647f0b>
- <https://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79>
- <https://github.com/hexpm/hex/commit/314546ac432229518714cc8e3336e916b9da6305>
- <https://github.com/hexpm/hex/commit/a9999e425d9c0f9fc8c53e7823eee898156c4d1a>

---

Data as of 2026-12-05T06:49:03.431Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
