Critical vulnerability
Critical remote code execution in hex.pm (CVE-2026-129514)
Remote code execution in hex.pm · Hex
CVE-2026-129514
Unauthenticated remote code execution through struct values in Erlang term request bodies
- Severity
- Critical 10.0
- Published
- 24 Nov 2026
- Fixed in
- 2026-11-23
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data · Change data · Take it down
Deserialization of Untrusted Data vulnerability in the application/vnd.hex+erlang request body parser in hexpm hexpm allows an unauthenticated remote attacker to execute operating system commands via a crafted Erlang external term format request body. This vulnerability was actively exploited against the hex.pm service on 2026-11-23.
HexpmWeb.ErlangFormat.decode/1 in lib/hexpm_web/erlang_format.ex decodes the body with Plug.Crypto.non_executable_binary_to_term/2, which accepts maps that have a struct key. HexpmWeb.PlugParser.parse/5 returns the decoded term as the request params. The parser runs in the endpoint before routing and authentication, so a POST to any route reaches it. Elixir dispatches protocols on the struct key, so the client selects which Inspect and Enumerable implementations run when error reporting inspects the params.
| Software | Affected versions |
|---|---|
| hex.pmHex |
|
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-129514
From NVD, the CVE Program, OSV.dev with the GitHub Advisory Database, WPVulnerability, WordPress's security advisories and CISA's Known Exploited Vulnerabilities catalog, as they stood when this was written. Each vulnerability's own page has its latest rating and fix. This product uses the NVD API but is not endorsed or certified by the NVD.