Hex.pm hackers compromised six servers, putting developer account data at risk
Isabella GunnLead Cybersecurity Editor at Desking Verified authorDr. Isabella Gunn, PhD, MBA - Is the Lead Cybersecurity Editor at Desking and a recognized authority in cybersecurity, digital privacy, and enterprise security. Holding …Author Profile Ad disclaimer For links on this page, DESKING APP may earn a commission from the provider. This supports our work and has no influence on our editorial rating.
Hackers exploited a critical vulnerability in Hex.pm, the package registry used by Elixir and Erlang developers, to execute operating system commands on six production servers on November 23, 2026.
The incident involved 69 malicious requests and a flaw that allowed unauthenticated attackers to run commands without logging into the service, raising concerns about the security of developer accounts, private packages and software supply chains.
Hex.pm disclosed the incident on November 24 in a security report published by maintainers Peter Ullrich, Jonatan Männchen and Eric Meadows-Jönsson.
The team said it blocked the malicious traffic and deployed a fix across its servers within approximately 15 minutes of the first exploit request.
The vulnerability is tracked as CVE-2026-129514 and received a critical severity score of 10.0 under the Common Vulnerability Scoring System version 4.0.
It affected the request processing mechanism used by Hex.pm to decode incoming data before routing requests or checking authentication.
According to the maintainers, the attacker sent 69 malicious requests between 18:16 and 18:29 UTC.
The requests originated from two addresses and resulted in command execution on six production web servers.
The first malicious request was recorded at 18:16:00, while the final exploit request to reach a server arrived at 18:29:33.
The incident is particularly relevant to software developers because Hex.pm distributes packages used by applications built with Elixir and Erlang.
A compromise of the registry infrastructure can create risks beyond the service itself, potentially affecting credentials, private dependencies and the systems that rely on packages hosted there.
The maintainers said their investigation found no evidence that attackers modified published packages, changed database records or maintained access to the infrastructure after the response.
However, they could not rule out unauthorized access to information stored in the database because database reads were not logged.
The potentially exposed information included email addresses, password hashes, API key hashes, two-factor authentication secrets, session data and audit logs.
Hex.pm also said it could not completely exclude the possibility that private packages or private documentation had been accessed.
The absence of confirmed package modifications is an important distinction.
Hex.pm checked files written to package storage during the incident against its database and found no unexpected changes.
It also reviewed package releases published during the attack and found no evidence of unauthorized modifications.
However, the investigation had limitations.
The maintainers explained that reads of private packages made by a compromised server could appear in the logs as activity originating from their own infrastructure.
Access to private documentation was also not logged.
The team said it would contact affected organizations directly.
The vulnerability originated in the way Hex.pm processed incoming Erlang term format requests.
The service used a function called Plug.Crypto.non_executable_binary_to_term/2, designed to decode data while blocking certain potentially dangerous elements.
The decoder rejected functions and newly introduced atoms, but it did not prevent attackers from submitting maps containing a special __struct__ key.
In Elixir, structures are represented as maps with this key identifying the module associated with the structure.
By constructing malicious values, an attacker could make the application treat supplied data as legitimate structures.
The vulnerable parser processed these requests before the application reached its routing and authentication stages.
This meant that an attacker did not need an account or an authenticated session to reach the affected code.
The exploit depended on several components interacting in an unexpected way.
After the application received a crafted request, its method override mechanism attempted to process a field inside the supplied structure.
That operation generated an error, which triggered the application's error reporting and logging systems.
Those systems inspected the request data while recording the error.
Because Elixir uses protocol implementations associated with structures, the attacker could influence which code executed during that inspection process.
The chain involved components from Ecto and DBConnection, two libraries used in the Elixir ecosystem.
The malicious structure caused the inspection process to enumerate attacker-controlled data, eventually reaching a database connection stream implementation.
The stream's error handling path processed a logging option supplied through the request.
That option contained a module, function and arguments tuple.
The application applied the supplied function, allowing the attacker to execute operating system commands under the permissions of the Hex.pm server process.
The GitHub security advisory associated with CVE-2026-129514 describes the same technical sequence.
Debian's security tracker also records the vulnerability as an actively exploited unauthenticated remote code execution issue affecting Hex.pm.
The flaw had existed in the registry's code since February 23, 2016.
The maintainers identified that date by tracing the relevant code history.
This does not establish that attackers had been exploiting the vulnerability throughout that period.
The available evidence confirms exploitation on November 23, 2026, but does not establish earlier successful attacks.
Hex.pm began responding while the malicious requests were still arriving.
At 18:27 UTC on November 23, the team added a firewall rule intended to block the attacking traffic.
The rule took full effect between 18:30 and 18:33.
Between 18:30 and 18:31, the maintainers replaced all Hex.pm servers with a patched build that rejected the malicious payloads.
Further requests from the attacking addresses were subsequently denied.
The incident timeline also revealed that three additional servers entered the attack during an infrastructure restart at 18:28.
Those machines started with the vulnerable build and were affected before the full replacement was completed.
The team then began replacing credentials that attackers could potentially have accessed through command execution.
It created a replacement AWS access key at 18:47 and deactivated the key used by the affected servers at 18:49.
By 20:21 on November 23, most infrastructure credentials had been rotated.
The database password was replaced on November 24.
By 10:42 UTC that day, the team said it had rotated every credential the attacker could have read, with the registry signing key and a small number of lower-impact secrets still outstanding.
Hex.pm also reported the incident to several authorities.
The team notified Sweden's data protection authority, the Swedish Authority for Privacy Protection, known as IMY, at 22:58 UTC on November 23.
It reported the incident to the US Cybersecurity and Infrastructure Security Agency, or CISA, at 23:05 and submitted an early warning to the European Union Agency for Cybersecurity, ENISA, at 23:26.
The vulnerability was published as CVE-2026-129514 on November 24 at 13:48 UTC.
The maintainers also said they were working on additional security improvements beyond the immediate patch.
The consequences for Hex.pm users extend beyond the vulnerability itself.
Because the attacker could potentially access credentials used by the servers, the maintainers replaced the keys responsible for signing sessions and access tokens.
This action logged users out of Hex.pm and their Hex clients.
The team issued specific instructions to account holders:
Change the password associated with the Hex.pm account.
Reset two-factor authentication by registering a new authenticator application entry and storing the new recovery codes.
Reauthenticate Hex clients after the credential changes.
Update the Hex client when the release containing the new registry signing system becomes available.
Avoid third-party package mirrors and fetch packages only from
repo.hex.pmuntil the new signing system is available.Treat unexpected emails claiming to come from Hex with caution, checking that their links lead to the official
hex.pmdomain.
The registry signing system is an important part of the response because package managers rely on trusted package sources and verification mechanisms to protect dependency downloads.
Hex.pm said the existing registry signing key was among the credentials that the attacker could potentially have read.
The team therefore began developing a replacement system that supports key rotation.
The Hacker News reported on November 25 that the vulnerability carried the maximum CVSS score of 10.0 and that the maintainers had found no evidence of package modifications.
It also highlighted the potential exposure of account information and the need for users to reset their security credentials.
The incident has also drawn attention to related vulnerabilities in the Elixir ecosystem.
During its investigation, Hex.pm identified a similar class of issue in Ash, a framework used by Elixir applications.
The vulnerability affected keyset pagination when crafted structures were supplied through client-controlled cursors and could potentially lead to command execution or SQL injection under the relevant conditions.
The Ash team released version 3.38.0 on November 24 to address that separate issue, tracked as CVE-2026-124283.
The Hex.pm maintainers said they reported the vulnerability to the project team.
It should not be confused with the exploited Hex.pm registry vulnerability, as the two issues affect different components.
For developers and organizations using Hex.pm, the immediate priority is to follow the registry's security instructions, verify dependency sources and review the credentials associated with their accounts.
Organizations that operate their own copies of the Hex.pm registry should also ensure they have deployed the corrected code.
The incident demonstrates how a vulnerability in a request parser can become a direct infrastructure security problem when untrusted data reaches application components before authentication.
Although Hex.pm contained the attack and reported no confirmed package tampering, the inability to rule out database and private package access means the investigation's findings do not establish that all potentially exposed information remained confidential.
Sources4
- GitHub on Hex.pm remote code execution advisory
- Debian on CVE-2026-129514 vulnerability
- The Hacker News on Hex.pm server compromise
- Hex on package registry security incident
External pages are independent third-party sources. Desking App does not control or endorse their content and accepts no responsibility for it. Visiting them is at your own responsibility and risk.

