{"id":"CVE-2026-21619","aliases":["CVE-2026-21619","GHSA-hx9w-f2w9-9g96","EEF-CVE-2026-21619"],"related":[],"kind":"vulnerability","state":"published","title":"Unsafe Deserialization of Erlang Terms in hex_core","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.\n\nThis 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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.\n\nThis 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 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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"en","text":"## 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.\n\nThis 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 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.","format":"markdown","source":"eef"},{"lang":"es","text":"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.\n\nEste 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.","source":"nvd"}],"published":"2026-02-27T17:57:11.513Z","modified":"2026-11-25T17:23:06.209Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","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","score":2,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","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","score":2,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-502"],"affected":[{"ranges":[{"type":"semver","introduced":"3.9.1","fixed":"3.27.0","status":"affected"}],"vendor":"erlang","product":"rebar3","package":"rebar3","cpe":"cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*","repo":"https://github.com/erlang/rebar3","source":"cvelist"},{"ranges":[{"type":"git","introduced":"209c02ec57c2cc3207ee0174c3af3675b8dc8f79","fixed":"1d4478f527e373de0b225951e53115450e0d9b9d","status":"affected"}],"vendor":"erlang","product":"rebar3","package":"erlang/rebar3","cpe":"cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*","repo":"https://github.com/erlang/rebar3","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.3.0","fixed":"2.3.2","status":"affected"}],"vendor":"hexpm","product":"hex","package":"hex","cpe":"cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*","repo":"https://github.com/hexpm/hex","source":"cvelist"},{"ranges":[{"type":"git","introduced":"314546ac432229518714cc8e3336e916b9da6305","fixed":"*","status":"affected"}],"vendor":"hexpm","product":"hex","package":"hexpm/hex","cpe":"cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*","repo":"https://github.com/hexpm/hex","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"0.12.1","status":"affected"}],"vendor":"hexpm","product":"hex_core","package":"hex_core","cpe":"cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*","repo":"https://github.com/hexpm/hex_core","source":"cvelist"},{"ranges":[{"type":"git","introduced":"eb327f8edfe45507351e38cc0805aa12fa647f0b","fixed":"cdf726095bca85ad2549d146df1e831ae93c2b13","status":"affected"}],"vendor":"hexpm","product":"hex_core","package":"hexpm/hex_core","cpe":"cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*","repo":"https://github.com/hexpm/hex_core","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.1"}],"ecosystem":"Hex","package":"hex_core","purl":"pkg:hex/hex_core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.12.1"}],"ecosystem":"Hex","package":"hex_core","purl":"pkg:hex/hex_core","source":"eef"},{"ranges":[{"type":"git","introduced":"209c02ec57c2cc3207ee0174c3af3675b8dc8f79","status":"affected","fixed":"1d4478f527e373de0b225951e53115450e0d9b9d"}],"repo":"https://github.com/erlang/rebar3","source":"eef"},{"ranges":[{"type":"git","introduced":"314546ac432229518714cc8e3336e916b9da6305","status":"affected","fixed":"636739f3322514e9303ca335fb630696fcbb3c95"},{"type":"git","status":"affected","fixed":"a9999e425d9c0f9fc8c53e7823eee898156c4d1a"}],"repo":"https://github.com/hexpm/hex","source":"eef"},{"ranges":[{"type":"git","introduced":"eb327f8edfe45507351e38cc0805aa12fa647f0b","status":"affected","fixed":"cdf726095bca85ad2549d146df1e831ae93c2b13"}],"repo":"https://github.com/hexpm/hex_core","source":"eef"},{"ranges":[{"status":"affected","introduced":"3.9.1","fixed":"3.27.0"}],"vendor":"erlang","product":"rebar3","cpe":"cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"2.3.0","fixed":"2.3.2"}],"vendor":"hex","product":"hex","cpe":"cpe:2.3:a:hex:hex:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.12.1"}],"vendor":"hex","product":"hex_core","cpe":"cpe:2.3:a:hex:hex_core:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/hexpm/hex_core/security/advisories/GHSA-hx9w-f2w9-9g96","tags":["advisory","mitigation","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-21619.html","tags":["related","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-21619","tags":["related","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/hexpm/hex/commit/314546ac432229518714cc8e3336e916b9da6305","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/hexpm/hex/commit/a9999e425d9c0f9fc8c53e7823eee898156c4d1a","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/hexpm/hex_core/commit/eb327f8edfe45507351e38cc0805aa12fa647f0b","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21619","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/hexpm/hex_core","tags":["package"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/hex_core","tags":["package"],"sources":["eef"]}],"credits":["Michael Lubas / Paraxial.io","Jonatan Männchen / EEF","Eric Meadows-Jönsson / Hex.pm"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-02-27T19:08:49.652Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-21619","url":"https://www.cve.org/CVERecord?id=CVE-2026-21619","licence":"CVE Terms of Use","modified":"2026-11-20T05:55:42.123Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hx9w-f2w9-9g96","url":"https://github.com/advisories/GHSA-hx9w-f2w9-9g96","licence":"CC-BY-4.0","modified":"2026-04-06T23:34:56.174Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-21619","url":"https://osv.dev/vulnerability/EEF-CVE-2026-21619","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:06.209Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-21619","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21619","licence":"Public domain","modified":"2026-11-20T06:17:21.807Z"}],"updatedAt":"2026-11-25T22:59:15.032Z","epss":{"score":0.00743,"percentile":0.55942,"date":"2026-12-01T12:00:22.000Z"}}