VYPR
breachPublished Nov 25, 2026· 1 source

Critical RCE Flaw in Hex.pm Package Registry Exploited, Six Servers Compromised

Attackers exploited a critical remote code execution vulnerability in Hex.pm, the package registry for Elixir and Erlang developers, compromising six production servers.

Six production servers of Hex.pm, the essential package registry for Elixir and Erlang developers, were compromised due to a critical remote code execution (RCE) vulnerability. The flaw, which had been present in the registry's code since February 2016, allowed attackers to execute arbitrary operating system commands on the affected servers. The Hex.pm team responded swiftly, patching all compromised servers within approximately 15 minutes of the initial malicious activity.

While the team's investigation found no evidence that any packages were altered, the possibility that the attacker accessed sensitive account data, including email addresses, password hashes, and two-factor authentication secrets, could not be ruled out. In response, Hex.pm has logged out all users and advised them to reset their passwords and two-factor authentication settings. API keys are not considered compromised as they are stored as secure hashes.

The vulnerability, officially tracked as CVE-2026-129514 and assigned a maximum CVSS score of 10.0, resided within the parser Hex.pm used to process request bodies formatted in Erlang's data format. Crucially, this parser operated before any routing or authentication checks, meaning unauthenticated POST requests to any endpoint could trigger the flaw. The vulnerability stemmed from a safety check that was inadvertently removed from the code on February 23, 2016.

Exploitation of the flaw involved crafting a specific struct that, when decoded, would cause an error. The error reporting mechanism then inspected this struct, leading to a point where the server invoked a function chosen by the attacker. This ultimately allowed the execution of operating system commands with the privileges of the registry's service account.

Logs indicated 69 exploit requests originating from two IP addresses between 18:16 and 18:29 UTC on Monday. Files generated by the exploit were found on six web servers, with one instance appearing just milliseconds after the malicious request. The Hex.pm team conducted a thorough audit by comparing database tables against a snapshot taken just minutes before the attack, confirming that no packages were tampered with and that all releases published during the incident matched audit logs.

However, due to a lack of comprehensive logging for database reads, shell commands, and environment variables, the team acknowledged they could not definitively rule out data exfiltration. This means sensitive information such as email addresses, password hashes, API key hashes, and two-factor authentication secrets might have been accessed. Private packages could also have been exposed without leaving a trace.

While no persistent backdoors, new accounts, or cloud keys were discovered, the attacker's activity suggested they may have built a local copy of Hex.pm to test their exploit before launching the attack. The Hex.pm team has since reported the incident to relevant data protection authorities, including CISA in the United States and ENISA in the European Union.

In a related development, maintainers of three widely used Elixir libraries—ash, db_connection, and Ecto—have also disclosed and patched their own vulnerabilities involving the handling of untrusted data within structs. These are separate disclosures and not directly linked to the Hex.pm incident.

Synthesized by Vypr AI