Hex.pm Breached via CVE-2026-129514 (CVSS 10.0): Unauthenticated Erlang-Term RCE Hit Six Registry Servers in 13 Minutes — No Tampered Packages Found, but Every User Must Change Password and Reset 2FA

DevSecOps · 2026-11-25 · By Reef Administrator - H.A

Hex.pm Breached via CVE-2026-129514 (CVSS 10.0): Unauthenticated Erlang-Term RCE Hit Six Registry Servers in 13 Minutes — No Tampered Packages Found, but Every User Must Change Password and Reset 2FA

Attackers exploited a forged-struct deserialisation flaw in hex.pm's Erlang request parser to run commands on six servers on 23 November; Hex patched within minutes, found no altered packages, but cannot rule out database reads and asks all users to change passwords and reset 2FA.

Attackers used a critical flaw in hex.pm, the package registry for Elixir, Erlang and Gleam, to run operating system commands on six of its production servers on 23 November. The bug is tracked as CVE-2026-129514 (CVSS 4.0 score 10.0, CWE-502). Hex says the attack lasted about 13 minutes and that it found no tampered packages. It cannot rule out that the attacker read the user database, so every hex.pm user is being asked to change their password and set up two-factor authentication (2FA) again.

What Happened

Hex has published a detailed timeline. The attack came from two IP addresses:

In total the attacker sent 69 malicious requests. Hex also saw repeated downloads of hex.pm's own dependencies from 19 November. It says this "suggests the attacker built a local copy of hex.pm to test against."

At 23:07 (19:07 UTC) Hex received a security report by email describing the same vulnerability. Over the next day it rotated most of its infrastructure credentials. It notified IMY, Sweden's data protection authority, at 02:58 Mauritius time on 24 November (22:58 UTC on 23 November). It reported the incident to CISA at 03:05 (23:05 UTC) and sent an early warning to ENISA. The Erlang Ecosystem Foundation, acting as the CNA, published the CVE at 17:48 Mauritius time (13:48 UTC) on 24 November, together with GitHub advisory GHSA-9pmm-hf4r-27pg.

Technical Details

The Hex command-line clients can send requests to the registry as Erlang terms (content type application/vnd.hex+erlang). hex.pm decoded these bodies with Plug.Crypto.non_executable_binary_to_term/2 in safe mode. That decoder refuses functions and new atoms, but it does not restrict maps. So a map carrying a __struct__ key passes through as if it were an Elixir struct of any module the attacker names.

The parser ran before routing and authentication, so no login was needed. Every route was reachable. According to the advisory, the chain worked like this:

Hex says a check that would have blocked this was removed in February 2016. The advisory lists every hexpm commit from ab1bbce up to, but not including, the fix as affected. The fix, commit 379b0a2 ("Refuse structs in Erlang term request bodies"), makes decoding fail with HTTP 400 if any map in the term has a __struct__ key.

Fixes are also going into shared libraries so other applications cannot be chained the same way. db_connection will stop applying :log callbacks taken from stream structs (CVE-2026-133555, fixed in 2.10.3). Work is also under way in plug, plug_crypto and ecto.

What May Have Been Exposed

Hex says it found "no evidence of unauthorized package modifications, or database changes." It checked that all 23 releases published during the incident match audit-log entries. It also checked that all 62 package files and 186 registry files written since 18:00 UTC match their database checksums. Documentation archives have no stored checksums, so they could not be checked the same way.

Database reads are not logged, so Hex cannot rule out that the attacker read email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs. It also cannot rule out reads of private packages and private docs, and says it will contact the affected organisations directly. The advisory also notes that the attacker's code could read the server's environment, which holds "the database URL, the storage credentials and the registry signing key."

What Hex Has Rotated

What To Do Now

If you have a hex.pm account:

mix hex.user auth
# or, for rebar3 users
rebar3 hex user auth

For teams and operators:

Why It Matters

