Skip to content

Hex.pm RCE breach: CVSS 10.0 CVE-2026-129514 hit 6 servers

An unauthenticated parser flaw in Hex.pm let attackers run commands on six web servers. All Elixir/Erlang developers must reset passwords and 2FA.

Published 3 min read

Hex.pm — the package registry Elixir and Erlang developers pull dependencies from — was breached on 23 November 2026 through an unauthenticated flaw that ended in command execution on six of its web servers. The registry's incident report is the primary source; the flaw is tracked as CVE-2026-129514, CVSS 10.0.

What the bug does

Hex.pm decoded unauthenticated request bodies in Erlang term format before routing and authentication. The decoder accepted maps carrying a __struct__ key, letting a crafted body pose as any loaded Elixir struct — a deserialization path that chained to OS command execution as the BEAM user. A safety check that would have blocked this was removed on 23 February 2016, per the GitHub advisory, leaving the registry exposed for nearly a decade.

Timeline and impact

From the incident report (times UTC, 23 November):

  • 18:16–18:29 — 69 malicious requests from two addresses; files appeared on six web servers, one only 3 ms after its request.
  • 18:27–18:33 — a firewall rule took effect.
  • 18:30–18:31 — servers replaced with a patched build. The fix commit makes the decoder reject any term containing a map with a __struct__ key, returning a 400.
  • 22:58–23:26 — breach reported to Sweden's IMY, CISA and ENISA.

Hex.pm found no evidence of modified packages, no leftover shells and no new accounts. But it is explicit about what it cannot rule out: "we cannot rule out that the attacker accessed data stored in the database, including email addresses, password hashes, API key hashes, 2FA secrets, sessions, and audit logs." The registry signing key was not immediately replaced; a new client with a new signing system is due within days.

What to do today

  1. Change your Hex.pm password at hex.pm.
  2. Reset 2FA at hex.pm/dashboard/security and store the new recovery codes — the incident report lists 2FA secrets among the data that may have been read.
  3. Treat any API keys as exposed and rotate them.
  4. Fetch packages only from repo.hex.pm, not mirrors, until the new signing system ships; then run mix local.hex --force (and update rebar3 or Gleam if used).

Context

This is the second registry-server compromise in today's news, alongside WordPress.org blocking six backdoored WP Connect plugins before release. The pattern is the same shape as recent npm and package-registry incidents: the ecosystem's trust root is a higher-value target than any single package. The reassuring detail here is what held — no package tampering and a 15-minute containment — against a flaw that scored a perfect 10 and sat in the codebase since 2016.

Related stories