Vulnerabilities · Threat Intelligence · Application Security
Hackers exploit critical Hex.pm flaw to attack package registry servers
Attackers used a severe flaw in Hex.pm to run commands on six servers. The bug had existed since 2016. The Hex.pm team patched all servers within 15 minutes. No primary confirmation yet.
Ross Grant2 min read

The short version
Hackers found a serious bug in Hex.pm, a website developers use to get software packages for Elixir and Erlang. They used this bug to run commands on six Hex.pm servers. The team running Hex.pm fixed the problem quickly, but it is not yet clear if any users were affected. Only one news site has reported this, and there is no official confirmation yet.
What happened?
Attackers exploited a severe remote code execution flaw in Hex.pm, the main package registry for Elixir and Erlang, to run commands on six production servers. The bug had existed since 2016. The Hex.pm team reportedly patched all servers within 15 minutes. Only The Hacker News has reported this so far, and there is no official confirmation yet.
How the flaw works
According to The Hacker News (opens in a new tab), attackers exploited a vulnerability in Hex.pm, a popular package registry for Elixir and Erlang developers. The flaw allowed remote code execution (RCE), which means an attacker could run any command they wanted on the affected servers. The vulnerability was rated CVSS 10.0, the highest possible score, indicating it was both easy to exploit and had a severe impact.
The report says the flaw had been present in the Hex.pm code since February 2016. This means the vulnerability went unnoticed for over ten years before attackers found and used it.
Who is affected
The attack targeted six production servers that run Hex.pm. These servers are used by developers to fetch packages (software components) for Elixir and Erlang projects. If the attackers had altered or replaced packages, it could have affected any developer or company relying on Hex.pm for their software supply chain. However, the report does not say whether any packages were modified or if users were directly affected.
The response
The Hex.pm team reportedly acted quickly. The Hacker News says they had every server running a patched version within about 15 minutes of the first malicious request. This rapid response likely limited the damage, but there is no official statement from Hex.pm or a security agency yet confirming the details.
What you should do
If you use Hex.pm packages, keep an eye out for official statements or advisories from the Hex.pm maintainers. Consider reviewing your software supply chain security practices. Make sure you are using the latest versions of packages and monitor for any unusual activity in your builds or deployments.
So far, only The Hacker News has reported this incident. There is no confirmation from Hex.pm or a government agency. It is not clear if any packages were tampered with, or if end users were compromised.
Why it matters
Package registries like Hex.pm are a key part of the software supply chain. A compromise could let attackers insert malicious code into widely used software. This incident highlights the importance of patching and monitoring critical infrastructure.
Key points
- A critical flaw in Hex.pm allowed remote code execution on six servers.
- The vulnerability had existed since 2016 before being exploited.
- The Hex.pm team patched all servers within 15 minutes of the attack.
- It is not confirmed if any packages or users were affected.
- Only one news outlet has reported this incident so far.
Sources
The Hacker News
Reference

