On Monday an attacker ran operating system commands on six production servers at Hex.pm, the package registry Elixir and Erlang teams fetch dependencies from. The remote code execution flaw had sat in registry code since February 2016. CVSS 10.0. Every server was on a patched build about 15 minutes after the first malicious request. Your mix.lock still points at hosts that were, for a window, a shell. That is a cybersecurity incident for every shop that treats Hex as weather, not a production system.
Six Hex.pm Production Servers Executed Attacker OS Commands
Hex.pm is where mix and rebar pull packages. You pin versions. You checksum tarballs. You argue about lockfile hygiene in code review. Almost nobody budgets blast radius for the registry’s own application servers the way you budget it for CI runners. Monday’s activity did that work for you. Six production hosts executed attacker-chosen OS commands. The maintainers moved fast. Fifteen minutes is excellent for a public registry. Fifteen minutes is also long enough to read environment variables, dump signing material, plant a package, or stage a follow-on fetch against builders that never pause.
The age of the bug should make you more uncomfortable than the CVSS number. February 2016. A decade of language versions, refactors, and “we should rewrite that” tickets, and a maximum-severity RCE stayed in the path that serves the entire Elixir and Erlang ecosystem. Your WAF and firewall never saw it. Those controls sit in front of apps you operate. This sat in an app you consume by default every time a pipeline resolves deps.

Same news cycle, different flavor of inherited trust. Turnitin told customers its systems were fully operational and safe to use while it investigates a cyberattack. Treasury’s FinCEN took some systems offline after unauthorized access to a limited subset of hosts. You will see both postures this year: keep serving, or pull the plug. Neither posture tells you whether your org’s API keys, SSO sessions, or package caches touched the affected plane.
Registry Host Compromise Is a Cybersecurity Incident for Consumers
If your threat-protection stack is tuned for brute-force against SSH and VPN, you will miss this class of event. Nobody hammered your edge. The attacker hit a dependency factory you do not own. Packages you already trust, hashes you already stored, and CI jobs you already signed off can still be poisoned in a short window if the registry host is a shell. A republished tarball that matches a version you allow is a much quieter failure than a red banner on the login page.
Defense in depth for application code does not automatically cover the index. You need a consumer-side model: assume the registry can lie for a short interval, assume secrets on those hosts are burned, and assume your builders will happily fetch during that interval unless you stop them. BEAM shops running Phoenix, Nerves, or telecom stacks inherited this even if nobody on the team has a Hex publisher account.
Call it a cyber security process gap if that helps you get the ticket prioritized. Most incident response runbooks still start at “our server.” Expand the trigger list. A CVSS 10.0 on a package registry you use belongs in the queue even when your own CVE scanners stay green and the vendor already shipped a patch. Threat detection that only watches inbound auth to your VPC will not flag a Hex fetch burst, a package republish, or a 2 a.m. resolve from build agents that should have been idle.
Security Hardening When You Do Not Run the Registry
You cannot patch Hex.pm. You can still reduce how much a 15-minute registry shell can do to you. Start with the builders, because that is where a planted or swapped package becomes your runtime. Then work outward to publisher credentials, private organizations, and the copy of the index you will trust next week.
Do this now, then keep the controls that survive the news cycle:
- Freeze Hex and Hexpm fetches in CI and local onboarding until you diff every mix.lock and rebar.lock against a known-good revision from before Monday’s first malicious request.
- Rotate Hex publisher keys, organization tokens, and any cloud or signing secrets that could have lived in registry-host environment variables; revoke before you re-enable publishes.
- Pin and verify package checksums from an independent copy (internal mirror, vendored deps, or an artifact store you control), and alert on version or hash changes nobody merged.
- Hunt build-agent and egress logs for registry resolves during the compromise window, including retries and cache misses that look like routine noise.
Ongoing security hardening is dull on purpose. Mirror the packages you actually ship. Break builds on unexpected lockfile churn. Tabletop a registry RCE the same way you tabletop an identity-provider outage. If a team cannot name which hosts fetch Hex, which identity publishes, and which cache would serve a poisoned tarball after you “block the internet,” you still have an open ticket. None of that requires a particular product. It requires treating the index as hostile for the duration of someone else’s incident, then proving your copies are clean.
Fifteen-Minute Patch Windows Still Require Incident Response
Hex.pm’s speed is the good news in this story. A ten-year RCE that hits six production servers and gets a fleet patch in about 15 minutes is the best outcome a public registry can advertise after OS command execution. Do not let that speed talk you out of your own work. You did not watch those 15 minutes from inside their hosts. You watched them from CI logs, if you kept any.

Turnitin’s “fully operational and safe to use” line is a status page, not a finding. FinCEN’s decision to take systems offline after unauthorized access is an availability event for anyone who queries that plane, plus a reminder that a “limited subset” still had a login you do not control. Your job in all three cases is the same: map which of your identities, artifacts, and scheduled jobs talked to the affected service; assume those secrets and copies are in scope; then reopen the service only after you have evidence, not reassurance.
The real problem here is operational literacy. Teams will close the Hex ticket because the CVE is patched and Elixir builds are green. Keep it open until lockfiles match pre-window hashes, publisher credentials are new, and threat detection has a rule for unexpected registry behavior. That is how you stop a 2016 line of dead registry code from becoming your production runtime without ever touching your firewall.
Sources
- Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw to Compromise 6 Package Registry Servers
- Plagiarism Checker Turnitin Investigating Cyberattack
- Treasury’s FinCEN takes systems offline after cybersecurity incident
Take Control of Your Server Security
Don't let brute-force attacks slow you down. Try IPBan Pro risk-free for 30 days.
Secure. Automated. Lightweight.
Take Control of Your Server Security
Don't let brute-force attacks slow you down. Try IPBan Pro risk-free for 30 days.
Secure. Automated. Lightweight.
