CVE-2026-129514: Unauthenticated RCE in Hexpm Erlang term request-body parser
CVE-2026-129514 is an unauthenticated remote code execution vulnerability in the Hexpm server application's application/vnd.hex+erlang request-body parser. HexpmWeb.ErlangFormat.decode/1 uses Plug.Crypto.non_executable_binary_to_term/2 with the safe option, which rejects functions and new atoms but accepts maps containing a struct key. HexpmWeb.PlugParser.parse/5 exposes these decoded terms as request parameters before routing and authentication. Attacker-controlled struct markers select Elixir protocol implementations during error reporting, enabling a chain through Ecto.Query.DynamicExpr and DBConnection.Stream to invoke attacker-selected functions and execute operating system commands. The vulnerability affected server code introduced on February 23, 2016, until the fix deployed on November 23, 2026. It was actively exploited on November 23, 2026, and has a CVSS v4.0 score of 10.0. The locally installed Hex client is not the vulnerable component.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary operating system command execution with the privileges of the BEAM process user, threatening application confidentiality, integrity, and availability. Accessible resources can include database contents, private packages and documentation, storage credentials, and the registry signing key. Exploitation on November 23, 2026, achieved command execution on six production web servers. Investigators found no evidence of unauthorized package modifications, database changes, or persistent access, but incomplete read and command logging prevented them from excluding disclosure of email addresses, password hashes, API key hashes, two-factor authentication secrets, sessions, private artifacts, or application secrets. Theft of the registry signing key and downstream supply-chain compromise were not established.
Mitigation
If you can’t patch tonight, do this now.
Until patching is complete, restrict untrusted access to affected registry deployments or block application/vnd.hex+erlang requests before they reach the application parser. Route-specific authentication is insufficient because parsing occurs before routing and authentication. For potentially compromised deployments, rotate readable infrastructure credentials and session/access-token signing keys, invalidate sessions, and review package integrity and account activity. Affected account holders should change passwords, regenerate two-factor authentication secrets and recovery codes, and reauthenticate clients. Use only the official package repository rather than third-party mirrors pending deployment of the replacement registry signing system and corresponding client updates. Registry signing-key theft was not confirmed.
Remediation
Patch, then assume compromise.
Deploy hexpm/hexpm commit 379b0a29bcc95164249f38ad7d772a37a8ff9533 or an equivalent server-side fix. The affected source range begins at commit ab1bbcef7cc8395d1056d3b1aa6a174353492d59 and ends before the fixing commit. The fix rejects decoded terms containing any map with a struct key, including nested occurrences, and returns HTTP 400. Apply the fix to every self-hosted or forked registry instance and ensure replacement or autoscaled servers use the patched build. Updating the Hex client alone does not fix this server vulnerability. Upgrade db_connection to 2.10.3 or later to address the associated execution gadget, but do not treat that dependency update as a substitute for fixing unsafe deserialization.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
References
Frequently asked questions
- Is CVE-2026-129514 exploited in the wild?
- Yes. As of Nov 28, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-129514?
- As of Nov 28, 2026, Mallory has found no public exploit for CVE-2026-129514.
- Is there a patch for CVE-2026-129514?
- Deploy hexpm/hexpm commit 379b0a29bcc95164249f38ad7d772a37a8ff9533 or an equivalent server-side fix. The affected source range begins at commit ab1bbcef7cc8395d1056d3b1aa6a174353492d59 and ends before the fixing commit.
- How severe is CVE-2026-129514?
- CVE-2026-129514 has a CVSS v4 score of 10.0 (Critical) and an EPSS score of 3.2% (89th percentile) as of Nov 28, 2026.
Recent activity
49 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.