• Sources: primary
  • Summary: On 2026-11-23 between 18:16 and 18:29 UTC, an attacker sent 69 requests whose Erlang term bodies held fake structs that chained Plug, Ecto and DBConnection code into OS command execution on six hex.pm web servers. Hex found no package or database changes but cannot rule out database reads of emails, password hashes, API key hashes, 2FA secrets and sessions, so it rotated all server credentials and session keys and asks users to change passwords and reset 2FA. The registry signing key is not yet rotated, so Hex says to fetch only from repo.hex.pm until new clients with a rotatable signing system ship, and the same bug class in Ash is fixed in ash 3.38.0 as CVE-2026-124283.
  • Why it matters: Elixir, Erlang and Gleam teams should reset Hex credentials, avoid mirrors until the new Hex client ships, and audit any endpoint that decodes Erlang terms from unauthenticated input.
  • Background: Hex is the package registry for the BEAM ecosystem, used by mix, rebar3 and Gleam. Erlang's binary_to_term decodes the External Term Format, and its safe mode blocks new atoms and functions but not maps. An Elixir struct is just a map with a __struct__ key, and protocols such as Inspect and Enumerable dispatch on that key, so attacker-built data can choose which library code runs, much like gadget chains in Java deserialization.
  • Follow-up: New Hex client releases with registry signing key rotation, expected in the coming days.