// AI threat desk · 26 Nov 2026
Home/SUPPLY · AI Supply Chain
AI Supply ChainCriticalRCECVSS 10.0 / 9.8

Hex.pm flaw let an attacker run commands on web servers

An attacker exploited a Hex.pm flaw on Nov 23, 2026, to run commands on its web servers.

AI-generated image of a security analyst monitoring blurred terminal logs in a dim operations centre.
AI-generated image, not a photo of the event.
Key takeaways
  • An attacker actively exploited the Hex.pm service on Nov 23, 2026.
  • The flaw could let an unauthenticated remote attacker execute operating system commands through a crafted request body.

Hex.pm was actively exploited on Nov 23, 2026, when an attacker used a vulnerability to run operating system commands on the service’s web servers.

The flaw let an unauthenticated remote attacker submit a crafted Erlang external term format request and execute operating system commands. The parser handled requests before routing and authentication, so a POST to any route reached it.

On this page

The parser ran before routing and authentication

GitHub said the request parser placed no restriction on maps, so a map with a __struct__ key passes.

GitHub said the related db_connection issue is not exploitable in db_connection alone and affects versions from 1.1.0 before 2.10.3.

Hex.pm replaced credentials after the attack

The Hacker News reported that an attacker ran operating system commands on six production Hex.pm servers on Monday.

Hex.pm received 69 malicious requests between 18:16 and 18:29 UTC, affecting six web servers. It said six servers were hit because a restart at 18:28 brought up three new servers still on the vulnerable build.

Hex.pm added a firewall rule at 18:27, and the rule took effect between 18:30 and 18:33.

Hex.pm replaced storage, CDN, email and database credentials, along with the keys used to sign sessions and access tokens. It said the attacker's commands could read credentials used by its servers.

Hex.pm found no evidence of unauthorized package changes, database changes or continued attacker access. It could not rule out access to database data because database reads were not logged, including email addresses, password hashes, API key hashes, two-factor authentication secrets, sessions and audit logs.

What to do now

  1. Reset your two-factor authentication at hex.pm/dashboard/security: under ‘Authenticator App’, choose ‘Setup New App’ and verify a code from the new entry.

FAQ

What happened to Hex.pm?

An attacker actively exploited a vulnerability in the hex.pm service on Nov 23, 2026, and ran operating system commands on its web servers.

What could the Hex.pm flaw let an attacker do?

An unauthenticated remote attacker could execute operating system commands through a crafted Erlang external term format request body.

Was the Hex.pm vulnerability exploited?

Yes. GitHub said the vulnerability was actively exploited against the hex.pm service on Nov 23, 2026.

How did Hex.pm fix the flaw?

The decoder now rejects any decoded term containing a map with a __struct__ key, and the parser turns that error into a 400 response.

What data might the attacker have accessed?

Hex.pm could not rule out access to email addresses, password hashes, API key hashes, two-factor authentication secrets, sessions and audit logs because database reads were not logged.

Sources

  1. Unauthenticated remote code execution through struct values in Erlang term request bodies, GitHubPrimary
  2. Code execution via the :log option of forged DBConnection.Stream structs in db_connection, GitHubPrimary
  3. Security incident on hex.pm, Hex.pmPrimary
  4. Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw to Compromise 6 Package Registry Servers, The Hacker News
  5. Newly Patched VMware vCenter Flaw Exploited as Zero-Day by Chinese APT, SecurityWeek
How we checked this story
ClaimSourceStatus
An attacker ran operating system commands on six production Hex.pm servers on Monday.Hex.pm, via The Hacker NewsAttributed
The vulnerability was actively exploited against the hex.pm service on November 23, 2026.GitHubConfirmed
Hex.pm said an unauthorized third party exploited a vulnerability that let the attacker run commands on its web servers.Hex.pmConfirmed
The flaw affected hex.pm from February 23, 2016, before November 23, 2026.GitHubConfirmed
An unauthenticated remote attacker could execute operating system commands through a crafted Erlang external term format request body.GitHubConfirmed
The parser ran before routing and authentication, so a POST to any route reached it.GitHubConfirmed
The Hacker News said the flaw was tracked as CVE-2026-129514 with a maximum CVSS score of 10.0.The Hacker NewsAttributed
Hex.pm received 69 malicious requests between 18:16 and 18:29 UTC, affecting six web servers.Hex.pmConfirmed
Hex.pm added a firewall rule at 18:27, and it took effect between 18:30 and 18:33.Hex.pmConfirmed
The fix makes the decoder reject any decoded term containing a map with a __struct__ key and return a 400 response.GitHubConfirmed
Hex.pm found no evidence of unauthorized package modifications, database changes, or maintained attacker access.Hex.pmConfirmed
Hex.pm could not rule out that the attacker accessed database data, including email addresses, password hashes, API key hashes, two-factor authentication secrets, sessions, and audit logs.Hex.pmConfirmed
The db_connection issue affects versions from 1.1.0 before 2.10.3.GitHubConfirmed
SecurityWeek said the VMware vCenter flaw was tracked as CVE-2026-123890 and had a CVSS score of 9.8.SecurityWeekAttributed
SecurityWeek said the VMware Directory Service flaw could let remote unauthenticated attackers obtain an authenticated session with administrator privileges.SecurityWeekAttributed
Mandiant linked exploitation of the VMware flaw to Armory Castle, a suspected Chinese threat actor also known as Warp Panda and formerly tracked as UNC5221.Mandiant, via SecurityWeekAttributed
Mandiant said the attackers gained initial access through CVE-2026-102764, a recently patched BeyondTrust Remote Support zero-day.Mandiant, via SecurityWeekAttributed
Mandiant said the attackers used Bonesaw to exploit the VMware flaw, steal the LMDB, extract SAML signing material, and create an SSO administrator account.Mandiant, via SecurityWeekAttributed
SecurityWeek said the attackers forged SAML tokens, installed backdoors, took the vCenter master encryption key and database credentials, and moved to an ESXi host.SecurityWeekAttributed
Google said Mandiant had evidence that Armory Castle knew about CVE-2026-123890 before disclosure of CVE-2026-59309 on July 29, 2026.Google, via SecurityWeekAttributed
SecurityWeek said bonesaw targeted a vCenter server that had already been patched for CVE-2026-59309, a separate authentication-bypass flaw disclosed in July.SecurityWeekAttributed
Broadcom released fixes in vCenter versions 9.1.1.0200, 9.0.2.0200, and 8.0 U3m.Broadcom, via SecurityWeekAttributed
Mandiant said Bonesaw works against vCenter 7.x and 8.x, while version 7.0 has no public patch because it reached end of general support in October 2025.Mandiant, via SecurityWeekAttributed
SecurityWeek said broadcom’s advisory did not mention in-the-wild exploitation.SecurityWeekAttributed
Explore with AI