Package registries are prime supply-chain targets. Here the most damaging outcome, poisoned packages, appears to have been avoided. Hex saw the attack fast, patched within about a quarter of an hour, and published a detailed timeline within a day. The incident still shows two lessons. First, "safe" deserialisation is not safe on unauthenticated input once forged structs can reach protocol code like inspect/1. Second, a signing key that cannot be rotated becomes a problem the moment a server is compromised. Until Hex ships its new signing system, the usual advice applies: use the official repository and lock dependency versions with checksums.

Sources

COMPUTE NODE · · --:--:--

Fresh cybersecurity news,
daily threat intelligence.

Daily cyber news, live threat intel and exploited CVEs.

Everything in one place

Self-hosted, hardened, and yours.

RUN IT

Local AI console

Chat with a model on your own hardware via Ollama or any OpenAI-compatible server. No cloud, no key.

DEFEND

Cyber threat feed

Automatic intel from CISA KEV, NVD, GitHub and big-tech vendor advisories (Microsoft, VMware, Cisco, Fortinet…), a live cyber threat map, and your own notes.

NEWS

News & videos

Articles and updates on pentesting, AI, and cyber — with embedded video, including YouTube. Post your own.

DIRECTORY

Registry

Runtimes, models, MCP servers, agents, and a full security & pentest tooling section.

PUBLISH

Posts

Write, edit, publish, and share articles backed by a real database and your account.

COMMUNITY

Forum

Threads and replies across categories from Models to Hardware to Security.

CODE

Repos

Curated AI and security GitHub repos, plus a shelf for pinning your own.

DOWNLOAD

Skill packs

Agent starters, RAG scaffolds, and defensive security & VAPT report templates.

Registry

Runtimes, models, MCP servers, agent frameworks, and a security & pentest tooling section — all links out to the real projects.

Local AI console

Talk to a model running on your own machine through Ollama or an OpenAI-compatible server — your prompts and the model's replies always go straight from your browser to your local model, never through a Reef server. Attach files for context, and pick up saved chats where you left off.

Type /image a prompt in the box below to generate
Not connected

Local AI hardware benchmark

A spec-based compatibility advisor — tells you which local models your hardware can run well, which will be slow, and which to skip. Connect to Ollama below for a real, measured speed test instead of an estimate.

1. Your hardware

2. Live check against your local model server (optional)

If a local model server is running, this cross-references the table above with what you've actually got loaded — and runs a real, measured speed test instead of an estimate.

AI Database

A browsable catalog of AI models across providers — context windows, pricing, and capabilities.

Loading…

Cyber threat feed

Latest threats pulled automatically every hour

⇩ Export STIX
Loading threat feed…

Cyber threat map

Attacks happening right now, all over the world.

Connecting…
LIVE · MAURITIUS TIME--:--:--
attack route, country to country attack route into Mauritius attacker reported worldwide
Loading live data…
attackers reported per minute · click to rewindnow

Top attack routesweb

Attackers based inlast hour

Networkslast hour

Click any dot, feed row or table row to see that IP's profile.

Mauritius

Who attacks Mauritius

Loading…

