## Overview
Hackers exploited CVE-2026-129514 in the Hex.pm package registry, allowing remote command execution. This vulnerability was actively used against the hex.pm service on November 23, 2026. Reports indicate that attackers gained access to six servers, potentially exposing sensitive data.
## Technical Details
The vulnerability lies in the application/vnd.hex+erlang request body parser within hexpm. The function HexpmWeb.ErlangFormat.decode/1 decodes request bodies using Plug.Crypto.non_executable_binary_to_term/2. This function accepts maps with a __struct__ key, enabling attackers to manipulate the request parameters. The parser operates before authentication, allowing any POST request to reach it. Elixir's handling of the __struct__ key can lead to the execution of arbitrary operating system commands through a chain of calls involving Ecto.Query.DynamicExpr and DBConnection.Stream.
## Impact
The exploitation of this vulnerability can result in unauthorized command execution on affected servers. This breach poses significant risks, including the potential exposure of password hashes and two-factor authentication secrets. The vulnerability affects hex.pm from February 23, 2016, until the patch on November 23, 2026.
## Mitigation
Defenders should apply the latest patches to hexpm immediately. It is crucial to review server logs for any signs of exploitation and to reset any exposed credentials. Implementing additional security measures, such as rate limiting and input validation, can help mitigate similar vulnerabilities in the future.
CSURFACE Threat Sensor