CVE-2026-129514
Unauthenticated remote code execution through struct values in Erlang term request bodies
Mitigation
- Upgrade hexpm to 2026-11-23 or later.
- Upgrade hexpm to 379b0a29bcc95164249f38ad7d772a37a8ff9533 or later.
Who should check
- Anyone running hexpm >= 2016-02-23, < 2026-11-23
- Anyone running hexpm >= ab1bbcef7cc8395d1056d3b1aa6a174353492d59, < 379b0a29bcc95164249f38ad7d772a37a8ff9533
Vulnerability facts
- Affected
- hexpm >= 2016-02-23, < 2026-11-23; hexpm >= ab1bbcef7cc8395d1056d3b1aa6a174353492d59, < 379b0a29bcc95164249f38ad7d772a37a8ff9533
- Fixed in
- hexpm 2026-11-23, hexpm 379b0a29bcc95164249f38ad7d772a37a8ff9533
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 10.0 (v4.0, CNA)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:AOpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- Exploit maturity: Attacked
- EPSS
- 3.16% chance of exploitation in 30 days (percentile 89, 2026-11-26)
- CWE
- CWE-502
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-129514. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-129514.md Affected: hexpm >= 2016-02-23, < 2026-11-23; hexpm >= ab1bbcef7cc8395d1056d3b1aa6a174353492d59, < 379b0a29bcc95164249f38ad7d772a37a8ff9533 Fixed in: hexpm 2026-11-23, hexpm 379b0a29bcc95164249f38ad7d772a37a8ff9533 Steps: 1. Search this machine and project for hexpm: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-129514 being exploited?
There is no confirmed exploitation: CVE-2026-129514 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.16% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-129514?
Critical: CVSS 10.0 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-129514?
hexpm >= 2016-02-23, < 2026-11-23; hexpm >= ab1bbcef7cc8395d1056d3b1aa6a174353492d59, < 379b0a29bcc95164249f38ad7d772a37a8ff9533.
Is there a fix for CVE-2026-129514?
Yes. Fixed in hexpm 2026-11-23, hexpm 379b0a29bcc95164249f38ad7d772a37a8ff9533. Upgrade hexpm to 2026-11-23 or later. Upgrade hexpm to 379b0a29bcc95164249f38ad7d772a37a8ff9533 or later.
How do I check if I'm affected by CVE-2026-129514?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.