Hex.pm breached via CVSS 10.0 unauthenticated RCE (CVE-2026-129514); six web servers hit, credentials and signing keys rotated
Matéria consolidada. Reúne 2 matérias que o Tifon tinha publicado separadamente sobre a mesma história. A IA reescreveu o relatório com o que as 3 fontes trouxeram em 30/11/2026 05:01; os links antigos trazem para cá.
Fontes: securityaffairs.com ↗ securityweek.com ↗ thehackernews.com ↗
On 23 November 2026 an attacker exploited CVE-2026-129514 (CVSS 10.0), an unauthenticated RCE in Hex.pm, the package registry for Elixir and Erlang, and ran OS commands on six production web servers. The flaw had been in the code since 23 February 2016 (thehackernews.com). The attacker sent 69 malicious requests between 18:16 and 18:29 UTC, and the team replaced the servers with patched builds within minutes (securityweek.com). The Hex incident notice, quoted by securityaffairs.com, says traffic was blocked and a fix deployed within 20 minutes, and that a report of this exact vulnerability arrived shortly afterwards. The audit found no evidence of package modification, database changes or persistent access. The team cannot rule out that the attacker read database contents, because database reads and private documentation reads are not logged. Possibly exposed data includes emails, password and API key hashes, 2FA secrets, session data and audit logs (securityaffairs.com). Hex reported the breach to Swedish, US and EU authorities (securityaffairs.com). The registry signing key still needs to be replaced (securityaffairs.com). The attacker's identity is unknown. The sources are news articles, though securityaffairs.com quotes the vendor notice.
Entenda a falha
A vulnerabilidade
CVE-2026-129514 (CVSS 10.0) is an unauthenticated deserialization of untrusted data flaw in the hexpm server behind Hex.pm, the Elixir/Erlang package registry. It sits in the parser for request bodies in Erlang external term format. Anyone with network reach could send a POST to any URL, with no login, and get OS command execution as the service account. Hex.pm is listed as affected from 23 February 2016 until the patch of 23 November 2026; self-hosted hexpm servers stay vulnerable until patched. Related flaws of the same class: Ash Framework (CVE-2026-124283, patched 24 November, code execution or SQL injection, needs keyset pagination with a client-supplied cursor, certain sort field types and an unset default signing secret), db_connection (CVE-2026-133555, not exploitable alone) and Flop (CVE-2026-130411, similar conditions around pagination cursors).
Como funciona
A request body in Erlang external term format reaches hex.pm and is decoded before routing and authentication, so any unauthenticated POST gets to the decoder. The decoder was meant to be safe and blocked terms such as functions, but it accepted maps with a struct key, so the body could pose as any Elixir struct the application had loaded. The crafted struct did nothing by itself: it caused an error, and the error-reporting code then inspected the struct. Through the Ecto and DBConnection libraries, that inspection led to a call to a function chosen by the attacker, which ran OS commands as the service account.
Por que é vulnerável
The root cause is unsafe deserialization: the decoder's safety check was removed from the code on 23 February 2016, and from then on it accepted maps with a struct key built from untrusted input. That let attacker data impersonate trusted structs, which later code (error reporting, Ecto, DBConnection) handled as if legitimate, ending in a call to an attacker-chosen function. The flaw went unnoticed for almost ten years, and exploitation before 23 November has not been established. The fix makes the decoder reject any term containing a map with a struct key.
Onde está
The flaw is in the hexpm server's decoder for Erlang external term format request bodies; the articles mention a public fix commit and security advisory but do not name files or functions.
Como foi descoberta
It came to light through exploitation: on 23 November 2026 an attacker sent 69 malicious requests from two addresses between 18:16 and 18:29 UTC, and files created by the exploit appeared on six web servers. Activity from the same addresses since late the previous week suggests the attacker tested against a local copy of hex.pm. Hex replaced the servers with patched builds (running by 18:31 UTC per The Hacker News; 18:30 per SecurityWeek, with a firewall block at 18:33). A separate security report describing the same flaw arrived by email at 19:07 UTC, after the attack ended. Hex then published an incident report and reported the breach to the Swedish data protection authority, CISA and ENISA. The attacker is unknown. Hex also found that Ash was affected by the same class of flaw, and Ash, db_connection and Flop maintainers shipped fixes.
PoC existente, privada
O exploit existe, mas quem o tem não o publicou.
The attacker had a working exploit and used it against six production servers, and the code was never published. The articles mention no public PoC or released exploit code. Self-hosters of hexpm should patch urgently, since the exploit worked on an unauthenticated request.
Explicação gerada por IA a partir da matéria e dos artigos, em 27/11/2026 12:18.
Detalhes técnicos
- The vulnerable code was the parser that decodes request bodies sent in Erlang external term format. It ran before routing and authentication, so an unauthenticated POST to any URL could reach it (thehackernews.com). securityweek.com classifies the bug as deserialization of untrusted data.
- The decoder blocked functions but accepted maps with a
__struct__key, so a request body could pose as any loaded Elixir struct. The crafted struct caused an error. The error-reporting code then inspected the struct, and a path through Ecto and DBConnection led to a call to a function of the attacker's choice. That call ran OS commands as the service account (thehackernews.com). - Load balancer logs show 69 exploit requests from two IP addresses between 18:16 and 18:29 UTC. Files created by the exploit appeared on six web servers. Three of those servers joined mid-attack, when a restart brought up machines still on the vulnerable build (thehackernews.com).
- Activity from the same addresses going back to late the previous week suggests the attacker tested against a local copy of hex.pm (thehackernews.com).
- Database reads, shell commands, environment variables and direct file-storage reads were not logged. Private packages could therefore have been read without a trace (thehackernews.com).
- Integrity check: every database table was compared with a copy taken two minutes before the first exploit request. The 23 releases published during the attack match the audit log, and no older release was changed (thehackernews.com).
- The attacker's commands could read the credentials the servers use. Hex rotated the storage, CDN, email and database credentials and the session and token signing keys, which logged all users out (securityweek.com).
- The fix commit makes the decoder reject any term containing a map with a
__struct__key. All hex.pm servers ran it by 18:31 UTC (thehackernews.com). Organizations that run their own copy of the hexpm server stay affected until they deploy the patch (thehackernews.com). - The same class of flaw (structs built from untrusted data) affected other libraries, each needing its own conditions to be exploited. None is a further attack on Hex.pm: Ash Framework (CVE-2026-124283, patched 24 November, code execution or SQL injection), db_connection (CVE-2026-133555) and flop (CVE-2026-130411) (securityweek.com; thehackernews.com).
Remediação
- Change your hex.pm password and reset 2FA at hex.pm/dashboard/security, storing the new recovery codes.
- Re-authenticate with
mix hex.user authorrebar3 hex user auth, because all sessions were invalidated. - Update the Hex client when the next release ships, expected within days, with a new registry signing system and key rotation (thehackernews.com, securityaffairs.com).
- Until the new clients ship, fetch packages only from repo.hex.pm and avoid third-party mirrors (securityweek.com).
- Treat emails claiming to come from Hex with caution and check that links lead to hex.pm.
- API keys do not need to be replaced (thehackernews.com). The Hex notice, quoted by securityaffairs.com, confirms this: keys are 128-bit random values stored as HMAC-SHA256. Passwords use bcrypt, so weak ones are still guessable and should be changed.
- Update Ash (fixed in 3.38.0, released 24 November 2026), db_connection and flop to their patched versions (securityweek.com, securityaffairs.com).
- Self-hosters of the hexpm server must deploy the fix.
Relatos divergentes
- Data possibly exposed: thehackernews.com lists emails, password hashes, 2FA secrets and session data. securityweek.com and securityaffairs.com (quoting the Hex notice) also list API key hashes and audit logs, so that is the broader and more authoritative scope.
- Response timing: thehackernews.com says every server was patched about 15 minutes after the first malicious request (running by 18:31 UTC). securityweek.com says servers were replaced at 18:30 and the attacker's traffic was blocked by a firewall rule at 18:33. securityaffairs.com, quoting the Hex notice, says the traffic was blocked and a fix deployed within 20 minutes. The accounts are broadly consistent.
- API keys: thehackernews.com and the Hex notice quoted by securityaffairs.com say API keys do not need to be replaced. securityweek.com lists API key hashes among possibly exposed data but does not say whether keys must be replaced.
Linha do tempo
-
Hex.pm breached via CVSS 10 unauthenticated RCE (CVE-2026-129514) dating to 2016; six web servers hit, secrets rotated
The Security Affairs article quotes the Hex incident notice directly. It confirms that API keys need no rotation (128-bit random values stored as HMAC-SHA256, with bcrypt for passwords). It also confirms the exposed data list including API key hashes and audit logs, the registry signing key still awaiting replacement, the Ash 3.38.0 fix, and that Hex reported the breach to Swedish, US and EU authorities.
ler a análise desta fonte ocultar
The Security Affairs article quotes the Hex incident notice directly. It confirms that API keys need no rotation (128-bit random values stored as HMAC-SHA256, with bcrypt for passwords). It also confirms the exposed data list including API key hashes and audit logs, the registry signing key still awaiting replacement, the Ash 3.38.0 fix, and that Hex reported the breach to Swedish, US and EU authorities.
On 23 November 2026 an unauthorized third party exploited CVE-2026-129514 (CVSS 10) in Hex.pm, the package registry for Elixir and Erlang, and ran commands on six web servers. The flaw let anyone run commands without signing in, through unsafe handling of Erlang-format data, and dates to February 2016. The attacker sent 69 malicious requests between 18:16 and 18:29 UTC, and Hex says it blocked the traffic and deployed a fix within 20 minutes. Hex found no evidence of package modification, database changes or persistent access, but it cannot rule out data theft because database reads are not logged. This summary rests on the Security Affairs article, which quotes the Hex incident notice. No other source was checked.
Technical Details
- Possibly exposed data: email addresses, password and API key hashes, 2FA secrets, session data and audit logs. Private packages or documentation may also have been accessed.
- Because the attacker may have read server credentials, Hex replaced secrets for storage, CDN, email, databases and session signing, and logged out all users.
- The registry signing key still needs to be replaced. Hex is building a new signing system and plans updated clients soon.
- A similar flaw was found in Ash's keyset pagination, where crafted cursors could allow command execution or SQL injection. It was fixed in Ash 3.38.0 on 24 November 2026 (CVE-2026-124283).
- Hex reported the breach to Swedish, US and EU authorities.
Remediation
- Change your Hex.pm password, set up a new authenticator entry at hex.pm/dashboard/security and save the new recovery codes.
- Install the updated client when it is released.
- Check that links in Hex emails point to hex.pm.
- API keys do not need to be rotated. They are 128-bit random values stored as HMAC-SHA256.
- Update Ash to 3.38.0 or later.
-
Hex.pm (Elixir/Erlang package manager) breached via CVSS 10 unauthenticated deserialization RCE; credentials rotated
ler a análise desta fonte ocultar
Hex, the package manager for Elixir and Erlang, reported that on November 23 an attacker exploited a vulnerability in hex.pm to execute commands on its web servers. Between 18:16 and 18:29 UTC the attacker sent 69 malicious requests that affected six web servers. Hex replaced the servers with patched versions at 18:30 and blocked the attacker's traffic with a firewall rule at 18:33. Hex found no evidence of package modification, database changes or persistent access. It cannot rule out access to database contents, because database and private documentation reads are not logged. This article is the only source used, and no vendor advisory was consulted.
Technical Details
- The flaw is CVE-2026-129514 (CVSS 10), an unauthenticated deserialization of untrusted data bug. A crafted Erlang external term format request body gave OS command execution and RCE.
- Data that may have been exposed: email addresses, password hashes, API key hashes, sessions, 2FA secrets and audit logs.
- The attacker's commands could read the credentials the servers use. Hex rotated the storage, CDN, email and database credentials and the session and token signing keys. This logged all users out.
- The same class of flaw affected the Ash Framework (CVE-2026-124283, patched November 24, code execution or SQL injection), db_connection (CVE-2026-133555) and flop (CVE-2026-130411).
Remediation
- Change hex.pm passwords and reset two-factor authentication.
- Until new Hex clients with registry signing and key rotation ship, fetch packages only from repo.hex.pm and avoid third-party mirrors.
- Treat emails claiming to come from Hex with caution, and check that links lead to hex.pm.
- Update Ash, db_connection and flop to their patched versions.
-
Attacker exploits CVSS 10.0 unauthenticated RCE (CVE-2026-129514) in Hex.pm to run commands on six registry servers
ler a análise desta fonte ocultar
An attacker ran operating system commands on six production web servers of Hex.pm, the package registry for Elixir and Erlang, through an unauthenticated RCE flaw (CVE-2026-129514, CVSS 10.0). The bug had been in the code since 23 February 2016. The team patched every server about 15 minutes after the first malicious request. The audit found no sign that any package was modified. The team could not rule out that the attacker read account data, including emails, password hashes, 2FA secrets and session data. The attacker's identity is unknown. This summary is based only on the article. No vendor advisory or other primary source was opened.
Technical Details
- The flaw was in the parser that decodes request bodies sent in an Erlang data format. The parser ran before routing and authentication, so an unauthenticated POST to any URL could reach it.
- The decoder blocked functions but accepted maps with a
__struct__key, so a request body could pose as any loaded Elixir struct. - The crafted struct caused an error. The error-reporting code then inspected the struct, and that path through Ecto and DBConnection led to a call to a function of the attacker's choice. That call ran OS commands as the service account.
- Load balancer logs show 69 exploit requests between 18:16 and 18:29 UTC on Monday, all from two IP addresses. Files created by the exploit appeared on six web servers. Three of those servers joined mid-attack, when a restart brought up machines still on the vulnerable build.
- Activity from the same addresses going back to late the previous week suggests the attacker tested against a local copy of hex.pm.
- Database reads, shell commands, environment variables and direct file-storage reads were not logged. Private packages could also have been read without a trace.
- Package integrity check: every database table was compared with a copy taken two minutes before the first exploit request. The 23 releases published during the attack match the audit log, and no older release was changed.
- Related, separate disclosures: flaws in the Ash, db_connection and Flop libraries involving structs built from untrusted data. Each needs its own conditions to be exploited, and none is a further attack on Hex.pm.
Fix Details
The fix commit makes the decoder reject any term containing a map with a
__struct__key. Every hex.pm server was running it by 18:31 UTC on Monday. The article gives no PR number. Organizations that run their own copy of the hexpm server are affected until they deploy the patch.Remediation
- All users were logged out because the session and token signing keys were replaced.
- Change your hex.pm password.
- Reset 2FA and store the new recovery codes.
- Re-authenticate with
mix hex.user authorrebar3 hex user auth. - Update the Hex client when the next release ships, expected within days, with a new registry signing system.
- Watch for phishing emails.
- API keys do not need to be replaced, according to the team.
- Until the new client ships, fetch packages only from repo.hex.pm and avoid third-party mirrors. The registry signing key has not yet been replaced.