Attackers exploited a maximum-severity remote code execution flaw in Hex.pm and ran operating system commands on six of the package registry’s production web servers, the service’s maintainers disclosed on November 24. The incident occurred a day earlier, when an unauthenticated request to the registry triggered a vulnerability that had been present in its code for more than a decade.

Hex said the attacker sent 69 malicious requests between 18:16 and 18:29 UTC on November 23. The requests affected six web servers. The team began blocking the traffic at 18:27 UTC and had replaced the registry servers with a patched build by 18:31. It said it found no evidence that packages were modified, database records were changed or the attacker retained access to its systems.

The vulnerability, tracked as CVE-2026-129514, carries a CVSS score of 10.0. Hex’s incident report says the registry parsed unauthenticated Erlang-format request bodies before routing and authentication. Although the decoder blocked several dangerous terms, it allowed attacker-supplied values that looked like Elixir structs. A chain involving request handling, error reporting and inspection routines in Ecto and DBConnection eventually caused the server to call an attacker-selected function and execute operating system commands under the registry service account.

Hex traced the vulnerable code path to a safety check removed in February 2016. The maintainers said the attacker’s commands could read credentials available to the compromised servers, so they replaced storage, CDN, email and database credentials, along with the keys used to sign sessions and access tokens. The change logged users out of hex.pm and their Hex clients.

READ
myColorado App Breach May Affect Up to 150,000 Users

The registry has not been able to rule out database access because it does not log database reads. Information stored there includes email addresses, bcrypt password hashes, API key hashes, two-factor authentication secrets, session data and audit logs. Hex also said it could not completely exclude access to private packages or private documentation because some storage reads are not logged. These are possible exposures, not confirmed thefts.

Hex said its checks found no unexpected package-storage files and no evidence of unauthorized package changes. The 23 package releases published during the attack matched the registry’s audit log. The team also said API keys do not need to be replaced because they are random 128-bit values stored as HMAC-SHA256 hashes. It advised account holders to change their passwords, reset two-factor authentication and save their new recovery codes.

Developers have also been told to fetch packages only from repo.hex.pm and avoid third-party mirrors until new Hex client releases arrive with a registry signing system that supports key rotation. The existing registry signing key had not been replaced in the November 24 incident update. Hex said users should update the Hex client when the new release becomes available, including the relevant tools used by Elixir, Erlang and Gleam projects.

The incident report also describes a related flaw in the Ash framework, tracked as CVE-2026-124283, which could allow command execution or SQL injection through crafted keyset-pagination cursors. The Ash team released version 3.38.0 to address that issue. Hex’s disclosure follows other software supply-chain incidents covered by Abijita, including a backdoor inserted into six WordPress plugins and a Radware incident involving exposed cloud log-export credentials.


Buy ExpressVPN with PayPal or Credit Card
READ
Germany Raises Cyber Threat Rating as AI Speeds Attacks

Hex published the technical details and remediation guidance in its November 24 security incident report. The vulnerability is also documented in the project’s GitHub security advisory. The Hacker News reported the compromise on November 25, citing the maintainers’ findings and the affected server count.

Advertisement