Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend POST with application/vnd.hex+erlang body
-
DeliveryDeliver crafted Erlang struct with __struct__ key
-
ExploitParser deserializes term before auth
-
ExecutionProtocol dispatch reaches apply/3 on attacker tuple
-
ImpactRun OS command, exfiltrate signing key and credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions beyond the product accepting its own content type: remote unauthenticated exploitation succeeds against default hexpm deployments because HexpmWeb.PlugParser handles application/vnd.hex+erlang bodies in the endpoint before routing and authentication, so a POST to any route is sufficient. The only prerequisites are that the target runs the hexpm server at a commit between ab1bbce and 379b0a2 (or the hex.pm service before 2026-11-23) and that the attacker can reach an HTTP endpoint and craft an Erlang external-term-format body embedding a struct chain (Ecto.Query.DynamicExpr → DBConnection.Stream → {module,function,args}). Limiting factors are minimal: no authentication, no user interaction, and no non-default configuration are needed; the practical constraint is the attacker's ability to construct the valid term-format payload, and the fix (returning an error for any decoded map carrying a __struct__ key) is the complete remediation. |
| Impact | This is a top-priority, act-now vulnerability with concordant signals across every source. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with E:A and all impact metrics High scores 10.0, and the vuln.today Decision label is act_now. The mechanism is fully documented: an unauthenticated CWE-502 deserialization flaw in the application/vnd.hex+erlang body parser that runs before routing and authentication, so any POST reaches it and a crafted Erlang term chains through Ecto.Query.DynamicExpr and DBConnection.Stream to an apply/3 call executing OS commands as the BEAM user. Active exploitation is confirmed by the vendor GHSA advisory and the EEF CNA record, which state the hex.pm service was attacked on 2026-11-23 - this is not a high-CVSS-but-low-real-risk case. Signal caveat: the input provides no CISA KEV field, so active exploitation is confirmed by vendor/CNA rather than by KEV; no EPSS score and no working exploit-code reference are supplied, so widespread commodity exploitation cannot be judged from the data, though the confirmed targeted attack and trivial attack complexity make the risk acute regardless. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a single POST request to any hexpm route with Content-Type application/vnd.hex+erlang, carrying an Erlang external-term-format body encoding a struct whose __struct__ key and nested DBConnection.Stream fields smuggle a {module, function, args} tuple. When error reporting inspects the params, protocol dispatch walks the attacker-chosen implementations and reaches apply/3, running an OS command as the BEAM process user. No authentication, user interaction, or special timing is required (AV:N/AC:L/PR:N/UI:N); the vendor confirms this exact class of request was used against hex.pm on 2026-11-23, though no standalone working exploit code is referenced in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Unauthenticated remote code execution in the hexpm registry server (the open-source code behind hex.pm) lets any remote attacker run operating system commands by POSTing a crafted Erlang external term format body. The parser runs in HexpmWeb.Endpoint ahead of routing and authentication, so a request to any route with the application/vnd.hex+erlang content type reaches the vulnerable decode path, whose acceptance of maps carrying a __struct__ key enables protocol-dispatch abuse through Ecto.Query.DynamicExpr, DBConnection.Stream and ultimately an apply/3 on an attacker-supplied {module, function, args} tuple. Severity is maximal (CVSS 10.0, PR:N, full confidentiality/integrity/availability impact including the registry signing key and database credentials held in the BEAM environment), and the vendor advisory reports the flaw was exploited against the hex.pm service on 2026-11-23; the priority label is act_now and the upstream fix commit is public.
RemediationAI
Vendor-released patch: update hexpm/hexpm to commit 379b0a29bcc95164249f38ad7d772a37a8ff9533 (https://github.com/hexpm/hexpm/commit/379b0a29bcc95164249f38ad7d772a37a8ff9533), which changes HexpmWeb.ErlangFormat.decode/1 to reject any decoded map that contains a __struct__ key so HexpmWeb.PlugParser returns a 400 instead of passing the term through as params; the hosted hex.pm service was remediated on 2026-11-23. Per the advisory this fix is the complete remediation, and there is no partial in-code hardening equivalent. If the patched commit cannot be deployed immediately, a compensating control at the edge is to reject or strip HTTP requests whose Content-Type is application/vnd.hex+erlang before they reach the endpoint (reverse proxy/WAF rule), understanding the trade-off that this breaks the Erlang-term API used by Hex clients for package publishing and related endpoints, so publishing workflows will fail until the upgrade lands; blocking only unauthenticated POSTs to non-publish routes is a narrower variant but leaves the decoder reachable wherever the content type is still accepted. Because the payload executes as the BEAM user, any host that ran an affected commit before patching should be treated as potentially compromised: rotate the database URL credentials, storage credentials and the registry signing key held in the application environment, and review logs for anomalous 500 responses to POSTs with the Erlang content type. Advisory and tracking links: https://github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg, https://cna.erlef.org/cves/CVE-2026-129514.html, https://osv.dev/vulnerability/EEF-CVE-2026-129514.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is CWE-502 deserialization of untrusted data in an Elixir/Phoenix application. HexpmWeb.ErlangFormat.decode/1 calls Plug.Crypto.non_executable_binary_to_term/2 with [:safe], which blocks functions and new-atom creation but places no restriction on maps, so a map containing a __struct__ key survives decoding and is returned by HexpmWeb.PlugParser.parse/5 as the request params. Because Elixir structs are plain maps and protocol dispatch keys only on __struct__, the request body chooses which Inspect and Enumerable implementations execute. Plug.MethodOverride evaluates body_params["_method"], which for a struct calls fetch/2 on the named module; Ecto.Query.DynamicExpr lacks fetch/2, raising UndefinedFunctionError with the decoded struct in the top stack frame. Error reporting (Sentry, Bandit's error log via Exception.format/3, the JSON log formatter) then calls inspect/1, dispatching to Inspect.Ecto.Query.DynamicExpr, which calls Enum.map/2 on the untyped binding field; that field can hold a DBConnection.Stream struct whose Enumerable implementation reaches DBConnection.reduce/3 and declare/4, where the :log option taken from the struct is applied as apply(mod, fun, [entry | args]) on an attacker-chosen {module, function, args} tuple, invoking an OTP standard-library function that executes an OS command as the BEAM user. The Inspect path runs inside a rescue in Inspect.Algebra, so the request completes with an ordinary 500 response for the MethodOverride error. The upstream fix makes decode/1 return an error whenever any map in the decoded term carries a __struct__ key, which the parser converts into a 400 response.
Know when Hexpm gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Unauthenticated network RCE reachable before auth gives AV:N/AC:L/PR:N/UI:N; command execution escapes the app into the OS user context so S:C, with full C/I/A loss.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
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.
Technical POC Analysis
CWE-502 Deserialization of Untrusted Data.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical unauthenticated remote code execution vulnerability in the hexpm registry server (open-source code behind hex.pm) allows any remote attacker to execute arbitrary OS commands, potentially compromising the registry's signing key and database credentials. The vendor advisory confirms the flaw was exploited against the public hex.pm service on 2026-11-23. Leadership should prioritize immediate action as this affects the integrity and availability of the package registry ecosystem, with downstream risk to all dependent systems.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Insufficient session expiration in hexpm. Password reset tokens never expire, enabling persistent account takeover.
Silent dependency checksum bypass in hexpm/hex package manager (versions 0.16.0 through 2.4.1) allows attackers to subst
Improper input sanitization in hexpm's SharedAuthorizationView module allows unauthenticated attackers to inject malicio
Incorrect authorization in the hex.pm OAuth `client_credentials` endpoint allows any API key bearing the `repositories`
Path traversal in the Hex package manager for the Elixir/Erlang (Mix) ecosystem, versions 0.6.0 through 2.5.1, lets a ma
Hex, the package manager used by Elixir and Erlang projects, fails to properly scope its 'release-age cooldown' protecti
An uncontrolled resource consumption vulnerability in the Hex.pm package manager allows authenticated attackers to cause
Hexpm's OAuth implementation fails to enforce read-only API key restrictions during token exchange, allowing an attacker
Integrity-check bypass in the Hex package manager (hexpm hex) allows a compromised or attacker-controlled package mirror
Path traversal in hexpm's Local Storage backend allows unauthenticated attackers to read sensitive files through relativ
Improper TLS server-certificate validation in hex_core (0.1.0 through versions before 0.20.0) lets an attacker who alrea
Improper certificate validation in Hex (the Elixir/Erlang package manager client, versions 0.20.2 through 2.5.1) allows
EUVD-2026-134070
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB