External risk intelligence

Hexpm Erlang Format Request Body Command Execution

CVE advisorySeverity: CRITICAL (CVSS 10.0)

CVE-2026-129514

The vulnerability exists in a request body parser that processes data before routing and authentication, making it reachable by any unauthenticated request to the public endpoint. As this parser is designed to handle public-facing HTTP request traffic for a package management service, it is inherently exposed to the internet by design in normal operations.

Deserialization

Halo Surface Signal: 5 out of 5 — more likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory addresses a critical vulnerability in a package management service that allows unauthenticated attackers to execute commands on the server by submitting specially crafted data. The flaw is in how the system processes incoming data before authentication, meaning any unverified request could potentially exploit this weakness. While the direct impact depends on the specific configuration and data processed, such vulnerabilities can, in the worst case, lead to a complete compromise of the affected service.

  • A flaw lets attackers run commands on the service.
  • It affects a widely used package management system.
  • Confirm relevance and assess potential exposure.

Attack Path

How an attacker could exploit the issue

An unauthenticated remote attacker can trigger this vulnerability by sending a specially crafted request body to any route of the application. The vulnerability resides in a request parser that processes data before authentication, allowing attackers to influence which code runs during error reporting. This chain of events can lead to the execution of arbitrary operating system commands.

  • No authentication required to attack.
  • Triggered by a malicious request body.
  • Leads to operating system command execution.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an unauthenticated remote attacker to execute operating system commands by sending a specially crafted Erlang external term format request body. The parser runs before authentication and routing, making it reachable by any POST request to any route. When error reporting inspects the parameters, the client can select which Erlang protocols run, potentially leading to command execution through a chain involving Ecto.Query.DynamicExpr and DBConnection.Stream.

  • System commands could be executed.
  • Unauthenticated requests could trigger it.
  • Compromised server or service.

Operational Fix

Recommended remediation, mitigation, and detection steps

The hex.pm service and its associated codebase are directly impacted by this deserialization vulnerability. Given the active exploitation against hex.pm, the immediate priority is for the platform or infrastructure team managing the hex.pm service to confirm its exposure and business criticality, identify the accountable owner for the affected component, and begin planning remediation based on the high-risk nature of this exploit.

  • Platform team owns the issue.
  • Verify external accessibility and criticality.
  • Coordinate immediate vendor remediation.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the hexpm software and how is it used?

Hexpm is the backend service infrastructure for the Hex package manager, which developers use to publish and manage libraries for the Elixir and Erlang ecosystems. It acts as a central repository, handling millions of requests to distribute software dependencies securely. The affected component specifically manages how the service parses incoming data formats, serving as a critical gateway for package interactions.

What does Deserialization of Untrusted Data mean for CVE-2026-129514?

This weakness, categorized as CWE-502, occurs when an application accepts complex data structures from a user and reconstructs them without sufficient validation. In this case, the system mistakenly treats the incoming data as trusted instructions. An attacker exploits this by packaging malicious commands inside the data, which the system then executes as if they were legitimate internal tasks.

How can an attacker trigger this vulnerability?

An attacker triggers the flaw by sending a POST request containing a specially crafted Erlang external term format. Because the vulnerable parser operates before the application performs any routing or user authentication, the attacker does not need an account or valid credentials. Simply sending the malicious request to any route on the server is sufficient to set the exploit chain in motion.

Is my service at risk if it is not exposed to the internet?

Halo Surface Signal indicates that this vulnerability is highly relevant because the affected parser is designed to handle public HTTP traffic. While internal-only instances face a lower risk of external targeting, the design flaw remains present regardless of network perimeter. If your service is reachable by any user or automated system, it is effectively exposed to this command execution risk.

What is the first step to address this CVE?

Identify if your environment uses the affected versions of the hexpm codebase. Given the critical nature of the flaw, platform teams should immediately coordinate with the system owners to verify deployment configurations. The priority is to plan for the application of security patches provided by the project maintainers to close the parser's insecure deserialization behavior.

References