Hackers Exploit Critical Hex.pm Vulnerability to Execute Commands on Six Servers

Blog WriterCybersecurity News - Original News Source is cybersecuritynews.com


A critical Hex.pm vulnerability was exploited on November 23, 2026, allowing attackers to execute operating system commands on six web servers. The flaw, tracked as CVE-2026-129514, carries a maximum severity score of 10.0 and required no account.

Hex blocked the attack and deployed a fix within 20 minutes. It found no evidence of package tampering but could not rule out access to user data.

In its November 24 incident report, Hex said the attacker sent 69 malicious requests between 18:16 and 18:29 UTC. Investigators confirmed command execution by matching files created on the servers to request timestamps.

A restart at 18:28 brought three more servers online with the vulnerable build, raising the total affected to six. All servers were running the patched build by 18:31 UTC.

According to GitHub advisories, the Hex.pm flaw allowed attackers to exploit request decoding before authentication checks, using data crafted to resemble an internal Elixir structure.

When the server tried to log an error involving that data, it treated the structure as trusted and ran commands with the application’s permissions. The patch rejects those structures during decoding. Hex traced the missing safety check back to February 2016.

Critical Hex.pm Flaw Exploited

The case shares a lesson with the Java4Shell decoder flaw: code that handles incoming data can expose a server before login checks run.

But unlike the Shai-Hulud npm attack, Hex found no altered releases. Investigators matched all 23 releases published during the incident to audit records and verified 62 package files against stored checksums.

Hex does not log database reads, so it could not determine whether the attacker viewed email addresses, password hashes, API key hashes, two-factor authentication secrets, sessions, or audit logs. It also could not fully rule out access to private packages or documentation.

Investigators found no evidence of unauthorized database changes or lasting access. Hex replaced storage, email, and database credentials, among others, and changed the keys that sign sessions and access tokens. That forced users to sign in again.

Hex advises users to change their passwords and reset two-factor authentication in Dashboard → Security. Under Authenticator App, select “Setup New App,” verify a code from the new entry, and save the new recovery codes. Check that links in emails claiming to come from Hex lead to hex.pm and forward suspicious messages to [email protected].

ElixirForum advises downloading packages only from repo.hex.pm and avoiding third-party mirrors until Hex releases clients with the new registry-signing system. Once available, Mix users can update using mix local.hex --force.

Developers using rebar3 or Gleam should update those tools as well. Hex’s investigation also uncovered a related issue in Ash, fixed in version 3.38.0. Projects using db_connection should upgrade to 2.10.3 or later.

What Are Leading Organizations Doing About AI and Cyber Risks? Find Out. View Details!

The post Hackers Exploit Critical Hex.pm Vulnerability to Execute Commands on Six Servers appeared first on Cyber Security News.