An attacker executed operating system commands on six production servers of Hex.pm, the package registry used by Elixir and Erlang developers to fetch dependencies. The exploited flaw, identified as CVE-2026-129514 with a CVSS score of 10.0, had remained in the registry's code since February 23, 2016.
The vulnerability resided in the parser responsible for reading request bodies in an Erlang data format. Because the parser operated before routing and authentication, any unauthenticated POST request could reach it. Although the decoder blocked dangerous terms such as functions, it accepted maps containing a __struct__ key, enabling a request body to impersonate any loaded Elixir struct.
Once the crafted struct triggered an error, the error-reporting code inspected it through the Ecto and DBConnection libraries, ultimately invoking a function chosen by the attacker that executed operating system commands under the service account's privileges.
The Hex.pm team replaced session and access token signing keys, forcing every account holder to log out. Users are instructed to change their hex.pm password, reset two-factor authentication, and re-authenticate clients using mix hex.user auth or rebar3 hex user auth. API keys do not require replacement because they are stored only as HMAC-SHA256 hashes.
Load balancer logs recorded 69 exploit requests between 18:16 and 18:29 UTC on Monday from two IP addresses. Three servers joined the attack after restarts brought vulnerable builds back online. No packages were modified, and all 23 releases published during the window match the audit log.
Related security issues were disclosed in three widely used libraries: Ash (CVE-2026-124283), db_connection (CVE-2026-133555), and Flop (CVE-2026-130411). Each requires specific conditions, such as client-supplied cursors or default signing secrets, to be exploitable.


