Ethical Hacking News
Hex.pm, a popular package registry for Elixir and Erlang developers, has been compromised by hackers who exploited a critical RCE flaw to gain remote code execution on the server. The vulnerability, tracked as CVE-2026-129514, has a maximum CVSS score of 10.0, making it one of the most severe vulnerabilities discovered in recent times. The hackers took advantage of the vulnerability to read account data and potentially steal sensitive information. The Hex.pm team has taken steps to secure the server, and the security community has discovered vulnerabilities in three widely used Elixir libraries.
The Hex.pm package registry server has a critical vulnerability (CVE-2026-129514) that can be exploited for remote code execution (RCE) with a maximum CVSS score of 10.0. The vulnerability was discovered in the parser used by the server to read request bodies in Erlang data format. The attack was carried out by exploiting a flaw that had been present in the registry's code since February 2016. The hacker exploited the vulnerability to read account data, including email addresses, password hashes, and two-factor authentication secrets. The Hex.pm team has advised account holders to secure their accounts and has reported the breach to relevant authorities. The incident highlights the importance of keeping software up to date, patching critical vulnerabilities, and monitoring and logging. Vulnerabilities have also been discovered in three widely used Elixir libraries: ash, db_connection, and flop.
The recent incident involving the Hex.pm package registry server has highlighted a critical vulnerability that can be exploited to gain remote code execution (RCE) on the server. The vulnerability, tracked as CVE-2026-129514, has a maximum CVSS score of 10.0, making it one of the most severe vulnerabilities discovered in recent times.
The vulnerability was discovered in the parser used by the Hex.pm server to read request bodies sent in an Erlang data format. The parser was designed to be safe, but it had a critical flaw that allowed an attacker to pose as any Elixir struct the application had loaded. This allowed an attacker to craft a malicious struct that would cause an error, and the error reporting code would then inspect the struct, leading to a point where the server called a function of the attacker's choice.
The function called by the attacker then ran operating system commands with the permissions of the registry's service account, allowing the attacker to compromise the server. The attack was carried out by exploiting a flaw that had been present in the registry's code since February 2016. The maintainers of the service had every server on a patched build within about 15 minutes of the first malicious request.
However, the attack was not carried out until Monday, when the hacker ran operating system commands on six production servers of Hex.pm. The hacker exploited the flaw by running a crafted struct that caused an error, and the error reporting code then inspected the struct, leading to a point where the server called a function of the hacker's choice.
The function called by the hacker then ran operating system commands with the permissions of the registry's service account, allowing the hacker to compromise the server. The hacker then exploited the vulnerability to read account data such as email addresses, password hashes, and two-factor authentication secrets.
The Hex.pm team has advised account holders to take certain steps to secure their accounts. These steps include changing the password, resetting two-factor authentication, logging back in to the client, and updating the Hex client when the next release ships.
The team has also advised account holders to watch for phishing attempts, as exposed email addresses may be misused. The team has also stated that API keys do not need to be replaced, as they are random 128-bit values stored only as HMAC-SHA256 hashes.
The attack was not carried out by a single individual, but rather by two addresses that had been active since late last week. The hacker built a local copy of Hex.pm to test against, and the attack was carried out by exploiting the vulnerability in the parser used by the Hex.pm server.
The Hex.pm team has replaced every credential the attacker could have read except the registry signing key. The team has also reported the breach to the Swedish data protection authority, to CISA in the United States, and to ENISA in the European Union.
The incident has highlighted the importance of keeping software up to date and patching critical vulnerabilities. The Hex.pm team has thanked the security community for their help in discovering and reporting the vulnerability.
In addition to the Hex.pm incident, the security community has also discovered vulnerabilities in three widely used Elixir libraries: ash, db_connection, and flop. These libraries have been fixed, and the fixes have been shipped.
The vulnerabilities discovered in these libraries are similar to the one discovered in Hex.pm, and they can also be exploited to gain RCE on the server. The security community has warned users of these libraries to update to the latest version to patch the vulnerabilities.
The incident also highlights the importance of monitoring and logging. The Hex.pm team has implemented additional logging and monitoring to detect and prevent similar attacks in the future.
In conclusion, the Hex.pm vulnerability is a critical RCE flaw that can be exploited to gain remote code execution on the server. The vulnerability was discovered in the parser used by the Hex.pm server, and it was exploited by two addresses that had been active since late last week. The hacker built a local copy of Hex.pm to test against, and the attack was carried out by exploiting the vulnerability in the parser.
The Hex.pm team has taken steps to secure the server, and the security community has discovered vulnerabilities in three widely used Elixir libraries. The incident highlights the importance of keeping software up to date and patching critical vulnerabilities. The security community has also emphasized the importance of monitoring and logging to detect and prevent similar attacks in the future.
Related Information:
https://www.ethicalhackingnews.com/articles/Hexpm-Vulnerability-A-Critical-RCE-Flaw-Compromised-Six-Package-Registry-Servers-ehn.shtml
https://thehackernews.com/2026/11/hackers-exploited-cvss-100-hexpm-rce.html
Published: Wed Nov 25 03:57:54 2026 by llama3.2 3B Q4_K_M