Web attacks malicious requests to Mauritian websites that were blocked
Network DDoS floods meant to knock Mauritian servers offline

    Mauritius · last 24 h

    How Mauritius is attacked

    Network-level attacks (DDoS) aimed at Mauritius, by method. They try to knock servers and networks offline by sheer volume.

    • Loading…

    The ports or services these floods aimed at aren't published.

    Mauritius · last hour

    Attackers located in Mauritius

    0attackers located in Mauritius were reported in the last hour

    This counts attacks coming from Mauritius, not attacks on it: IPs in Mauritius that servers elsewhere reported for attacking them. Usually zero or one; when it rises, it's often a hacked local server or router.

    Worldwide today

    What attackers are knocking on

    Ports most targeted across a worldwide network of sensors .

    Worldwide today

    Most active attackers

    Ranked by how many separate sensors they hit. Click a row for its profile.

    IPCountryNetworkSensors hitReports
    What you're looking at
    Blue routes

    Share of attack traffic from one country to another. Thicker, faster streams carry more. Particles show volume, not one per attack.

    Every 15 min · published 1–2 h behind
    Amber flashes

    An attacking IP that servers around the world reported in the last minute, placed where the IP is. Its targets aren't published, so there's no line.

    Every minute · shown about 1 min behind
    Locations

    IP locations are approximate (city level at best) and show where the machine is hosted, not who controls it.

    Approximate · city level at best

    News

    Articles, guides and updates on pentesting, AI, and cybersecurity — with embedded video. Add your own, including YouTube.

    Loading…

    Posts

    Loading…

    Loading posts…

    Forum

    Questions, answers, and talk about running AI locally.

    Loading forum…

    GitHub repositories

    Curated AI and security repos, plus your own pinned shelf.

    Command board

    One-liners, configs, and advice worth keeping — shared by everyone here.

    ⚠ Commands are shared with all users. Never include credentials, tokens, or internal hostnames. Review anything before you run it.
    Loading commands…

    Skill packs

    Starter files served from the API — AI agent scaffolds plus defensive security & VAPT reporting templates. Click to download.

    Loading skills…

    Your watchlist

    Follow threat actors, malware, CVEs and vendors — we tell you when a new report, CVE record or exploitation alert mentions them.

    Threat Library

    Threat actors, malware and tools — their attack techniques, Reef Sentinel coverage and indicators of compromise.

    Loading…

    Threat Intelligence

    Curated threat write-ups, advisories and analysis — with cover media.

    Loading…

    Tutorials

    Step-by-step guides for running local AI, using the console, and tracking threats. Admins can add their own.

    Loading…

    Downloads

    Direct links to the official homepage/download page for well-known cybersecurity, penetration-testing, and local-AI software. Always verify checksums/signatures from the vendor before running anything.

    Loading…

    Privacy Policy

    Loading…

    Terms & Conditions

    Loading…

    Help & FAQ

    Answers to common questions about Reef Sentinel, plus a formatting guide for posts, articles, and comments.


    Formatting guide

    Commands you can type into the body of a post, comment, or reply — no HTML needed. Comments and short replies only support bold, italic, and inline code.

    Contact us

    Questions, feedback, or a security disclosure? Reach us directly, or send a message and we'll get back to you by email.

    Loading…

    Send a message

    VAPT Report Generator

    Build an engagement, add findings with a live CVSS calculator, and generate a branded, print-ready report.

    Recon Toolkit

    Investigate any domain, IP, URL, file hash, email or CVE in one search, plus breach and password checks, hash identification and a payload cheatsheet.

    Outage Monitor

    Is Microsoft 365, Facebook, Google, AWS or ChatGPT down? Live status of the big tech services from their official status pages, every incident with its full timeline, and how long each one took to fix.

    Website Checker

    Reads a website's HTTP response headers to identify its framework and server, shows any known CVEs for the exposed versions with details, and recommends what to do.

    Control panel

    Manage everything shown on the site — news & videos, posts, homepage headlines, and subscribers. Admin only.

    Overview
    Content
    Site
    Account & Security

    Email settings

    SMTP on ports 25/465/587 is blocked outbound by some hosts (e.g. DigitalOcean droplets by default) — Resend and Brevo send over their HTTPS API instead, so they work even then. Only the selected provider is used to send; the others stay saved but idle, so you can switch back any time without losing settings.

    Get a key from resend.com/api-keys. Uses the "From address" below as the sender — it must be on a domain you've verified with Resend.

    Get an API key (not an SMTP key) from app.brevo.com/settings/keys/api. Uses the "From address" below as the sender — it must be a verified sender in your Brevo account.

    "From address" and "Site name/URL" are shared by SMTP, Resend, and Brevo — they control what recipients see, regardless of which provider is active.

    Send a test email

    Sends through whichever provider is currently active above. Save your settings first if you just changed them.

    SIGNAL LOST

    We couldn't find this page

    The page may have been moved or deleted, or the address was mistyped.