Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Hex.pm Erlang Term Deserialization RCE (CVE-2026-129514)

CVE-2026-129514 is an unauthenticated remote code execution flaw in Hex.pm's Erlang term request-body decoder.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-129514
Vendor
Hex
Affected Product
Hex.pm and self-hosted hexpm/hexpm web application
Exploitation
Yes
Published
2026-11-24

CVE-2026-129514 is an unauthenticated remote code execution flaw in Hex.pm's Erlang term request-body decoder. Hex says an attacker exploited it against the hosted hex.pm service on 23 November 2026. The flaw concerns the hexpm web application and deployments of that code, rather than every package downloaded through Hex.The decoder accepted maps carrying an Elixir struct marker from untrusted request bodies. Subsequent request handling and error reporting dispatched protocol implementations selected through those structures. This chain reached a callback that could run operating system commands with the web server's privileges.

What it allows

How Did CVE-2026-129514 Lead to Command Execution?

Hex explains that the request parser decoded Erlang terms before routing and authentication. Its decoder blocked several dangerous term types but accepted maps carrying a struct marker. The application then treated attacker-supplied data as request parameters, exposing it to later protocol dispatch.

An error path inspected those parameters and reached library callbacks selected by the forged structures. Hex traces the resulting behavior through Inspect, Enumerable and a database connection logging callback. The final callback could invoke operating system commands as the web server user. This is Hex's analysis of its application path, not a general flaw in every Erlang term decoder.

Hex attributes 69 malicious requests and command execution on six hosted web servers to the 23 November incident. Its investigation found no evidence of unauthorized package modification or database changes. Hex says database reads were not logged, so access to data in its database cannot be ruled out.

For response tracking, map this confirmed hosted-service exploitation into a documented incident response workflow. Separately, the vulnerability intelligence platform can help teams prioritize their own hexpm application deployments. Brandefense Blackhole recorded one dark-chat item matching this CVE identifier from 26 August to 24 November 2026. That count measures a discussion item, not another confirmed intrusion.

Who is affected

Which Hex.pm Installations Need Review?

The NVD record identifies hosted hex.pm from 23 February 2016 until the 23 November 2026 fix. It also identifies the hexpm/hexpm codebase from the vulnerable decoder change until the fix commit, whose short identifier is 379b0a2. NVD had not yet analyzed product configurations in its 24 November record.

Operators of their own hexpm web application should inspect the deployed code and build, including replicas, workers and older images. Confirm that the Erlang term decoder rejects maps with a struct marker. Hex says that rejection is the central fix and that its hosted servers ran the patched build by 18:31 UTC on 23 November.

The Hex client and packages obtained from the hosted registry are a separate decision. Hex says its investigation found no unexpected package-storage writes, while it cannot fully rule out all private reads. For account protection, follow Hex's password and 2FA reset advice and use repo.hex.pm until its new signing system is released. Track the web application patch through a vulnerability management record.

Timeline

  1. 2026-11-23

    Hex says malicious requests reached six hosted web servers between 18:16 and 18:29 UTC.

  2. 2026-11-23

    Hex says every hosted server was on a patched build by 18:31 UTC and later requests from the attacking address were denied.

  3. 2026-11-24

    Hex published CVE-2026-129514 and its incident investigation.

What to do

  1. Check hosted Hex account access

    Change the hex.pm password and reset 2FA using Hex's security settings. Review suspicious messages that claim to come from Hex and verify their links.

  2. Use the official package source

    Fetch packages from repo.hex.pm while Hex's rotating registry signing system is pending. Update Hex clients when Hex releases the new signing support.

  3. Inventory self-hosted hexpm

    Identify web application deployments and confirm whether they contain the pre-fix Erlang term decoder. Give internet-facing instances priority.

  4. Deploy and verify the decoder fix

    Move affected hexpm deployments to code containing Hex's 23 November fix. Confirm each running instance rejects structs in the decoded request body and that the patched build is active.

  5. Review evidence of exploitation

    Examine request errors and application error-tracker events around suspicious requests. Hex's own error tracker recorded an error for each exploit request, which makes this a useful investigative lead.

What Brandefense can do

Frequently Asked Questions

What is CVE-2026-129514?

It is a Hex.pm web application deserialization flaw. An unauthenticated request could make the server run operating system commands through forged struct handling and error reporting.

Was CVE-2026-129514 exploited?

Yes. Hex reports that an attacker used it against hosted hex.pm on 23 November 2026 and that six web servers ran attacker-supplied commands.

Were Hex packages changed?

Hex says its investigation found no evidence of unauthorized package changes. It checked package-storage writes, but notes that some private reads and database reads cannot be fully excluded.

How do operators check a self-hosted hexpm installation?

Compare its deployed build with Hex's 23 November decoder fix and verify that decoded terms containing a struct marker are rejected. Check every running instance.

Sources

  1. Security incident on hex.pmHex
  2. CVE-2026-129514 recordNVD
  3. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →