TL;DR
Attackers actively exploited a critical CVSS 10.0 hexpm RCE vulnerability tracked as CVE-2026-129514 against the hex.pm service on November 23, 2026. The flaw lets remote attackers run OS commands without a login via crafted Erlang payloads. Therefore, hex.pm users must reset passwords and 2FA right away, while self-hosted admins must patch now.
- CVE: CVE-2026-129514
- CVSS: 10.0 (Critical · CVSSv4)
- Product: hexpm
- Affected: 2016-02-23, ab1bbcef7cc8395d1056d3b1aa6a174353492d59
- Impact: Unauthenticated remote code execution through struct values in Erlang term request bodies
- Status: Exploited in the wild
- Patched in: 2026-11-23, 379b0a29bcc95164249f38ad7d772a37a8ff9533
- Action: Update to 2026-11-23, 379b0a29bcc95164249f38ad7d772a37a8ff9533 now
Why It Matters
Elixir, Erlang, and Gleam teams rely on hex.pm as their core package registry. According to the hex.pm incident report, an attacker sent 69 malicious requests and hit six web servers during the hex.pm active exploitation window. Because the flaw grants OS command access, the intruder could read sensitive server secrets. In its official GitHub security advisory, the team warns, “That user can read the environment of the application, which holds the database URL, the storage credentials and the registry signing key.”
How the Attack Works
The hexpm RCE vulnerability stems from unsafe deserialization (CWE-502) in the application/vnd.hex+erlang request parser. Specifically, the parser runs before routing or login checks on every POST request. The advisory explains, “This vulnerability was actively exploited against the hex.pm service on 2026-11-23.” When a client sends a crafted map with a __struct__ key, Elixir triggers protocol dispatch during error logging. As a result, a gadget chain through Ecto.Query.DynamicExpr and DBConnection.Stream runs arbitrary OS commands as the BEAM process user.
Affected Versions
- hex.pm service: Affected from 2016-02-23 until patched on 2026-11-23.
- hexpm/hexpm repository: Commits from
ab1bbcebefore fix commit379b0a2.
Patch and Mitigation Steps
The hex.pm team deployed fix commit 379b0a2 on November 23, 2026, to reject maps with __struct__ keys and rotated core secrets. If you use hex.pm, change your password and reset your 2FA app now. Also, self-hosted hexpm admins must pull commit 379b0a2 right away to close this hexpm RCE vulnerability.
Support Our Threat Intelligence
Find our vulnerability reports and weekly recaps helpful? Support our work today and unlock a 100% ad-free reading experience!