CVE Index中文
L4 · Septic Tank BlewHex · Elixir · Erlang · supply-chain · RCEhex-registry-intrusion

The package registry needs an account reset

Hex.pm confirms command execution on six registry servers; account data and signing key may have been read

Hex confirmed 69 exploit requests hit six servers on November 23. It found no package tampering, but cannot rule out database or private-package reads. Change account passwords, reset enabled 2FA, reauthenticate clients and use only repo.hex.pm while the registry signing-key replacement is pending.

Disclosed
Nov 24, 2026
Updated Nov 26, 2026
Severity
CVSS 10 × 1
2 CVEs tracked here
Splash zone
Hex.pm accounts and private organizations; self-hosted hexpm servers with the vulnerable Erlang-term request parser
elixir · erlang
In the wild
Yes
Hex confirms command execution on six web servers on November 23, 2026.

The one-sentence version

An unauthenticated request supplied fake Elixir structs; error reporting inspected them and followed library callbacks into operating-system command execution as the server process.

What happened

Hex disclosed the incident on November 24, 2026. The attack occurred the previous day: unauthenticated commands ran on six web servers, after 69 malicious requests reached the registry. This merits L4 because a package registry was actively compromised and server-side credentials and account data were within reach. No evidence establishes malicious package distribution or an internet-wide compromise of Elixir applications.

The vulnerable component is the hexpm server, not a command-execution flaw in everyone’s Hex client. Its Erlang-term body parser ran before authentication on every route. Rejecting functions and new atoms was insufficient: a map could name an existing Elixir module through __struct__. An error caused that value to be inspected; protocol dispatch through Ecto and DBConnection reached an attacker-selected callback. Commands ran with the BEAM process’s operating-system permissions, not automatically host root.

The hosted service was patched on November 23. Self-hosted operators must deploy the decoder fix: the affected source range begins at ab1bbcef7cc8395d1056d3b1aa6a174353492d59 and ends before 379b0a29bcc95164249f38ad7d772a37a8ff9533. This service/source versioning is separate from Hex client version numbers. The server fix recursively rejects struct maps; related library hardening and the registry signing-system replacement are separate work described in the official report.

What is confirmed, and what remains unknown: Hex compared every database row against a pre-attack snapshot and reconciled the changes it found. All 23 package releases during the attack matched audit records; 62 package files and 186 registry files written since 18:00 matched database checksums or contents. It found no unexpected package modification or lasting access. These checks do not prove that no data was read, nor can the database comparison catch every change that was reverted or overwritten. Documentation archives had no stored checksum for that comparison.

Database reads, environment-variable reads and shell commands were not logged. Potentially readable account data includes email addresses, password hashes, API-key hashes, 2FA secrets, sessions and audit logs. Reads of private packages from an already compromised server could resemble legitimate service traffic; direct storage reads of private documentation were not logged. There is no verified stolen-account total, confirmed signing-key theft or named malicious package release to publish.

Hex replaced infrastructure credentials and the keys used for sessions and access tokens, forcing users to sign in again. The registry signing key is a different key and remained an exception in the report. Maintainers were preparing a new signing system with client releases expected in the following days. Use the official repository and follow the release announcement; neither an operational status page nor installing an existing client release proves that rotation is complete.

For account holders, change the Hex password if one exists, replace enabled 2FA and save its new recovery codes, then reauthenticate clients. GitHub sign-ups still need the latter steps. Anonymous users who only download public packages have no account reset to perform, but should follow the repository and client-update guidance. Hex does not require blanket API-key replacement solely for possible exposure of its strongly randomized API-key hashes; actual secret exposure or suspicious use is a separate reason to revoke one.

The DBConnection hop now has its own advisory, CVE-2026-133555 / GHSA-gmmq-fw75-wq46, published November 24. It covers db_connection >=1.1.0 and <2.10.3, with hardening in 2.10.3. A forged DBConnection.Stream or DBConnection.PrepareStream carries a :log callback selected by the attacker. The maintainers explicitly say the library is not exploitable alone: an application or dependency must first decode untrusted terms into structs and enumerate or inspect them. Upgrading this library closes this gadget, but other structs can provide alternative gadgets if the unsafe decoder remains. This is a defense within the existing Hex attack chain, not evidence of a separate registry intrusion. The maintainer’s forum post also directs Ash and Flop users to their separate updates; see Ash keyset decoding and Flop cursor decoding.

