Critical · 10.0 Critical vulnerabilities CVE-2026-129514
Critical Unauthenticated Remote Code Execution Vulnerability in hexpm (CVE-2026-129514)
A critical deserialization vulnerability in hexpm's Erlang term format parser allows unauthenticated remote attackers to execute operating system commands. The flaw was actively exploited against the hex.pm service and no fix is currently available.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A critical vulnerability has been disclosed in hexpm, the software behind the hex.pm package repository service. The vulnerability, tracked as CVE-2026-129514, allows an unauthenticated remote attacker to execute operating system commands by sending a specially crafted request. The issue has already been actively exploited against the hex.pm service itself. No fix is currently available.
What happened
A deserialization of untrusted data vulnerability was identified in hexpm, affecting the request body parser that handles the application/vnd.hex+erlang content type. An unauthenticated remote attacker can send a crafted Erlang external term format request body that results in execution of operating system commands. The vulnerability was actively exploited against the hex.pm service on 23 November 2026.
Technical cause
The vulnerability resides in the HexpmWeb.ErlangFormat.decode/1 function, which decodes request bodies using Plug.Crypto.non_executable_binary_to_term/2. This function accepts maps containing a __struct__ key. The decoded term is returned as request parameters by HexpmWeb.PlugParser.parse/5, and because this parser runs in the endpoint before routing and authentication occur, any POST request to any route can reach it. Because Elixir dispatches protocol implementations based on the __struct__ key, an attacker can control which Inspect and Enumerable implementations execute when the application inspects the parameters, for example during error reporting. This allows a chain through Ecto.Query.DynamicExpr and DBConnection.Stream to reach an apply/3 call on a {module, function, args} tuple taken directly from the attacker-controlled request body, resulting in arbitrary code execution.
Why it matters
This vulnerability allows complete compromise of an affected system without any authentication or user interaction. Since hexpm underlies the hex.pm package repository service, exploitation of this class of flaw can have broad consequences for the software supply chain that relies on it. The vulnerability has already been actively exploited against the hex.pm service itself, confirming real-world attack activity.
Who is affected
The vulnerability affects hex.pm as a service, in the period from 23 February 2016 before 23 November 2026, as well as the hexpm/hexpm codebase, in commits from ab1bbcef7cc8395d1056d3b1aa6a174353492d59 before commit 379b0a29bcc95164249f38ad7d772a37a8ff9533. No specific product version numbers were provided in the available facts for this advisory.
Discovery and timeline
The advisory was published on 24 November 2026 and last modified on the same day. Active exploitation against the hex.pm service was recorded on 23 November 2026, prior to public disclosure.
Fixes and mitigation
No fix is currently available according to the facts provided in this advisory. Operators running affected deployments should monitor for an official patch and consider restricting or disabling the affected request body parser functionality until a fix is released.
Recommended action
Administrators operating hexpm-based deployments should treat this as a critical, actively exploited issue. Given the absence of an available fix, consider blocking or restricting requests using the application/vnd.hex+erlang content type at the edge, closely monitor logs for suspicious POST requests, and apply vendor guidance as soon as it becomes available.
PatchBriefing score
10.0 / 10 · Critical
Official CVSS: 10.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
EPSS 0.0165 (77 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
Reported fixes
No fix is currently available according to the facts provided in this advisory. Operators running affected deployments should monitor for an official patch and consider restricting or disabling the affected request body parser functionality until a fix is released.
How this was built
1 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
Revision history
- Published
- Generated