{"id":"EEF-CVE-2026-21619","summary":"Unsafe Deserialization of Erlang Terms in hex_core","details":"## 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.","aliases":["CVE-2026-21619","GHSA-hx9w-f2w9-9g96"],"modified":"2026-11-25T17:23:06.209778262Z","published":"2026-02-27T17:57:11.513Z","database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json","capec_ids":["CAPEC-586","CAPEC-130"],"cpe_ids":["cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*","cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*","cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-400","CWE-502"]},"references":[{"type":"ADVISORY","url":"https://github.com/hexpm/hex_core/security/advisories/GHSA-hx9w-f2w9-9g96"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-21619.html"},{"type":"WEB","url":"https://github.com/erlang/rebar3/commit/209c02ec57c2cc3207ee0174c3af3675b8dc8f79"},{"type":"FIX","url":"https://github.com/erlang/rebar3/commit/1d4478f527e373de0b225951e53115450e0d9b9d"},{"type":"WEB","url":"https://github.com/hexpm/hex/commit/314546ac432229518714cc8e3336e916b9da6305"},{"type":"FIX","url":"https://github.com/hexpm/hex/commit/636739f3322514e9303ca335fb630696fcbb3c95"},{"type":"FIX","url":"https://github.com/hexpm/hex/commit/a9999e425d9c0f9fc8c53e7823eee898156c4d1a"},{"type":"WEB","url":"https://github.com/hexpm/hex_core/commit/eb327f8edfe45507351e38cc0805aa12fa647f0b"},{"type":"FIX","url":"https://github.com/hexpm/hex_core/commit/cdf726095bca85ad2549d146df1e831ae93c2b13"},{"type":"PACKAGE","url":"https://hex.pm/packages/hex_core"}],"affected":[{"package":{"name":"hex_core","ecosystem":"Hex","purl":"pkg:hex/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"],"ecosystem_specific":{"program_files":["src/hex_api.erl"],"program_routines":["hex_core:request/4"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["hex_api"]},"database_specific":{"modules":["hex_api"],"program_files":["src/hex_api.erl"],"program_routines":["hex_core:request/4"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-21619.json","$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/erlang/rebar3","events":[{"introduced":"209c02ec57c2cc3207ee0174c3af3675b8dc8f79"},{"fixed":"1d4478f527e373de0b225951e53115450e0d9b9d"}]}],"versions":["3.26.0","3.25.1","3.25.0","3.24.0","3.23.0","3.22.1","3.22.0","3.21.0","3.20.0","3.19.0","3.18.0","3.17.0","3.16.1","3.15.1","3.16.0","3.15.0","3.14.4","3.14.2","3.14.1","3.14.0","3.14.0-rc2","3.14.0-rc1","3.13.0","3.12.0","3.11.1","3.11.0","3.9.1"],"database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["r3_hex_api"],"program_files":["apps/rebar/src/vendored/r3_hex_api.erl"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-21619.json","program_routines":["r3_hex_api:request/4"]}},{"ranges":[{"type":"GIT","repo":"https://github.com/hexpm/hex","events":[{"introduced":"314546ac432229518714cc8e3336e916b9da6305"},{"fixed":"636739f3322514e9303ca335fb630696fcbb3c95"},{"fixed":"a9999e425d9c0f9fc8c53e7823eee898156c4d1a"}]}],"versions":["v2.3.1","v2.3.0"],"database_specific":{"source":"https://cna.erlef.org/osv/EEF-CVE-2026-21619.json","$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["mix_hex_api"],"program_files":["src/mix_hex_api.erl"],"program_routines":["mix_hex_api:request/4"]}},{"ranges":[{"type":"GIT","repo":"https://github.com/hexpm/hex_core","events":[{"introduced":"eb327f8edfe45507351e38cc0805aa12fa647f0b"},{"fixed":"cdf726095bca85ad2549d146df1e831ae93c2b13"}]}],"versions":["v0.12.0","v0.11.0","v0.10.3","v0.10.2","v0.10.1","v0.10.0","v0.9.0","v0.8.4","v0.8.3","v0.8.2","v0.8.1","v0.8.0","v0.7.1","v0.7.0","v0.6.9","v0.6.8","v0.6.7","v0.6.6","v0.6.5","v0.6.4","v0.6.3","v0.6.1","v0.5.0","v0.6.0","v0.4.0","v0.3.0","v0.2.1","v0.2.0","v0.1.1","v0.1.0"],"database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","source":"https://cna.erlef.org/osv/EEF-CVE-2026-21619.json","modules":["hex_api"],"program_files":["src/hex_api.erl"],"program_routines":["hex_core:request/4"]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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","source":"CNA"}],"credits":[{"name":"Michael Lubas / Paraxial.io","type":"FINDER"},{"name":"Jonatan Männchen / EEF","type":"REMEDIATION_DEVELOPER"},{"name":"Eric Meadows-Jönsson / Hex.pm","type":"REMEDIATION_REVIEWER"}]}