# CVE-2026-129514: Unauthenticated remote code execution through struct values in Erlang term request bodies

- Priority: **Prioritise**
- Reason: Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2026-11-23, 379b0a29bcc95164249f38ad7d772a37a8ff9533 (CNA); fix release not confirmed
- Status: published
- Published: 2026-11-24 · Modified: 2026-11-30
- Record: https://cvemate.com/vulnerability/CVE-2026-129514 · JSON: https://cvemate.com/vulnerability/CVE-2026-129514/json

## Description

```text
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.
```

## Signals

- CVSS: 10 critical (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:A
- EPSS: 3.135%, percentile 88.299%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- hexpm hexpm: ≥ 2016-02-23, \< 2026-11-23 \| ≥ ab1bbcef7cc8395d1056d3b1aa6a174353492d59, \< 379b0a29bcc95164249f38ad7d772a37a8ff9533

## References

- <https://github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg>
- <https://cna.erlef.org/cves/CVE-2026-129514.html>
- <https://osv.dev/vulnerability/EEF-CVE-2026-129514>
- <https://github.com/hexpm/hexpm/commit/ab1bbcef7cc8395d1056d3b1aa6a174353492d59>
- <https://github.com/hexpm/hexpm/commit/379b0a29bcc95164249f38ad7d772a37a8ff9533>
- <https://hex.pm/blog/security-incident-on-hexpm>

---

Data as of 2026-12-05T07:01:54.580Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
