Skip to content
Hex.pm unauthenticated RCE via Erlang term format deserialization (CVE-2026-129514)

Hex.pm unauthenticated RCE via Erlang term format deserialization (CVE-2026-129514)

First seen 24 Nov 2026, 18:49 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 24, 2026 at 18:49 UTC
  • •CVE-2026-129514 is an unauthenticated deserialization flaw in hex.pm's application/vnd.hex+erlang body parser allowing OS command execution.
  • •The CNA record states the vulnerability was actively exploited against hex.pm on 2026-11-23.
  • •The parser runs before routing and authentication, so any POST route reaches the vulnerable decode path.
  • •The affected hexpm/hexpm range runs from commit ab1bbcef7cc8395d1056d3b1aa6a174353492d59 until the fix at 379b0a29bcc95164249f38ad7d772a37a8ff9533.
  • •Lobste.rs discussion argues Erlang's :safe binary_to_term option does not protect Elixir structs, and proposes Elixir-level safe conversion functions.

Hex.pm, the package registry for the Erlang and Elixir ecosystems, suffered a security incident involving its handling of Erlang external term format (ETF) request bodies. CVE-2026-129514 describes a deserialization flaw in the application/vnd.hex+erlang request body parser in hexpm that allows an unauthenticated remote attacker to execute operating system commands via a crafted request. The CNA record states the vulnerability was against the hex.pm service on 2026-11-23. The parser decodes bodies with Plug.Crypto.non_executable_binary_to_term/2, which accepts maps containing a __struct__ key; the decoded term is returned as request params before routing and authentication run, so a POST to any route reaches it. Per the CNA record, Elixir protocol dispatch on the __struct__ key lets the client select Inspect and Enumerable implementations during error reporting, and a chain through Ecto.Query.DynamicExpr and DBConnection.Stream reaches an apply/3 call on a client-supplied {module, function, args} tuple. The affected range is given as hex.pm from 2016-02-23 until 2026-11-23, and hexpm/hexpm from commit ab1bbcef7cc8395d1056d3b1aa6a174353492d59 until 379b0a29bcc95164249f38ad7d772a37a8ff9533, which is the fixed commit. The Lobste.rs discussion, which links a commit changing HexpmWeb.ErlangFormat, argues that Erlang's:safe option for binary_to_term is not sufficient in Elixir because structs are built on maps, and proposes Elixir-level safe conversion functions. The articles do not provide a CVSS score, and the Lobste.rs post does not describe the scope of data exposure or any post-exploitation activity.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Updated 18h ago How this analysis works

Timeline

2016-02-23
Vulnerable hex.pm code path begins
The CNA record gives 2016-02-23 as the start of the affected range for hex.pm.
cna.erlef.org
2026-11-23
Active exploitation against hex.pm
The CNA record states the vulnerability was actively exploited against the hex.pm service on this date.
cna.erlef.org
2026-11-24
Security incident discussed publicly
Lobste.rs posted a thread on the Hex.pm security incident linking the fix commit to HexpmWeb.ErlangFormat.
Lobste.Rs

More articles in this cluster (3)

Following this threat?

Track CVE-2026-129514 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I affected?
The CNA record lists hex.pm from 2016-02-23 until 2026-11-23 and hexpm/hexpm commits before 379b0a29bcc95164249f38ad7d772a37a8ff9533 as affected. Self-hosted hexpm deployments on earlier commits fall within that range.
Is this being exploited?
The CNA record states the vulnerability was actively exploited against hex.pm on 2026-11-23. The articles do not describe the scope of any compromise.
What should operators do first?
Deploy the fix at commit 379b0a29bcc95164249f38ad7d772a37a8ff9533 or later. The articles do not describe interim mitigations.