Hex.pm Says an Attacker Ran Commands on Six Web Servers on Nov. 23, and Password Hashes May Be Exposed
Software / news
Hex.pm Says an Attacker Ran Commands on Six Web Servers on Nov. 23, and Password Hashes May Be Exposed
The Elixir and Erlang package registry traced the breach to a 2016 decoder change, found no tampered packages, and is asking every user to change passwords and reset 2FA.

Hex.pm, the package registry for Elixir, Erlang and Gleam, said an unauthorized party ran commands on six of its web servers on November 23 through a single unauthenticated request type, and that it cannot rule out that email addresses, password hashes and two-factor secrets were read.
The registry's maintainers Peter Ullrich, Jonatan Männchen and Eric Meadows-Jönsson published the incident report on November 24. The flaw is tracked as CVE-2026-129514, which the post lists as published at 13:48 UTC that day.
What the attacker did on November 23
The first exploit request arrived at 18:16:00 UTC. Between 18:16 and 18:29 the attacker sent 69 malicious requests, and six web servers were affected. A firewall rule went in at 18:27, and every request from the attacker's address was denied from 18:33:48. All servers were replaced with a patched build by 18:31.
| Time (UTC, Nov. 23) | Event |
|---|---|
| 18:16:00 | First exploit request |
| 18:27 | Firewall rule added |
| 18:49 | AWS access key deactivated |
| 19:07 | Emailed security report arrives describing the same flaw |
| 22:58 | Breach reported to IMY, the Swedish data protection authority |
| 23:05 | Reported to CISA, which confirmed receipt at 23:43 |
The team found no evidence of unauthorized package changes or database writes, and no lasting access. All 23 releases published during the incident match audit log entries. Documentation archives are the gap: they store no checksum, so they cannot be compared the same way.
Why a one-line check mattered
The affected endpoint decoded unauthenticated application/vnd.hex+erlang request bodies with Plug.Crypto.non_executable_binary_to_term/2. That function blocks executable terms but still allowed struct values. The attacker chained those structs through error reporting, Ecto and DBConnection's :log option until they reached operating system command execution.
A user named realcorvus advised Elixir developers in March 2024 to prefer that function over Erlang's plain binary_to_term for untrusted input, in an Elixir Forum post. The Hex.pm report shows that advice is incomplete. The post also says the registry's own safety check for this decoder was removed on February 23, 2016.
The fix, hexpm commit 379b0a2, rejects any term containing a map with a __struct__ key and returns a 400. Hardening changes are still pending in plug_crypto, plug, ecto and db_connection, tracked as CVE-2026-133555. Ash had a similar flaw, CVE-2026-124283, fixed in ash 3.38.0 on November 24.
What Hex users have to do
Hex.pm cannot log database reads, which is why it will not rule out exposure of email addresses, password hashes, API key hashes, 2FA secrets, sessions and audit logs. Organizations with private packages or docs will be contacted directly.
The post asks every user to do four things: change the hex.pm password, reset 2FA at hex.pm/dashboard/security, update the Hex client when the new signing release ships, and treat emails with caution. Until that release, fetch packages only from repo.hex.pm, not third-party mirrors. Rotating the signing and access-token keys logged everyone out of hex.pm and Hex clients.
API keys were not rotated. The team judged the 128-bit random values, stored as HMAC-SHA256, too strong to brute-force. The registry signing key was also left out of the rotation.
The incident follows a third-party audit. That audit by Paraxial.io and zentrust partners GmbH, published on April 8, led to fixes including CVE-2026-21619, an unsafe deserialization bug in hex_core. The new Hex client with the replacement signing system is due in the coming days, and the project has not given a date. Two other open-source security stories on the site cover a Gentoo packager's account of security work breaking downstream and Java4Shell, CVE-2026-114938, a Base64 bug in OpenJDK 17.0.6 and later.
Sources
More in Software
- 01One Developer Reached 118 FPS in iOS Safari by Reading Scroll Position, and WebKit Still Defaults to 60Rida F'kih's technique avoids touch events entirely; WebKit's own bug tracker shows the 60 FPS cap is a default flag, not a hardware limit.
- 02OpenLaszlo Co-Founder David Temkin Releases Declare, an MIT UI Language for LLMs, With Single-Run NumbersThe page claims 1,279 lines against React's 2,666 for the same ticket app, and labels its own evaluation "not yet a benchmark."
- 03A Lean 4 Check of Clojure 1.12.7 Found 17 Bugs the Author Could Not Find in Any Upstream TicketNaoya Yamashita combined a theorem prover with 3 million differential-test operations; the Clojure tracker already shows how slowly some adjacent bugs move.
- 04StarSling's Agents Rewrite GitHub Actions Workflows, and Commenters Ask What Gets DeletedThe YC P25 company reports 3.9x to 36.4x speedups on open-source repos. Every figure is its own, and the thread leaves test weakening unanswered.