Hexpm
Unauthenticated remote code execution through struct values in Erlang term request bodies
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. A chain through Ecto.Query.DynamicExpr and DBConnection.Stream reaches an apply/3 call on a {module, function, args} tuple taken from the request body. This issue affects hex.pm: from 2016-02-23 before 2026-11-23; hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2016-02-23, < 2026-11-23
Fixed in 2026-11-23
- >= ab1bbcef7cc8395d1056d3b1aa6a174353492d59, < 379b0a29bcc95164249f38ad7d772a37a8ff9533
Fixed in 379b0a29bcc95164249f38ad7d772a37a8ff9533
Mitigation
Upgrade hexpm to 2026-11-23 or later.
Upgrade hexpm to 379b0a29bcc95164249f38ad7d772a37a8ff9533 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 7 h after publication; not in CISA KEV. First PoC: hoarseprairie/CVE-2026-129514-Poc (created 24 Nov 2026, found by us: 24 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| hoarseprairie/CVE-2026-129514-Poc | 24 Nov 2026 +7 h | 24 Nov 2026 | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.