All cyber news

2026-11-25 · Active exploitation / software supply chain · Hex.pm / The Hacker News

Hex.pm CVSS 10.0 RCE exploited on six registry servers

Attackers exploited a maximum-severity flaw in Hex.pm, the package registry used by Elixir and Erlang developers, to run operating-system commands on six production servers on 23 November 2026. The bug, CVE-2026-129514 with a CVSS score of 10.0, had been present in the registry's request parser since February 2016. The compromise was in the registry itself, not in a developer's client — a supply-chain warning for every team that pulls dependencies from a shared source.

What happened

Hex.pm decoded request bodies in an Erlang data format before routing and authentication, so an unauthenticated POST to any address could reach the parser. A crafted term used a map with a __struct__ key to impersonate any loaded Elixir struct. The struct did nothing on its own, but error-reporting code inspected it through the Ecto and DBConnection database libraries and reached a point where the server called an attacker-chosen function, executing commands with the registry service account's privileges. Load balancer logs recorded 69 exploit requests from two addresses in a 13-minute window; files created by the exploit appeared on six web servers. Every server was on a patched build within about 15 minutes of the first request.

The maintainers compared the database with a copy taken two minutes before the attack and found no changed packages or releases. However, shell commands, database reads and file-storage access were not logged, so access to email addresses, password hashes, two-factor secrets, API-key hashes, session data or private packages cannot be ruled out. All accounts were logged out and signing keys rotated. The registry signing key had not yet been replaced at the time of reporting. Organisations that self-host a Hex-compatible registry must patch; developers who only fetch public packages have nothing to reset.

Three practical actions

  • If you have a Hex.pm account, change the password, re-enrol two-factor authentication with new recovery codes, and re-authenticate clients with mix hex.user auth or rebar3 hex user auth. Treat email about Hex with suspicion until signing keys are replaced.
  • Until the updated client ships, fetch packages only from repo.hex.pm and avoid third-party mirrors. Verify package integrity when the new registry signing system lands rather than trusting the previous key.
  • If you self-host a registry, deploy the fix and review every parser that deserializes untrusted data before authentication. Put build and package infrastructure in the SOC's asset inventory with an emergency patch SLA.

Our managed SOC and supply-chain security team can review your dependency pipeline and build infrastructure. Talk to us.

Reporting: Hex.pm incident report; The Hacker News.

Need help with this threat?

Our SOC and incident-response team can assess your exposure and build detections.

Talk to an expert
Primary source