Hex Package Manager Warns of Potential Data Breach
VulnPulse 해설
hex.pm, the Elixir and Erlang package registry, hit by an exploited RCE (CVE-2026-129514): no tampered packages found, users told to reset passwords and 2FA
On November 23, attackers abused CVE-2026-129514, a flaw reachable before login on hex.pm, and ran commands on six of its web servers over about 13 minutes. The Hex team shut it down within 20 minutes and found no altered packages or database rows, but nothing records reads from the database, so it asks every user to change their password and reset two-factor authentication.
영향을 받는 대상
Anyone with a hex.pm account (authors of Elixir, Erlang and Gleam packages, and members of organizations with private packages), plus every developer machine and CI job that pulls packages from hex.pm. The same class of bug was found in the Elixir libraries Ash (3.31.3 up to, but not including, 3.38.0; CVE-2026-124283) and flop (0.8.0 onward, fixed in 0.26.7, 0.27.3, 0.28.1 and 0.29.2; CVE-2026-130411). db_connection, which served as a stepping stone in the attack, also received CVE-2026-133555 (1.1.0 up to 2.10.3).
쉽게 말하면
Picture an office where the mailroom opens every envelope before checking who sent it. Its rules block obvious hazards like blades, but anything that looks like an internal form goes straight through. A forged form then set off one department's routine after another, until the last one operated the safe.
작동 방식
hex.pm parsed request bodies sent in Erlang's external term format (sent as application/vnd.hex+erlang) before routing or authentication ran. The decoder it used refuses dangerous terms such as functions, but it let Elixir structs through, and a struct is just a map carrying a __struct__ key. Elixir picks which code runs for a value based on that struct name, so a forged struct with attacker-chosen fields could, when error reporting turned the request data into text, walk through code in Ecto and db_connection and end in an operating system command. The CVE record scores it 10.0 on CVSS 4.0 (Critical) and notes the exploitation on November 23. Hex says the safety check went missing in a change dated February 23, 2016. The fix (commit 379b0a2) refuses any decoded map with a __struct__ key and returns HTTP 400. Ash and flop decoded client-supplied pagination cursors in the same format and could be steered down a similar path. The db_connection record says that library cannot be exploited on its own; the root cause sits with whatever decodes untrusted input.
경위
- From Nov 19: Hex says the two attacker addresses repeatedly downloaded hex.pm's own dependencies, which the team reads as the attacker building a local copy to test against
- Nov 23, 18:16 to 18:29 UTC: 69 crafted requests ran commands on six web servers. A restart midway brought up three more servers still on the old build, which raised the count
- 18:27 to 18:33: the team added a firewall rule and by 18:31 had replaced every server with a fixed build. At 19:07 an emailed report arrived describing the same flaw
- That night into Nov 24: the team swapped out the servers' credentials along with the signing keys for sessions and tokens, so every user was logged out on the website and in the Hex clients. The breach was reported to Sweden's IMY, to CISA and to ENISA, and the CVE went public on Nov 24
해야 할 일
- hex.pm account holders: change your password. Passwords were stored with bcrypt, but Hex points out that a weak one can still be guessed
- hex.pm account holders: in the dashboard's security settings, register your authenticator app again to get a new 2FA secret, and save the new recovery codes. This also works when your organization requires 2FA and will not let you turn it off
- Developers and CI owners: until a Hex client with the new signing system ships, pull packages from repo.hex.pm only and skip third-party mirrors. As of November 29 the newest tag in hexpm/hex is still v2.7.0 from November 6; once the new release is out, update the Hex client, plus any rebar3 or Gleam install you rely on
- Everyone: email addresses may have leaked, so check that links in any message claiming to be from Hex really go to hex.pm. Forward suspicious mail to security@hex.pm
- Developers using Ash, flop or db_connection: move to Ash 3.38.0, flop 0.26.7 / 0.27.3 / 0.28.1 / 0.29.2 depending on your line, and db_connection 2.10.3 or later. If flop cannot be upgraded right away, the CVE record's workaround is to drop the cursor modes (:first and :last) from pagination_types
- Anyone building Elixir or Erlang apps: look for places where you decode user-supplied data in Erlang's term format. As the CVE records explain, structs still pass even with :safe set, so either keep it away from unauthenticated input or add a check that refuses structs
- API keys: Hex says keys are 128-bit random values and only their HMAC-SHA256 hashes were stored, so it sees no need to rotate them because of this incident
아직 밝혀지지 않은 점
- Whether database contents (audit logs, sessions, 2FA secrets, email addresses, and the hashes of passwords and API keys) were read. Reads are not logged, and Hex says it cannot rule this out
- Whether private packages or private docs were read from the compromised servers. Such reads look the same as legitimate ones, and docs reads are not logged at all. Hex plans to reach out to any organization that may be affected
- The registry signing key has not been rotated yet, and no release date has been given for the client with the new signing system (as of November 29)
- There is no checksum on file for the docs archives, so Hex cannot fully prove they were left alone
- Who the attacker was, and whether the 19:07 report has anything to do with the attack. Hex has not addressed either
출처
- Hex: Security incident on hex.pm (2026-11-24)
- GitHub Security Advisory GHSA-9pmm-hf4r-27pg (hexpm)
- EEF CNA: CVE-2026-129514
- EEF CNA: CVE-2026-124283 (Ash)
- EEF CNA: CVE-2026-130411 (flop)
- EEF CNA: CVE-2026-133555 (db_connection)
- hexpm/hex releases
- SecurityWeek: Hex Package Manager Warns of Potential Data Breach (元記事)
원문 기사와 공개 정보를 바탕으로 VulnPulse가 자체적으로 정리한 해설입니다. 정확한 내용은 출처를 확인하세요. 업데이트:
원문 공지
A vulnerability in hex.pm allowed hackers to run commands on web servers. No evidence of data modification was found, but database reads are not logged.
내 정보가 유출되지 않았는지 확인하기
- Have I Been Pwned: 이메일 주소가 과거 유출 데이터에 포함되어 있는지 무료로 확인할 수 있습니다 (FBI도 유출된 비밀번호를 제공)
- Google 비밀번호 검사: Google에 저장한 비밀번호의 유출·재사용·취약 여부를 확인하고 변경을 권해 줍니다
2026. 11. 27. 오후 04:44, SecurityWeek에서 "Hex Package Manager Warns of Potential Data Breach"을(를) 게시했습니다 (유형: 정보 유출). 관련 기술: Erlang / Elixir.