Sign up to CovertSwarm Threat Alerts.
Receive our Threat Alerts in your inbox as soon as they're available.
CovertSwarm Threat Alert
An attacker exploited CVE-2026-129514, a maximum-severity flaw in the hex.pm registry server code, on November 23, 2026 to run operating system commands on six production servers. The service is patched, and account holders should change their password, reset two-factor authentication and log back in.
Subscribe to receive daily Threat Alerts in your inbox.
An attacker exploited a maximum-severity vulnerability in the hex.pm registry server code, CVE-2026-129514, to run operating system commands on six Hex.pm production servers. Hex.pm is the package registry Elixir and Erlang developers fetch their dependencies from. The flaw had been in the registry’s code since February 2016.
It sat in the parser hex.pm used to read request bodies sent in an Erlang data format. That parser ran before routing and authentication. As a result, an unauthenticated POST request to any address on the site could reach it.
The decoding function was meant to be safe and blocked dangerous terms such as functions. But it accepted maps with a __struct__ key, which let a request body pose as any Elixir struct the application had loaded. The check that would have prevented this was removed from the code on February 23, 2016.
A crafted struct didn’t run anything by itself. It caused an error, and the error reporting code then inspected the struct. That inspection, via the Ecto and DBConnection database libraries, led to the server calling a function of the attacker’s choice. That function ran operating system commands.
Separately, maintainers of three widely used Elixir libraries disclosed their own flaws involving structs built from untrusted data and shipped fixes on November 24, 2026. These are separate disclosures and not further attacks on Hex.pm:
The vulnerability is tracked as CVE-2026-129514.
It’s a maximum-severity vulnerability.
The attacker’s operating system commands ran with the permissions of the registry’s service account.
Package integrity appears intact. The Hex.pm team compared each database table against a copy taken two minutes before the first exploit request and traced each difference to normal activity.
The 23 releases published during the attack match the audit log, and no older release was changed. The package and registry files written that evening match the database records. The team found no leftover shells and no new accounts or cloud keys in the audit logs.
Database reads, shell commands, environment variables and direct reads from file storage weren’t logged, though. So the team can’t rule out that the attacker accessed data stored in the database. That database holds email addresses, password hashes, API key hashes, two-factor authentication secrets and session data.
Private packages could also have been read without leaving a trace. The registry signing key was among the credentials the attacker could have read, and it hasn’t yet been replaced.
An attacker exploited CVE-2026-129514 on Monday, November 23, 2026. Hex.pm’s incident report records 69 exploit requests between 18:16 and 18:29 UTC that day, all from two IP addresses.
Files created by the exploit appeared on six web servers, in one case 3 milliseconds after the request. Three of those servers joined mid-attack, when a restart brought up machines still running the vulnerable build. The Hex.pm team had all servers on a patched build within about 15 minutes of the first malicious request.
Activity from the two addresses going back to late the previous week suggests the attacker built a local copy of hex.pm to test against. Who was behind the attack is unknown, and exploitation before November 23 hasn’t been established.
hex.pm (hexpm server code):
The hex.pm service itself was patched on November 23, 2026, and all servers were running the fix by 18:31 UTC. The fix commit makes the decoder reject any term containing a map with a __struct__ key.
Related library flaws, which are separate disclosures:
3.31.3 up to, but not including, 3.38.0. Fixed in 3.38.01.1.0 up to, but not including, 2.10.3. Fixed in 2.10.30.8.0, each branch before its fix. Fixed in 0.26.7, 0.27.3, 0.28.1 and 0.29.2All hex.pm users have been logged out because the maintainers replaced the keys that sign sessions and access tokens. Account holders should:
mix hex.user auth or, for Erlang projects, rebar3 hex user auth.Further steps:
Developers who never created a hex.pm account and only fetch public packages have nothing to reset. Those who signed up with GitHub should still log back in to their clients, and reset two-factor authentication if enabled.
According to the maintainers, API keys don’t need replacing, since they’re random 128-bit values stored only as HMAC-SHA256 hashes. Passwords are hashed with bcrypt, which slows guessing but doesn’t stop it for weak passwords, so changing them still matters.