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

- **Severity:** CRITICAL 10.0
- **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:A`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 3.16% (percentile 89, 2026-11-29)
- **CWE:** CWE-502
- **Published:** 2026-11-24T13:48:12.692Z
- **Modified:** 2026-11-30T18:18:30.640Z

## Who should check

- Anyone running hexpm \>= 2016-02-23, \< 2026-11-23
- Anyone running hexpm \>= ab1bbcef7cc8395d1056d3b1aa6a174353492d59, \< 379b0a29bcc95164249f38ad7d772a37a8ff9533

## 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

- hexpm: \>= 2016-02-23, \< 2026-11-23 (cvelist)
- hexpm: \>= ab1bbcef7cc8395d1056d3b1aa6a174353492d59, \< 379b0a29bcc95164249f38ad7d772a37a8ff9533 (cvelist)

## Mitigation

- Upgrade hexpm to 2026-11-23 or later.
- Upgrade hexpm to 379b0a29bcc95164249f38ad7d772a37a8ff9533 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

## 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-29).

### 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.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-129514>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-129514> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-129514>
