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

- Severity: Critical 10.0 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.14%, higher than 88% of CVEs (2026-12-01)
- Published: 2026-11-24T13:48:12.692Z
- Modified: 2026-11-30T18:18:30.640Z
- Also known as: EEF-CVE-2026-129514, GHSA-9pmm-hf4r-27pg
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: EEF

## Description

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.

(As written by CVE List.)

## Affected

- hex.pm: from 2016-02-23 before 2026-11-23
- hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533
- https://github.com/hexpm/hexpm: from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before 379b0a29bcc95164249f38ad7d772a37a8ff9533

## Every score

- EEF: CVSS:4.0 10.0 Critical `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`
- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-129514.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-129514> (related)
- <https://hex.pm/blog/security-incident-on-hexpm> (technical-description, web)
- <https://github.com/hexpm/hexpm/commit/ab1bbcef7cc8395d1056d3b1aa6a174353492d59> (related, web)
- <https://github.com/hexpm/hexpm/commit/379b0a29bcc95164249f38ad7d772a37a8ff9533> (fix, patch)

## Sources

- CVE List: [CVE-2026-129514](https://www.cve.org/CVERecord?id=CVE-2026-129514), CVE Terms of Use, modified 2026-11-30
- Erlang Ecosystem Foundation: [EEF-CVE-2026-129514](https://osv.dev/vulnerability/EEF-CVE-2026-129514), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-129514](https://nvd.nist.gov/vuln/detail/CVE-2026-129514), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-129514 · Whole record: https://cve.day/CVE-2026-129514.json · Rebuilt by cve.day 2026-11-30T18:32:17.189Z