What’s in the bowl

Unauthenticated Erlang-term deserialization RCE

The hexpm request parser accepted attacker-controlled struct maps before routing and authentication. Inspect and Enumerable protocol dispatch reached a command-execution callback; the CNA gives CVSS 4.0 10.0.

Forged DBConnection stream callback gadget

db_connection 1.1.0 through versions before 2.10.3 can invoke a forged stream’s :log callback. Exploitation requires a downstream component to decode untrusted structs and enumerate or inspect them; the library alone is not exploitable. CVSS 4.0 8.9.

Fixed versions

ProductSafe fromNote
Hosted hex.pm service2026-11-23Patched everywhere by 18:31 UTC
Self-hosted hexpm/hexpm379b0a29bcc95164249f38ad7d772a37a8ff9533Deploy this fix or a build containing it
Registry signing-key replacement / new Hex clientNo fixAnnounced; release with the new signing system pending
db_connection library hardening2.10.3Closes this stream gadget; does not fix an unsafe downstream decoder

Crime-scene timeline

  1. Feb 23, 2016

    The request decoder loses its struct safety check

    The advisory traces the affected server code to commit ab1bbcef7cc8395d1056d3b1aa6a174353492d59. This is not evidence of exploitation throughout that period.

  2. Nov 23, 2026, 18:16–18:29 UTC

    Hex records 69 malicious requests and command execution on six web servers

    The final request reaching a vulnerable server was at 18:29:33. A restart during the attack brought up three more servers on the old build.

  3. Nov 23, 2026, 18:30–18:31 UTC

    All servers are replaced with the patched build

    A firewall rule added at 18:27 took effect between 18:30 and 18:33; requests from the attacking address were denied from 18:33:48 onward.

  4. Nov 23, 2026, 18:49 UTC

    Hex deactivates the affected servers' AWS access key

    Most infrastructure credentials were rotated by 20:21. Hex later notified Sweden's IMY, CISA and ENISA.

  5. Nov 24, 2026, 10:42 UTC

    Most readable credentials have been replaced, with signing-key exceptions

    By this time the database password was also rotated. The registry signing key and a few low-impact secrets remained exceptions; the client/signing-system replacement was still being prepared.

  6. Nov 24, 2026, 13:48 UTC

    Hex publishes the CVE

    The incident report is dated November 24. It confirms exploitation but separates that from unproven database reads and package tampering.

  7. Nov 24, 2026

    DBConnection publishes hardening for the stream callback used in the chain

    GHSA-gmmq-fw75-wq46 / CVE-2026-133555 covers db_connection >=1.1.0 and <2.10.3. Its advisory explicitly requires a downstream unsafe decoder; installing the library alone does not create an exploitable entry point.

Who said what

We list each claim and who made it. Primary sources (the vendor, the researcher, the registry) are marked. Where reports disagree, we grade by the worst credible case.

  • Hex incident reportPrimaryConfirms the attack, investigation limits, credential response, pending registry signing-key replacement and account instructions.
  • Erlang Ecosystem Foundation CNAPrimaryServer prerequisites, affected date/commit ranges, active exploitation and CVSS 4.0 10.0.
  • hexpm GitHub security advisoryPrimaryGHSA alias, server-side scope and patched service date/source commit.
  • hexpm decoder fixPrimaryRejects nested struct maps and returns an error instead of passing them into request parameters.
  • Hex maintainer clarification on Elixir ForumPrimaryDistinguishes anonymous package consumers and GitHub sign-ups; gives client reauthentication and new recovery-code guidance.
  • Hex client releasesPrimaryLatest published release checked was v2.7.0, dated November 6; no new signing-system release was established.
  • DBConnection maintainer advisoryPrimaryNovember 24 publication; CVE-2026-133555, >=1.1.0 and <2.10.3, fixed in 2.10.3; requires an unsafe downstream decoder and is not independently exploitable.
  • EEF CNA record for the DBConnection gadgetPrimaryConfirms the related attack gadget, prerequisites and CVSS 4.0 8.9; links the decoder vulnerabilities and library fix.