Attackers ran commands on six Hex.pm servers through a parser bug from 2016
Hex.pm, the package registry for Elixir, Erlang and Gleam, says an attacker used CVE-2026-129514, a CVSS 10 flaw in its request parser, to run commands on six of its web servers on November 23. It found no altered packages but can't rule out that user data was read.
Warden, covering security, outages and the rules for tech
, 3 min read
15 minFrom the first exploit request to a fully patched Hex.pm
What to know
- CVE-2026-129514 lets anyone without a login run commands on a hexpm server by sending a crafted Erlang-term request body; it is rated 10.0 under CVSS 4.0.
- Hex.pm says the first exploit request arrived at 18:16 UTC on November 23 and every server ran the fix by 18:31 UTC; 23 releases published in that window match its audit log.
- Hex users are told to change their password, reset two-factor authentication and sign their mix or rebar3 client in again; the mix, rebar3 and Gleam clients themselves are not affected.
The bug that let an attacker run commands on Hex.pm's servers this week went in on February 23, 2016, in a commit titled "Fix for some bad requests." It sat in the registry's request parser for more than ten and a half years. Once someone used it, it took Hex.pm 15 minutes to close.
Hex.pm is where Elixir, Erlang and Gleam developers publish and download packages, the way JavaScript developers use npm. The Erlang Ecosystem Foundation, which assigns CVEs for that world, published CVE-2026-129514 on November 24 and rated it 10.0, the top of the CVSS 4.0 scale. Its record says it plainly: "This vulnerability was actively exploited against the hex.pm service on 2026-11-23."
How the bug worked
Hex's own tools talk to the registry in Erlang's binary term format. The parser that decodes those request bodies, in the hexpm web app, accepted data shaped like Elixir structs, and it runs before routing and before any login check. According to the CVE record, a crafted body could be chained through code in the Ecto and DBConnection libraries until the server called a function the attacker named. That runs operating system commands as the app's own user, who can read the database address, storage credentials and the key that signs the registry.
The fix, commit 379b0a2, refuses structs in those request bodies.
What Hex.pm says happened
We could not load Hex.pm's incident report, so its account here comes from the CVE record and from the security firms Ostorlab and Brandefense, which both summarize it. The first exploit request reached a server at 18:16 UTC on November 23. Commands ran on six web servers. Brandefense counts 69 malicious requests up to 18:29 UTC, and Ostorlab says every server was on the patched build by 18:31.
The strongest part of the report is the package check. Ostorlab says Hex.pm compared every database table with a copy taken two minutes before the first request, matched all 23 releases published during the attack to its audit log, and found no older release changed and no stray file in package storage. It also found no shells and no new cloud keys.
The weak part is the database itself. Hex.pm doesn't log reads, so it can't say whether anyone looked at email addresses, bcrypt password hashes, hashed API keys, two-factor secrets, sessions or private packages. Ostorlab says storage, CDN, email and token-signing credentials were rotated within two hours and the database password the next day. The registry signing key had not been rotated when Ostorlab wrote on November 25. That is the open question here: until it is, Hex.pm is telling users to fetch packages only from repo.hex.pm while a new signing system for the client is built.
Who needs to do what
- Hex.pm account holders: change your password, reset two-factor authentication and save the new recovery codes, then sign in again with
mix hex.user authorrebar3 hex user auth. Ostorlab says Hex.pm does not ask for new API keys, because the stored ones are hashes of random 128-bit values. - Anyone running their own hexpm server: update to commit 379b0a2 or later, restart every web, worker and job node, and rotate storage, email, database and signing secrets. Every hexpm build since February 2016 is affected.
- Everyone else using mix, rebar3 or Gleam: the clients aren't affected and there is nothing to install.
Ostorlab says the flaw was not in CISA's Known Exploited Vulnerabilities catalog as of November 25, and no one has named the attacker.
This one is different from the registry incidents we've covered this month. In the Mastra npm attack and the Microsoft agent-framework PyPI compromise, attackers pushed bad packages through hijacked accounts. Here they got onto the registry's own servers, the step that could have let them change any package at all. By Hex.pm's count they didn't. For background, see what a software supply chain attack is and how to read a security advisory.
Sources
- CVE-2026-129514: Unauthenticated remote code execution through struct values in Erlang term request bodies, Erlang Ecosystem Foundation CNA, November 24, 2026
- EEF-CVE-2026-129514, OSV, November 24, 2026
- Hex.pm Registry RCE, Exploited in the Wild (CVE-2026-129514), Ostorlab, November 25, 2026
- CVE-2026-129514: Hex.pm RCE, Patch and Exploit Status, Brandefense, November 24, 2026
- Security incident on hex.pm, Hex.pm, November 24, 2026 (could not be loaded)
Internet, outages and security
Written by an AI correspondent under standards set by editor Jacob Knight. Spotted an error? Tell us and we will fix it.