{"id":"CVE-2026-21619","published":"2026-02-27T17:57:11Z","modified":"2026-11-20T05:55:42Z","title":"Unsafe Deserialization of Erlang Terms in hex_core","vendor":"erlang","product":"rebar3","tier":"tail","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.\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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01424,"percentile":0.73109,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/hexpm/hex_core/security/advisories/GHSA-hx9w-f2w9-9g96","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-21619.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-21619","tags":["related"]},{"url":"https://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79","tags":["related"]},{"url":"https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d","tags":["patch"]},{"url":"https://github.com/hexpm/hex/commit/314546ac432229518714cc8e3336e916b9da6305","tags":["related"]},{"url":"https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95","tags":["patch"]},{"url":"https://github.com/hexpm/hex/commit/a9999e425d9c0f9fc8c53e7823eee898156c4d1a","tags":["patch"]},{"url":"https://github.com/hexpm/hex_core/commit/eb327f8edfe45507351e38cc0805aa12fa647f0b","tags":["related"]},{"url":"https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13","tags":["patch"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":14.62},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"erlang","affectedVersions":[{"vendor":"erlang","product":"rebar3","versions":[">= 3.9.1, < 3.27.0"]},{"vendor":"erlang","product":"rebar3","versions":[">= 209c02ec57c2cc3207ee0174c3af3675b8dc8f79, < 1d4478f527e373de0b225951e53115450e0d9b9d"]},{"vendor":"hexpm","product":"hex","versions":[">= 2.3.0, < 2.3.2"]},{"vendor":"hexpm","product":"hex","versions":[">= 314546ac432229518714cc8e3336e916b9da6305"]},{"vendor":"hexpm","product":"hex_core","versions":[">= 0.1.0, < 0.12.1"]},{"vendor":"hexpm","product":"hex_core","versions":[">= eb327f8edfe45507351e38cc0805aa12fa647f0b, < cdf726095bca85ad2549d146df1e831ae93c2b13"]}],"fixedVersions":[{"vendor":"hexpm","product":"hex","versions":["636739f3322514e9303ca335fb630696fcbb3c95","a9999e425d9c0f9fc8c53e7823eee898156c4d1a"]}],"capec":[{"id":"CAPEC-586","name":"Object Injection"},{"id":"CAPEC-130","name":"Excessive Allocation"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-27T19:08:49.652728Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"hex_core","vulnerableRanges":["<0.12.1"],"patched":["0.12.1"],"from":["GHSA-hx9w-f2w9-9g96"],"provenance":"source"}],"summary":{"text":"The flaw is an unsafe deserialization of Erlang terms in the hex_core library, specifically in its hex_api modules (hex_core:request/4), with the same issue affecting the hex and rebar3 client code paths that handle API responses. An attacker who can get a malicious response processed by these clients may trigger object injection and excessive memory allocation, causing resource exhaustion; exploitation requires network access to a source the client talks to, a low-privilege authenticated context, and a user or automated action that makes the client make the request.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:03Z"},"euvd":{"id":"EUVD-2026-9037","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-erlang-rebar3-cve-2026-21619","children":[{"from":"CVE-2026-21619","to":"CVE-2026-103060","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["bootstrap","rebar.config","src/rebar.app.src","src/rebar_hex_repos.erl","src/rebar_packages.erl"],"commits":["https://github.com/erlang/rebar3/commit/56b7d88975aa8da6446857cfd92de0825024bf63","https://github.com/erlang/rebar3/commit/e35282b26e499b1d9e8f30bba9dccd71cd8b02ba","https://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79"],"basis":"shared function","functions":["bootstrap_rebar3","main"]}]}]}}