CVE-2026-129514
published critical CVSS 4.0 · 10.0Unauthenticated remote code execution through struct values in Erlang term request bodies
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| hexpm | — | hex.pmhexpm · 2016-02-23 to < 2026-11-23 · Other versions: unaffected | Affected | Not stated | EEF |
| hexpm | — | hexpm/hexpmhexpm · ab1bbcef7cc8395d1056d3b1aa6a174353492d59 to < 379b0a29bcc95164249f38ad7d772a37a8ff9533 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | CISA-ADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| hexpm | hexpm | 2016-02-23 to < 2026-11-23 (affected · date)Default: unaffected | EEF · cna |
| hexpm | hexpm | ab1bbcef7cc8395d1056d3b1aa6a174353492d59 to < 379b0a29bcc95164249f38ad7d772a37a8ff9533 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
2- CWE-502 CWE-502 Deserialization of Untrusted Data
- CWE-502 CWE-502 Deserialization of Untrusted Data
References
6- EEF CNA record for CVE-2026-129514 https://cna.erlef.org/cves/CVE-2026-129514.html
- Fix commit 379b0a2 in hexpm/hexpm https://github.com/hexpm/hexpm/commit/379b0a29bcc95164249f38ad7d772a37a8ff9533
- Introducing commit ab1bbce in hexpm/hexpm https://github.com/hexpm/hexpm/commit/ab1bbcef7cc8395d1056d3b1aa6a174353492d59
- Unauthenticated remote code execution through struct values in Erlang term request bodies https://github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg
- Security incident on hex.pm https://hex.pm/blog/security-incident-on-hexpm
- OSV record EEF-CVE-2026-129514 https://osv.dev/vulnerability/EEF-CVE-2026-129514
Provider assertions
2EEF · cna
Unauthenticated remote code execution through struct values in Erlang term request bodies
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4073cbdfa235cda2a2e76ecd705dad3c7a75402a413e3b160b9d7f0c96719cb3
- Ingested
- 30 Nov 2026, 18:36:37 UTC
- Source record
- Official CVE record