- 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
- 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
- Unauthenticated remote code execution through struct values in Erlang term request bodies, GitHubPrimary
- Code execution via the :log option of forged DBConnection.Stream structs in db_connection, GitHubPrimary
- Security incident on hex.pm, Hex.pmPrimary
- Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw to Compromise 6 Package Registry Servers, The Hacker News
- Newly Patched VMware vCenter Flaw Exploited as Zero-Day by Chinese APT, SecurityWeek
How we checked this story
| Claim | Source | Status |
|---|---|---|
| An attacker ran operating system commands on six production Hex.pm servers on Monday. | Hex.pm, via The Hacker News | Attributed |
| The vulnerability was actively exploited against the hex.pm service on November 23, 2026. | GitHub | Confirmed |
| Hex.pm said an unauthorized third party exploited a vulnerability that let the attacker run commands on its web servers. | Hex.pm | Confirmed |
| The flaw affected hex.pm from February 23, 2016, before November 23, 2026. | GitHub | Confirmed |
| An unauthenticated remote attacker could execute operating system commands through a crafted Erlang external term format request body. | GitHub | Confirmed |
| The parser ran before routing and authentication, so a POST to any route reached it. | GitHub | Confirmed |
| The Hacker News said the flaw was tracked as CVE-2026-129514 with a maximum CVSS score of 10.0. | The Hacker News | Attributed |
| Hex.pm received 69 malicious requests between 18:16 and 18:29 UTC, affecting six web servers. | Hex.pm | Confirmed |
| Hex.pm added a firewall rule at 18:27, and it took effect between 18:30 and 18:33. | Hex.pm | Confirmed |
| The fix makes the decoder reject any decoded term containing a map with a __struct__ key and return a 400 response. | GitHub | Confirmed |
| Hex.pm found no evidence of unauthorized package modifications, database changes, or maintained attacker access. | Hex.pm | Confirmed |
| 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.pm | Confirmed |
| The db_connection issue affects versions from 1.1.0 before 2.10.3. | GitHub | Confirmed |
| SecurityWeek said the VMware vCenter flaw was tracked as CVE-2026-123890 and had a CVSS score of 9.8. | SecurityWeek | Attributed |
| SecurityWeek said the VMware Directory Service flaw could let remote unauthenticated attackers obtain an authenticated session with administrator privileges. | SecurityWeek | Attributed |
| 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 SecurityWeek | Attributed |
| Mandiant said the attackers gained initial access through CVE-2026-102764, a recently patched BeyondTrust Remote Support zero-day. | Mandiant, via SecurityWeek | Attributed |
| 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 SecurityWeek | Attributed |
| SecurityWeek said the attackers forged SAML tokens, installed backdoors, took the vCenter master encryption key and database credentials, and moved to an ESXi host. | SecurityWeek | Attributed |
| 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 SecurityWeek | Attributed |
| SecurityWeek said bonesaw targeted a vCenter server that had already been patched for CVE-2026-59309, a separate authentication-bypass flaw disclosed in July. | SecurityWeek | Attributed |
| Broadcom released fixes in vCenter versions 9.1.1.0200, 9.0.2.0200, and 8.0 U3m. | Broadcom, via SecurityWeek | Attributed |
| 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 SecurityWeek | Attributed |
| SecurityWeek said broadcom’s advisory did not mention in-the-wild exploitation. | SecurityWeek | Attributed |



