{"id":"CVE-2026-21619","aliases":["DEBIAN-CVE-2026-21619","EEF-CVE-2026-21619","EUVD-2026-9037","GHSA-hx9w-f2w9-9g96","MGASA-2026-0196","UBUNTU-CVE-2026-21619"],"status":"published","title":"Unsafe Deserialization of Erlang Terms in hex_core","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.\n\nThis issue affects hex_core: from 0.1.0 before 0.12.1; hex: from 2.3.0 before 2.3.2; rebar3: from 3.9.1 before 3.27.0.","severity":{"version":"4.0","score":2,"vector":"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","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00638,"percentile":0.51032,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400","CWE-502"],"published":"2026-02-27T17:57:11Z","modified":"2026-10-28T02:31:08Z","fixes":[{"ecosystem":"Hex","package":"hex_core","fixed_in":["0.12.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:14","package":"erlang-hex","fixed_in":["2.4.2-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rebar3","fixed_in":["3.27.0-1"],"sources":["osv"]},{"ecosystem":"Mageia:9","package":"erlang-hex_core","fixed_in":["0.7.1-2.1.mga9"],"sources":["osv"]},{"ecosystem":"Mageia:9","package":"erlang-rebar3","fixed_in":["3.18.0-1.1.mga9"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Hex","package":"hex_core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"erlang-hex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.6-2","2.4.2-1","2.4.2-2","2.5.1-1","2.5.1-2"]},{"source":"osv","ecosystem":"Debian:14","package":"erlang-hex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.2-2"}]}],"versions":["2.0.6-2","2.4.2-1"]},{"source":"osv","ecosystem":"Debian:12","package":"rebar3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.19.0-1","3.23.0-1","3.23.0-2","3.23.0-3","3.24.0-1","3.25.1-1","3.26.0-1","3.27.0-1","3.27.0-2","3.27.0-3","3.27.0-4","3.27.0-5","3.27.0-6"]},{"source":"osv","ecosystem":"Debian:13","package":"rebar3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.24.0-1","3.25.1-1","3.26.0-1","3.27.0-1","3.27.0-2","3.27.0-3","3.27.0-4","3.27.0-5","3.27.0-6"]},{"source":"osv","ecosystem":"Debian:14","package":"rebar3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.27.0-1"}]}],"versions":["3.24.0-1","3.25.1-1","3.26.0-1"]},{"source":"osv","ecosystem":"Hex","package":"hex_core","ranges":[{"type":"SEMVER","events":[{"introduced":"0.1.0"},{"fixed":"0.12.1"}]}],"versions":["0.1.0","0.1.1","0.10.0","0.10.1","0.10.2","0.10.3","0.11.0","0.12.0","0.2.0","0.2.1","0.3.0","0.4.0","0.5.0","0.5.1","0.6.0","0.6.1","0.6.10","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.6.8","0.6.9","0.7.0","0.7.1","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.9.0"]},{"source":"osv","ecosystem":"Hex","package":"hex_core","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.1"}]}],"versions":["0.1.0","0.1.1","0.10.0","0.10.1","0.10.2","0.10.3","0.11.0","0.12.0","0.2.0","0.2.1","0.3.0","0.4.0","0.5.0","0.5.1","0.6.0","0.6.1","0.6.10","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.6.8","0.6.9","0.7.0","0.7.1","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.9.0"]},{"source":"osv","ecosystem":"Mageia:9","package":"erlang-hex_core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.1-2.1.mga9"}]}]},{"source":"osv","ecosystem":"Mageia:9","package":"erlang-rebar3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.18.0-1.1.mga9"}]}]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"rebar3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"rebar3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.19.0-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"rebar3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.23.0-3","3.24.0-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"rebar3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.26.0-1","3.27.0-3","3.27.0-4","3.27.0-6"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"rebar3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.24.0-1","3.25.1-1","3.26.0-1"]}],"products":[{"vendor":"erlang","product":"rebar3"},{"vendor":"hex","product":"hex"},{"vendor":"hex","product":"hex_core"},{"vendor":"hexpm","product":"hex"},{"vendor":"hexpm","product":"hex_core"}],"references":[{"url":"https://github.com/hexpm/hex_core/security/advisories/GHSA-hx9w-f2w9-9g96","tags":["vendor-advisory","related","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://cna.erlef.org/cves/CVE-2026-21619.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-21619","tags":["related","web"]},{"url":"https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13","tags":["patch","Patch","fix","web"]},{"url":"https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95","tags":["patch","Patch","fix","web"]},{"url":"https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d","tags":["patch","Patch","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21619","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hx9w-f2w9-9g96"},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21619.json","tags":["advisory"]},{"url":"https://github.com/erlang/rebar3","tags":["package"]},{"url":"https://github.com/hexpm/hex","tags":["package"]},{"url":"https://github.com/hexpm/hex_core","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-21619","tags":["advisory"]},{"url":"https://hex.pm/packages/hex_core","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2026-0196.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=35187","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULA2SKGZS6NTHYMAHGYMOGTSP4KM4IOP/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2026-21619","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-21619","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-21619","title":"Unsafe Deserialization of Erlang Terms in hex_core","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.\n\nThis issue affects hex_core: from 0.1.0 before 0.12.1; hex: from 2.3.0 before 2.3.2; rebar3: from 3.9.1 before 3.27.0.","status":"published","published":"2026-02-27T17:57:11.513Z","modified":"2026-05-27T15:40:33.166Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low","assessor":"cna"}],"cwes":["CWE-400","CWE-502"],"updated_at":"2026-11-02T13:41:53.237769Z"}],"euvd":[{"id":"EUVD-2026-9037","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.\n\nThis issue affects hex_core: from 0.1.0 before 0.12.1; hex: from 2.3.0 before 2.3.2; rebar3: from 3.9.1 before 3.27.0.","status":"published","published":"2026-02-27T17:57:11Z","modified":"2026-05-27T15:40:33Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low"}],"updated_at":"2026-11-02T18:21:04.415835Z"}],"ghsa":[{"id":"GHSA-hx9w-f2w9-9g96","title":"hex_core has Unsafe Deserialization of Erlang Terms","description":"### Impact\n\nThe Hex client (`hex_core`) deserializes Erlang terms received from the Hex API using `binary_to_term/1` without sufficient restrictions.\n\nIf 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.\n\n### Patches\n\n* https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13\n* https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95\n* https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d\n\n### Workarounds\n\nEnsure 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.\n\n### Resources\n\n* hex_core Module: https://github.com/hexpm/hex_core/blob/main/src/hex_api.erl\n* Hex Vendored Module: https://github.com/hexpm/hex/blob/main/src/mix_hex_api.erl\n* Rebar3 Vendored Module: https://github.com/erlang/rebar3/blob/main/apps/rebar/src/vendored/r3_hex_api.erl\n* hex_core Patch: https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13\n* Hex Vendored Patch: https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95\n* Rebar3 Vendored Patch: https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d","status":"published","published":"2026-03-01T01:25:35Z","modified":"2026-04-06T23:15:54Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:39:50.076383Z"}],"nvd":[{"id":"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.\n\nThis issue affects hex_core: from 0.1.0 before 0.12.1; hex: from 2.3.0 before 2.3.2; rebar3: from 3.9.1 before 3.27.0.","status":"published","published":"2026-02-27T18:16:11.373Z","modified":"2026-06-17T10:18:48.953Z","cvss":[{"version":"4.0","score":2,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"low","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-400","CWE-502"],"updated_at":"2026-11-02T14:12:07.420927Z"}],"osv":[{"id":"CVE-2026-21619","title":"Unsafe Deserialization of Erlang Terms in hex_core","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.\n\nThis issue affects hex_core: from 0.1.0 before 0.12.1; hex: from 2.3.0 before 2.3.2; rebar3: from 3.9.1 before 3.27.0.","status":"published","published":"2026-02-27T17:57:11.513Z","modified":"2026-10-28T02:31:08.462215495Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low"}],"cwes":["CWE-400","CWE-502"],"updated_at":"2026-11-02T15:44:58.42038Z"},{"id":"DEBIAN-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 hex_core: from 0.1.0 before 0.12.1; hex: from 2.3.0 before 2.3.2; rebar3: from 3.9.1 before 3.27.0.","status":"published","published":"2026-02-27T18:16:11.373Z","modified":"2026-10-01T03:03:21.712039874Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:53.097669Z"},{"id":"EEF-CVE-2026-21619","title":"Unsafe Deserialization of Erlang Terms in hex_core","description":"## Summary\n\nUncontrolled 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.\n\nThis issue affects hex\\_core: from 0.1.0 before 0.12.1; hex: from 2.3.0 before 2.3.2; rebar3: from 3.9.1 before 3.27.0.","status":"published","published":"2026-02-27T17:57:11.513Z","modified":"2026-07-30T18:21:59.172007Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low"}],"cwes":["CWE-400","CWE-502"],"updated_at":"2026-11-02T15:46:33.047032Z"},{"id":"GHSA-hx9w-f2w9-9g96","title":"hex_core has Unsafe Deserialization of Erlang Terms","description":"### Impact\n\nThe Hex client (`hex_core`) deserializes Erlang terms received from the Hex API using `binary_to_term/1` without sufficient restrictions.\n\nIf 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.\n\n### Patches\n\n* https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13\n* https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95\n* https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d\n\n### Workarounds\n\nEnsure 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.\n\n### Resources\n\n* hex_core Module: https://github.com/hexpm/hex_core/blob/main/src/hex_api.erl\n* Hex Vendored Module: https://github.com/hexpm/hex/blob/main/src/mix_hex_api.erl\n* Rebar3 Vendored Module: https://github.com/erlang/rebar3/blob/main/apps/rebar/src/vendored/r3_hex_api.erl\n* hex_core Patch: https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13\n* Hex Vendored Patch: https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95\n* Rebar3 Vendored Patch: https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d","status":"published","published":"2026-03-01T01:25:35Z","modified":"2026-04-06T23:34:56.174182Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:49.621585Z"},{"id":"UBUNTU-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 hex_core: from 0.1.0 before 0.12.1; hex: from 2.3.0 before 2.3.2; rebar3: from 3.9.1 before 3.27.0.","status":"published","published":"2026-02-27T18:16:00Z","modified":"2026-10-17T12:58:06.543301618Z","cvss":[{"version":"4.0","score":2,"vector":"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","level":"low"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:56:01.334185Z"},{"id":"MGASA-2026-0196","title":"Updated erlang-hex_core \u0026 erlang-rebar3 packages fix security vulnerability","description":"Uncontrolled Resource Consumption, Deserialization of Untrusted Data\nvulnerability in hexpm hex_core (hex_api modules), hexpm hex\n(mix_hex_api modules), erlang rebar3 (r3_hex_api modules) allows Object\nInjection, Excessive Allocation. This vulnerability is associated with\nprogram files src/hex_api.erl, src/mix_hex_api.erl,\napps/rebar/src/vendored/r3_hex_api.erl and program routines\nhex_core:request/4, mix_hex_api:request/4, r3_hex_api:request/4. This\nissue affects hex_core: from 0.1.0 before 0.12.1; hex: from 2.3.0 before\n2.3.2; rebar3: from 3.9.1 before 3.27.0.\n","status":"published","published":"2026-06-11T16:55:52Z","modified":"2026-06-11T17:00:04.838087366Z","updated_at":"2026-11-02T15:49:43.178336Z"}]}}
