An attacker executed operating‑system commands on six production servers of the Hex.pm package registry on Monday, compromising the service that Elixir and Erlang developers rely on for fetching dependencies. The intrusion was made possible by a remote‑code‑execution vulnerability that had existed in the registry’s code since February 23 2016 and was assigned CVE‑2026‑129514 with a maximum CVSS score of 10.0. The flaw lay in the parser Hex.pm used to read request bodies encoded in an Erlang data format; because the parser ran before routing and authentication, an unauthenticated POST request to any endpoint could trigger the vulnerable code path.
The vulnerable decoder accepted maps containing a struct key, allowing a crafted request body to masquerade as any Elixir struct loaded by the application. Although the decoding function blocked dangerous terms such as functions, it failed to reject these struct‑like maps after a safety check was removed on February 23 2016. When the attacker sent a specially constructed struct, the request caused an error that was later inspected by the Ecto and DBConnection libraries. This inspection led to a point where the server invoked a function of the attacker’s choosing, which then executed operating‑system commands with the privileges of the registry’s service account.
Load‑balancer logs captured 69 exploit attempts between 18:16 UTC and 18:29 UTC on the day of the attack, all originating from two IP addresses. Files created by the exploit appeared on the six affected web servers, in one instance as quickly as three milliseconds after the request was received. Three of the servers joined the attack mid‑stream when a restart brought up machines still running the vulnerable build. By 18:31 UTC the Hex.pm team had deployed a patched build to every server, causing the decoder to reject any term containing a map with a struct key.
The team’s post‑mortem analysis compared every database table against a snapshot taken two minutes before the first malicious request. The comparison traced all differences to legitimate activity. During the attack window 23 package releases were published; each matched the audit log, and no older releases were altered. Files written to the registry that evening also corresponded to the database records. However, database reads, shell commands, environment variable accesses, and direct file reads were not logged, leaving a gap that prevents the team from definitively ruling out that the attacker accessed stored data. The database contains email addresses, password hashes, API‑key hashes, two‑factor authentication secrets, session data, and private packages, any of which could have been read without leaving a trace.
In response to the breach, Hex.pm invalidated all session‑signing keys and access‑token keys, forcing every account holder to log in again. The maintainers also replaced every credential that could have been exposed, except for the registry signing key, which remains unreplaced. API keys were deemed safe to retain because they are random 128‑bit values stored only as HMAC‑SHA256 hashes, making brute‑force attacks impractical. Passwords, hashed with bcrypt, still require users to change them, especially if they are weak. Users who never created a Hex.pm account and only fetch public packages have no action required. Those who signed up via GitHub must re‑authenticate their clients and reset two‑factor authentication if it was enabled.
Until a new client version is released, Hex.pm advises developers to fetch packages exclusively from the official repo.hex.pm endpoint and to avoid third‑party mirrors. The registry signing key, which was among the credentials potentially read by the attacker, has not yet been rotated, representing a lingering risk for any services that rely on it for package verification.
The breach was reported to the Swedish Data Protection Authority, the United States Cybersecurity and Infrastructure Security Agency (CISA), and the European Union Agency for Cybersecurity (ENISA) on Monday night. The incident report notes that the attacker’s activity from the two IP addresses dates back to late the previous week, suggesting the adversary built a local copy of Hex.pm for testing before launching the live exploit. No evidence has been found linking the attack to a specific individual or group, and no new accounts, cloud keys, or leftover shells were detected in the audit logs.
Coinciding with the Hex.pm incident, maintainers of three widely used Elixir libraries—Ash, DBConnection, and Flop—disclosed separate vulnerabilities involving structs built from untrusted data. Each flaw requires distinct conditions to be exploitable, such as specific pagination cursor usage or missing signing secrets, and fixed versions were released simultaneously. These disclosures are unrelated to the Hex.pm breach but highlight a broader concern around handling untrusted struct data in the Elixir ecosystem.
Organizations that operate their own copy of the Hex.pm registry are also affected, as the vulnerable code resides in the server component rather than the client. They must apply the same patch that rejects maps with a struct key to secure their installations. For developers and security teams reading this report, the practical steps are to log out of all sessions, rotate passwords, verify two‑factor authentication settings, and, where possible, limit package fetching to the official repository until the registry signing key is rotated and a patched client is available. This incident underscores the importance of rigorous code review for parsers handling untrusted data and the need for rapid patch deployment when critical vulnerabilities are discovered.
A new technique called Weight2Shell has been disclosed by cybersecurity researchers, which allows artificial intelligence (AI) models to produce different behavior on different machines, eve…
Season 2: Legacy for Gears of War: E‑Day launches tomorrow, marking the franchise’s twentieth anniversary and offering a wave of new content for both veteran players and newcomers. The updat…
Hela: of Mice & Magic is set to launch on December 1, 2026 for Xbox Series X|S, and the title will be available on day one through Xbox Game Pass. The game presents an open‑world adventure i…