CVE Watchtower

CVE-2026-129514hexpm Deserialization of Untrusted Data

NVD

Vulnerability Summary

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.
Severity Level
CRITICAL(10.0)
Published Date
Nov 24, 2026
Last Modified
Nov 24, 2026
Exploitation Status
ACTIVE
Root Weakness (CWE)
The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
CVSS v4.0 Base Metrics — Score 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
Attack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)High
Confidentiality (Subsequent System)High
Integrity (Subsequent System)High
Availability (Subsequent System)High

Affected & Patched Versions

Affected Versions
  • hexpm >= 2016-02-23 and < 2026-11-23
  • hexpm >= ab1bbcef7cc8395d1056d3b1aa6a174353492d59 and < 379b0a29bcc95164249f38ad7d772a37a8ff9533
Patched Versions
  • hexpm 2026-11-23
  • hexpm 379b0a29bcc95164249f38ad7d772a37a8ff9533

What to do

Treat as urgent. Attackers are exploiting this flaw.

  1. Check whether you run hexpm and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Nov 24, 2026Published
  • Nov 24, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new hexpm CVEsYou are reading CVE-2026-129514. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 24, 2026 14:13 UTC