An attacker ran operating system commands on six production servers of Hex.pm, the package registry for the Elixir and Erlang ecosystems, by exploiting CVE-2026-129514, a flaw rated CVSS 10.0. The attack took place on Monday, and maintainers had every server on a patched build within about 15 minutes of the first malicious request.
How CVE-2026-129514 Reached Remote Code Execution
The flaw had been in the registry’s code since February 2016. It sat in the parser for request bodies in an Erlang data format. Because the parser ran before routing and authentication, an unauthenticated POST request to any address could reach it.
The decoding function blocked dangerous terms such as functions, but it accepted maps containing a __struct__ key. That gap allowed the attacker to run commands on the servers.
A Ten-Year-Old Bug With a 15-Minute Fix
Maintainers moved quickly once the first malicious request arrived, putting all servers on a patched build in about 15 minutes. Checks found no sign that any package was changed.
What May Have Been Exposed to the Attacker
Hex.pm cannot rule out that the attacker read account data. That data includes email addresses, password hashes and two-factor authentication secrets. The registry signing key has not yet been replaced, and it could have been read.
Session and Token Keys Were Replaced
The maintainers replaced the session and access-token signing keys, which logged out every account holder. API keys need no rotation, since they are random 128-bit values stored as HMAC-SHA256 hashes. Passwords use bcrypt, but changing them still matters. Users with two-factor authentication enabled should reset it.
The timing was tight. The attack happened on Monday, and the first malicious request was followed by a patched build on every server in roughly a quarter of an hour. The attacker needed no credentials and no valid account, since the vulnerable code ran before authentication. A request body parser that runs before routing turns every address on the server into an entry point, which is why a POST to any URL was enough.
Guidance for Elixir and Erlang Developers Until a New Client Ships
Until a new client is released, developers should fetch packages only from repo.hex.pm and avoid mirrors. The guidance reflects the unreplaced signing key: with the key potentially exposed, signatures from mirrors cannot be treated with the usual confidence.
Why the Unreplaced Signing Key Is the Open Risk
No package was found altered, which lowers the immediate supply-chain risk. The signing key is the remaining concern, because anyone who held it could in principle produce signed content. Hex.pm has said a new client will ship, but the report does not say when the signing key will be replaced.
Analysis: Package Registries Concentrate Risk
Package registries sit at a chokepoint in the software supply chain, since a compromise of a registry can reach every project that installs from it. The Hex.pm incident did not, by the maintainers’ account, result in tampered packages, but it shows how a single flaw in pre-authentication code can hand an attacker command execution on production servers.
The bug’s age is also instructive. A flaw present for more than ten years in code handling untrusted input went unnoticed until someone used it. Security teams have noted a similar pattern in other ecosystems, where deserialization of attacker-controlled data is a recurring source of critical flaws. The maintainers’ response, with fast patching, key replacement and clear instructions, limited the exposure, though the user-facing steps of resetting two-factor authentication and changing passwords place work on the community for a breach whose data impact is still unconfirmed.
Hex.pm has told users to expect a new client release, and until it ships, the guidance to fetch only from repo.hex.pm stays in force.
