Attackers Ran Commands on Six Hex.pm Registry Servers Through a Decade-Old Decoder Bug
An unauthenticated attacker ran commands on six Hex.pm web servers on November 23 via CVE-2026-129514. Hex patched in about 20 minutes and cannot rule out data reads.
An unauthenticated attacker ran operating system commands on six of Hex.pm's web servers on Monday afternoon, and the Elixir ecosystem's default package registry still cannot prove whether account data was read.
Hex disclosed that the attacker sent 69 malicious requests between 18:16 and 18:29 UTC on November 23. The team added a firewall rule at 18:27 and had every web server on a patched build by 18:31, about 20 minutes after the first exploit request. A security report describing the same bug arrived by email at 19:07.
Hex found no evidence of unauthorized package modifications, database writes, or lasting access. Database reads are not logged, so the team cannot rule out that the attacker saw email addresses, password hashes, API key hashes, two-factor secrets, sessions, and audit logs. It reported a personal data breach to Sweden's IMY, notified CISA, and submitted an early warning to ENISA.
The hole is tracked as CVE-2026-129514, scored 10.0. Hex.pm decoded unauthenticated request bodies in Erlang term format with a decoder that blocked most dangerous terms but still allowed struct values. Chained together, those fake structs became remote command execution. The decoder's safety check had been gone since February 23, 2016. The patch now rejects any term containing a map with a __struct__ key.
The same class of bug turned up in Ash, which Hex reported. That project shipped a fix in ash 3.38.0 as CVE-2026-124283. Hex is also hardening plug, ecto, and db_connection so a single decoder check is not the only wall.
Package registries have already been a live attack surface this year, from poisoned Rust crates to npm worms. Hex rotated storage, CDN, email, database, session, and token-signing credentials, which logged everyone out of hex.pm and Hex clients. Until a new registry signing client ships, Hex says packages should be fetched only from repo.hex.pm, not third-party mirrors. Account holders are asked to change passwords and reset authenticator apps.
Some offers on this page may be paid placements or contain affiliate links.
Cyberpresso: daily cyber & AI brief
Free daily newsletter, read in 5 minutes.
Subscribe free