RETRO

News · AI and code

Hex.pm broken into through a ten-out-of-ten hole

The hole was more than ten years old. Hex.pm, the package repository of the Erlang and Elixir world (Gleam and rebar3 users depend on it too), announced an attack on its own blog on 24 November. On the evening of 23 November, between 18:16 and 18:29 UTC, 69 malicious requests came in, and the attacker's commands ran on six servers. The trouble was in Erlang term bodies decoded before authentication. Forged Elixir structs passed through a chain of calls and ended in remote code execution (RCE). According to the git history, the security check that prevented this was removed on 23 February 2016. The security advisory on GitHub gives the flaw, CVE-2026-129514, a 10 out of 10 on the CVSS 4.0 scale. About 15 minutes passed between the first exploit request and the patched release.

Hex says there is no sign that packages were tampered with, that the database was altered or that any persistent access was set up. But since database reads aren't logged, it can't guarantee that emails, bcrypt password hashes and 2FA secrets weren't read. The keys have been rotated, so everyone has been logged out. What you need to do is clear. Change your password, set up 2FA again, and update the Hex client when the new one comes out. Until then, pull packages only from repo.hex.pm.

Sources

Contents · Issue 03 · November 2026