Hackers Exploit CVSS 10.0 Hex.pm RCE Flaw to Compromise Six Package Registry Servers

Attackers leveraged a critical remote code execution vulnerability in Hex.pm, the official package registry for Elixir and Erlang developers, to gain operating system command execution on six production servers. The flaw, tracked as CVE-2026-129514 with a maximum CVSS score of 10.0, had existed in the codebase since February 2016 and allowed unauthenticated requests to trigger arbitrary code execution through unsafe deserialization of Erlang data structures. Maintainers deployed patches across all servers within 15 minutes of the initial malicious requests on November 25, 2026, and confirmed that no packages were altered during the incident. Although database reads and certain file operations were not logged, the team could not rule out potential access to email addresses, password hashes, and two-factor authentication secrets. Related vulnerabilities were disclosed in the Ash, db_connection, and Flop libraries, each requiring specific conditions for exploitation. All users have been logged out and advised to reset passwords and two-factor authentication settings.

The Hacker NewsTranslated from English

Read at source

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.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Supply Chain & OSS

Critical RubyGems.org Flaw Allowed Attacker-Controlled Regex in Gem Metadata Leading to Potential RCE
Q-Dir and DesktopOK Utilities Compromised to Deliver Python RAT via Official Channels
Supply Chain Attack Trojanizes Official Q-Dir and DesktopOK Installers to Deploy Python RAT