Download Privacy Needle App

Type to search

Cybersecurity

Hex.pm Package Registry Compromised via Critical CVSS 10.0 RCE Flaw

Share
A dark server room with glowing blue lights on data centre racks representing a package registry infrastructure.

Maintainers of Hex.pm, the central package registry for the Elixir and Erlang programming languages, have patched a critical remote code execution (RCE) vulnerability that was exploited to compromise six production servers on Monday.

The flaw, tracked as CVE-2026-129514, carries the maximum CVSS severity score of 10.0. It allowed unauthenticated attackers to execute operating system commands with the permissions of the registry’s service account. The Hex.pm team confirmed that the vulnerability had existed in the registry’s code since February 2016.

According to an incident report from the registry maintainers, the attack involved 69 malicious requests originating from two IP addresses. While the maintainers deployed a patch to all production servers within 15 minutes of the first request, they confirmed that files created by the exploit were found on six web servers.

Potential Data Exposure and User Security

An internal audit found no evidence that any packages were altered during the intrusion. The team verified that the 23 releases published during the attack window matched the official audit logs and that no historical releases were modified.

However, the Hex.pm team warned that they cannot rule out the possibility that the attackers accessed the registry’s database. This database contains sensitive information, including email addresses, password hashes, API key hashes, and two-factor authentication (2FA) secrets. Private packages may also have been read without leaving a trace in the logs.

As a result, all Hex.pm users have been logged out, and session signing keys have been replaced. The maintainers recommend that all account holders take the following security measures:

  • Change their Hex.pm password immediately.
  • Reset two-factor authentication by setting up a new authenticator and storing new recovery codes.
  • Re-authenticate local clients using mix hex.user auth or rebar3 hex user auth.
  • Monitor for phishing attempts, as exposed email addresses may be targeted.

Technical Origins of the Flaw

The vulnerability resided in the parser Hex.pm used to process Erlang data format request bodies. This parser ran before authentication or routing, meaning an unauthenticated POST request could reach the vulnerable code. While the decoder was designed to block dangerous functions, it incorrectly accepted maps with a __struct__ key, allowing attackers to pose as Elixir structs.

The incident has also prompted related security disclosures in three widely used Elixir libraries. Maintainers of Ash, DBConnection, and Flop released patches yesterday for separate vulnerabilities involving structs built from untrusted data. These are distinct issues from the Hex.pm breach but follow a similar logic regarding how data is deserialised.

The Hex.pm team has already replaced most credentials the attacker could have accessed, with the exception of the registry signing key, which is scheduled for replacement. The breach has been reported to the Swedish data protection authority, CISA in the United States, and ENISA in the European Union.

Watch Our Latest Video
Stay ahead with expert insights on privacy, cybersecurity, artificial intelligence, data protection and compliance.
Privacy Needle AI | AI DPO Assistant & NDPA Compliance Software
Published: November 2, 2026
Daily Privacy News
Cybersecurity Updates
Data Protection Tips
GDPR & NDPA Explained
Tags:
Ikeh James Certified Data Protection Officer (CDPO) | NDPC-Accredited

Ikeh James Ifeanyichukwu is a Certified Data Protection Officer (CDPO) accredited by the Institute of Information Management (IIM) in collaboration with the Nigeria Data Protection Commission (NDPC). With years of experience supporting organizations in data protection compliance, privacy risk management, and NDPA implementation, he is committed to advancing responsible data governance and building digital trust in Africa and beyond. In addition to his privacy and compliance expertise, James is a Certified IT Expert, Data Analyst, and Web Developer, with proven skills in programming, digital marketing, and cybersecurity awareness. He has a background in Statistics (Yabatech) and has earned multiple certifications in Python, PHP, SEO, Digital Marketing, and Information Security from recognized local and international institutions. James has been recognized for his contributions to technology and data protection, including the Best Employee Award at DKIPPI (2021) and the Outstanding Student Award at GIZ/LSETF Skills & Mentorship Training (2019). At Privacy Needle, he leverages his diverse expertise to break down complex data privacy and cybersecurity issues into clear, actionable insights for businesses, professionals, and individuals navigating today’s digital world.

  • 1

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.