Attackers exploited Hex.pm RCE on six registry servers
CVE-2026-129514 allowed unauthenticated command execution; packages were unchanged, but data access was not ruled out.
Unauthenticated RCE via Erlang term parser in hexpm
The hexpm request-body parser for application/vnd.hex+erlang deserializes untrusted Erlang external term format before routing and authentication. An unauthenticated remote attacker can POST a crafted body to any route and reach an apply/3 call that runs operating-system commands. This affects the hex.pm service and hexpm/hexpm builds in the stated ranges. It was actively exploited against hex.pm on 2026-11-23.
What to do: Update hex.pm to the 2026-11-23 fix and hexpm/hexpm to commit 379b0a29bcc95164249f38ad7d772a37a8ff9533. No workaround is stated.
| Product | Affected | Fixed in |
|---|---|---|
| hexpm hex.pm | from 2016-02-23 before 2026-11-23 | 2026-11-23 |
| hexpm | from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533 | 379b0a29bcc95164249f38ad7d772a37a8ff9533 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Deserialization of Untrusted Data vulnerability in the application/vnd.hex+erlang request body parser in hexpm hexpm allows an unauthenticated remote attacker to execute operating system commands via a crafted Erlang external term format request body. This vulnerability was actively exploited against the hex.pm service on 2026-11-23. HexpmWeb.ErlangFormat.decode/1 in lib/hexpm_web/erlang_format.ex decodes the body with Plug.Crypto.non_executable_binary_to_term/2, which accepts maps that have a __struct__ key. HexpmWeb.PlugParser.parse/5 returns the decoded term as the request params. The parser runs in the endpoint before routing and authentication, so a POST to any route reaches it. Elixir dispatches protocols on the __struct__ key, so the client selects which Inspect and Enumerable implementations run when error reporting inspects the params. A chain through Ecto.Query.DynamicExpr and DBConnection.Stream reaches an apply/3 call on a {module, function, args} tuple taken from the request body. This issue affects hex.pm: from 2016-02-23 before 2026-11-23; hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533.
CVE-2026-129514 allowed unauthenticated command execution; packages were unchanged, but data access was not ruled out.
The unauthenticated CVE-2026-129514, scored 10.0, was blocked within 20 minutes; Hex found no tampered packages but cannot rule out user-data access.
The supplied SOCRadar page is site navigation and does not describe the flaw, versions or attack.
Today 1.7K readers · 2.4K views · 323 reads · all time 223K views