Hex says an attacker ran commands on six hex.pm servers; no package tampering found, data access not ruled out
Hex says an attacker ran commands on six hex.pm web servers on 23 November, and that it found no evidence of package or database changes. Database reads are not logged, so access to stored data cannot be ruled out. Post saved 27 November, 12:51 UTC.
By Parminder Kumar Sharma · LinkedIn · · 18 min read
Blocked and fixed within 20 minutes; the credential rotation entry is dated the next morning
Hex, the package manager for Elixir and Erlang, says that on 23 November 2026 an unauthorised third party exploited a flaw in hex.pm that let them run commands on its web servers. The flaw is tracked as CVE-2026-129514. Hex says it found no evidence of unauthorised package modifications, database changes or lasting access. It also says that, because database reads are not logged, "we cannot rule out that the attacker accessed data stored in the database". This site read Hex's post, dated 24 November on the page, as saved on 27 November 2026 at about 12:51 UTC.
The 20 minutes, derived. Hex says it blocked the traffic and deployed a fix within 20 minutes, and does not say where that clock starts or stops. Its own times allow the longest reading to be tested. The attacker's first request of any kind arrived at 18:14:21 UTC. Hex says its firewall rule, added to block the attacker, denied every request from 18:33:48 on. That is 19 minutes 27 seconds (derived: 18:33:48 minus 18:14:21). From the first exploit request at 18:16:00 it is 17 minutes 48 seconds (derived). The patched build was on every server by 18:31, 15 minutes after the first exploit request (derived, to the minute). The statement holds on each of these readings.
What that does not establish. Stopping the requests is not the same as withdrawing what the commands could reach. Hex deactivated the affected servers' AWS access key at 18:49, 33 minutes after the first exploit request (derived). It says most infrastructure credentials were rotated by its 20:21 entry and that the database password followed on 24 November. Its entry for 10:42 that day, 16 hours 26 minutes after the first exploit request (derived), says every credential the attacker could have read had been rotated except the registry signing key and a few secrets it rates as low impact. The 20 minutes also says nothing about what was read before the block.
Who is speaking. Hex wrote this account about its own incident, and no page this site read checks its findings independently. The account is detailed about what was checked, and for several checks it says where the check stops. The sections below follow those limits.
What happened, in the order Hex gives it
In outline, Hex says the site decoded unauthenticated request bodies in Erlang term format with a decoder that rejected functions and new atoms but accepted struct values, which, chained through library code that runs during error handling, led to command execution. The fix rejects struct values. Hex's post goes into much more detail about the chain. This brief does not repeat it, and none of the actions below depends on it.
Hex counts 69 exploit requests between 18:16 and 18:29, and six web servers affected. Its error tracker recorded the first error at 18:16:00. It matched files created on each server to request times; the first appeared 3 milliseconds after a request at 18:16:46. The first response on the servers came at 18:23:55, 7 minutes 55 seconds after the first exploit request (derived). The post does not say when an alert reached a person.
One detail explains the count of six. Hex says a restart at 18:28 brought up three new servers that still ran the vulnerable build. This site reads that as three of the six coming from that restart (derived). The restart fell after the firewall rule was added at 18:27 and before it took full effect between 18:30 and 18:33. The last exploit request to reach a server arrived at 18:29:33, so exploit requests reached servers over 13 minutes 33 seconds (derived).
The timeline as Hex's post gives it, all times UTC. The last column is derived by this site, counted from the first exploit request at 18:16:00
| Time | What Hex reports | After 18:16 (derived) |
|---|---|---|
| 23 Nov 18:14:21 | The attacker's first request of any kind | Before it |
| 18:16:00 to 18:29:33 | 69 exploit requests; six web servers affected | Start to 13 min 33 s |
| 18:23:55 | First response on the servers | 7 min 55 s |
| 18:27 | Firewall rule added; full effect between 18:30 and 18:33; the attacker's requests all denied from 18:33:48 | 17 min 48 s to 18:33:48 |
| 18:30 to 18:31 | All hex.pm servers replaced with a patched build | 14 to 15 min |
| 18:47 and 18:49 | Replacement AWS access key created, then the old one deactivated | 33 min to deactivation |
| 19:07 | An email arrives with a security report describing the same flaw | 51 min |
| 20:21 | Most infrastructure credentials rotated; database password on 24 November | 2 h 5 min |
| 22:58 | Personal data breach reported to IMY, the Swedish data protection authority | 4 h 42 min |
| 23:05 | Incident reported to CISA, which confirmed receipt at 23:43 | 4 h 49 min |
| 23:26 | Early warning to ENISA, the EU cybersecurity agency | 5 h 10 min |
| 24 Nov, by 10:42 | Every credential the attacker could have read rotated, except the registry signing key and a few low impact secrets | 16 h 26 min |
| 24 Nov 13:48 | CVE-2026-129514 published | 19 h 32 min |
The emailed report arrived after the block: about 33 minutes after 18:33:48 (derived). The post does not say who sent it.
How long the opening existed. Hex says the history of its request decoder shows the safety check was removed on 23 February 2016. To 23 November 2026 that is 10 years and 9 months, or 3,926 days (derived). The age does not show that anyone used the flaw before 23 November, and the post does not say either way. The earlier activity it describes comes from request logs since 19 November for the two attacker addresses: repeated downloads of the software hex.pm itself depends on, which Hex says suggests the attacker built a local copy of hex.pm to test against. That is Hex's inference.
What Hex checked, and what each check cannot see
A finding of no evidence is only as strong as the checks behind it. Hex lists them, and for several it states the limit itself. The diagram sets the two side by side.
Writes. Hex restored a copy of the database taken at 18:13:59, 22 seconds before the attacker's first request (derived), and compared every row of every table with the live database. It says every added, changed or removed row is explained by an audit log entry from another address, by background jobs or by its own response, with no unexpected change to tables, functions, roles or permissions. A row changed and then changed back, or one overwritten by a later legitimate change, would not appear.
Packages. All 23 releases published during the incident match a publish or stage entry in the audit log, and no older release changed. All 62 package files written since 18:00 match the checksums in the database, and all 186 registry files written since 18:00 match the database contents. Storage writes came only from Hex's own services. Documentation archives have no stored checksum to compare against. The post prints no end time for the span it calls the incident.
Private material. Hex says reads of private packages in that period came from its own servers and coincide with releases the same organisations published. It adds that a read from a compromised server would look like one of its own, so one cannot be fully ruled out. CDN logs show no requests from either attacker address to private documentation in the last 30 days; direct reads from cloud storage are not logged. Hex says it will contact affected organisations directly. It does not say which organisations those are, how many there are, or that any of their material was read by the attacker.
A heading and the evidence under it. One check is headed as showing credentials not used from outside. The evidence printed under it concerns storage access logs: 11,379 log objects and 15,635 records, with record times from 14:56 to 20:59. Each of 288 versions and markers listed for 18:00 to 20:00 has a log record for the same key within 3 seconds, and all 6,279 requests logged as hexpm-prod came from the three node addresses. Separately, under lasting access, Hex says cloud audit logs show no new keys, accounts or API calls from the attacker's addresses and no writes by its Kubernetes service accounts. This site's reading: the heading is wider than the storage evidence under it, which does not speak about every credential the commands could read.
Reads of the database are the open item. Hex says they cannot be ruled out because database reads, environment variable reads and shell commands are not logged. It reports that network traffic stayed within normal levels except on one worker server, which peaked at 0.47 MB/s against a usual maximum of 0.29 MB/s, about 1.6 times that maximum (derived). The post gives no cause for the peak. It is not stated to be data leaving, and it is not explained as anything else.
The registry signing key: one CVE sentence and one timeline exception
The CVE record for CVE-2026-129514 states the impact more concretely than the timeline does. It says an unauthenticated attacker could run operating system commands as the user of the application process, and that this user can read an application environment that "holds the database URL, the storage credentials and the registry signing key".
Set that beside Hex's post. The post says the commands could read the credentials its servers use, and names the storage, CDN, email and database credentials and the keys that sign sessions and access tokens as replaced. The registry signing key is not in that list. It appears in the 10:42 entry, as an exception to the rotation of everything the attacker could have read. Neither the record nor the post says the key was read. Both place it within reach of the commands.
Hex says it is building a new registry signing system that supports key rotation, with new Hex client releases in the coming days. Until then, it says, do not trust third party mirrors, and fetch packages only from repo.hex.pm. As saved on 27 November, the post gives no date for the releases.
The post does not give its reason for singling out mirrors. This site's inference is that the advice limits where clients take registry data from while the post does not report that the registry signing key has been replaced. It is an inference, not a statement by Hex, and it is no sign that any mirror has served altered data. No page read for this brief reports that.
What a database read would reach, and what Hex says to do about it
Hex names six kinds of stored data after the word including, so the list is not stated to be complete. It is a list of what Hex cannot rule out, not of what was taken. The table puts each kind next to the step the post gives for it.
Stored data Hex says it cannot rule out access to, with the step the post gives for each. Post saved 27 November 2026
| Data | What Hex says or does | Left open |
|---|---|---|
| Email addresses | May have been exposed: be careful with email claiming to come from Hex and check that links lead to hex.pm | Whether any such email has been seen |
| Password hashes | Hashed with bcrypt, which slows guessing but does not prevent it for a weak password: change yours | Whether the hashes were read |
| API key hashes | Keys are 128 bit random values stored as HMAC-SHA256: Hex sees no need to rotate them because of the exposed hashes | Other reasons to rotate are not addressed |
| 2FA secrets | Reset 2FA, which issues a new secret and new recovery codes | Whether the secrets were read |
| Sessions | The keys that sign sessions and access tokens were replaced, which logged everyone out of hex.pm and Hex clients | Whether any session was used by someone else |
| Audit logs | No separate step | What the logs contain |
On API keys, Hex's reasoning is that 128 bits of randomness is far beyond the reach of brute force. Read the conclusion at the width Hex gives it: it concerns the exposed hashes.
Rejecting functions is not the same as being safe for strangers
The decoder did refuse things. It rejected functions and new atoms. That can sound like a filter against anything that could run, and it was not enough: it accepted struct values, which, chained through library code that runs during error handling, led to command execution.
The record for db_connection, CVE-2026-133555, one of the libraries Hex names, makes the same point from the library side. "This issue is not exploitable in db_connection alone", it says. It places the root cause in a component that decodes untrusted input without restricting what the result may contain, and says such a component stays at risk independently of db_connection.
For a defender, that means a library update and a review of your own decoding are two separate jobs. Updating a library does not tell you whether your service accepts Erlang terms from someone you have not authenticated.
What Hex states, and what it does not
From Hex's post as saved on 27 November 2026 at about 12:51 UTC. The last column is what that copy does not say
| Question | Stated by Hex | Not stated |
|---|---|---|
| Was stored data read? | Access to data in the database cannot be ruled out | Whether any data was read or copied |
| How many are affected? | It will contact affected organisations about private material | Any number of accounts or organisations, and which organisations |
| Who did it? | An unauthorised third party, called the attacker | An identity, group or motive |
| Was it used earlier? | The safety check was removed in February 2016; two addresses were reviewed from 19 November | Whether anyone used the flaw before 23 November |
| Were packages changed? | No evidence of unauthorised changes; 23 releases match the audit log | A check of documentation archive contents against a stored checksum |
| Was the signing key read? | It is excepted from the rotation recorded at 10:42 | Whether it was read, and when it will be replaced |
| When do new clients ship? | In the coming days | A date |
| What was the traffic peak? | One worker server, 0.47 MB/s against 0.29 MB/s | Its cause |
| What went to authorities? | A personal data breach to IMY; a report to CISA; an early warning to ENISA | What any of the three said |
| Other library fixes? | Hardening under way in plug_crypto, plug, ecto and db_connection | Fixed versions or dates in the post for any of the four |
Two places where the pages need reading together
db_connection. Hex's post lists db_connection among libraries where it is still working on hardening, and tracks that item as CVE-2026-133555. The CVE record, published on 24 November at 14:12 UTC and last updated at 14:59, already bounds the affected versions: from 1.1.0 up to but not including 2.10.3. This brief gives the record's range. It did not check a package registry to see the 2.10.3 release itself. The copy of the post saved on 27 November still words the work as under way.
Attacker addresses. The timeline says all further requests from the attacking address, in the singular, were denied between 18:33 and 18:38. The investigation section speaks of two attacker addresses. The post does not explain how the two relate to that line. This brief prints no address.
The three CVE records, for a triage sheet
CVE records as fetched from CVE.org on 27 November 2026 at 13:46 UTC. EEF, the assigning numbering authority named on each record, set every score shown (CVSS 4.0)
| CVE and component | Affected range in the record | Score and vector | Weakness |
|---|---|---|---|
| CVE-2026-129514, hex.pm and the hexpm code | The service: from 23 February 2016 up to but not including 23 November 2026. The source code: a commit range given in the record | 10.0 critical, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:A | CWE-502 |
| CVE-2026-124283, ash | From 3.31.3 up to but not including 3.38.0 | 8.9 high, CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H | CWE-89, CWE-502 |
| CVE-2026-133555, db_connection | From 1.1.0 up to but not including 2.10.3 | 8.9 high, CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H | CWE-470 |
The 10.0 on the hex.pm flaw is the record's own figure. Its vector ends in E:A, the CVSS value for attacked, and its description states that the flaw was exploited against hex.pm on 23 November. If you run your own copy of the hexpm code, take the fix reference from the record.
Hex says it found the same class of flaw in the Ash library while investigating, reported it, and that the Ash team released a fix in ash 3.38.0 on 24 November. The ash record also sets out the conditions under which an application is exposed and prints a configuration workaround for some versions. This brief does not reproduce either; read them there if you cannot update today.
Do not sort these on one letter. The ash and db_connection vectors give the attack vector as local, with attack requirements present, while the ash record's own impact text speaks of an unauthenticated client. The pages read do not explain the choice. This site's suggestion is to check whether your application meets the record's conditions before ranking it below network flaws.
Other scoring pages. At 13:47 UTC on 27 November, NVD listed all three as awaiting analysis (129514, 124283, 133555). The only base score on each is EEF's, marked secondary, with the same score and base vector. Of the three, only the ash record carried an SSVC assessment from CISA-ADP, dated 24 November: exploitation at proof of concept level, not automatable, total technical impact. None of the three was in the CISA KEV catalogue, version 2026.11.25 with 1,805 entries, as fetched at 13:47 UTC on 27 November. For CVE-2026-129514 that absence sits beside a record that says the flaw was exploited, so it is no sign that it was not.
What to do, in order
Hex's steps come first, each marked Hex. Those labelled as this site's suggestions are not Hex's advice. When the client release with the new signing system is out, the command Hex prints for updating is mix local.hex --force. The post ties that step to the new release and gives no date for it.
Take this with you
Hex's guidance, then the library fixes, then this site's suggestions
- Hex: change your password at hex.pm.
- Hex: reset 2FA on the security page of your hex.pm dashboard. Under Authenticator App, choose Setup New App and verify a code from the new entry. Store the new recovery codes. Hex says this works where an organisation requires 2FA and disabling it is refused.
- Hex: until the new client release is out, fetch packages only from repo.hex.pm and do not trust third party mirrors.
- Hex: when the release with the new signing system is out, update the Hex client, and update rebar3 or Gleam if you use them.
- Hex: be careful with email claiming to come from Hex, check that its links lead to hex.pm, and forward suspicious messages to security@hex.pm. For questions or anything unusual in your account, Hex gives support@hex.pm.
- This site's suggestion, from the version in Hex's post and the CVE record: if you use ash, update to 3.38.0 or later.
- This site's suggestion: follow the advisories of the libraries Hex names, plug_crypto, plug, ecto and db_connection. For db_connection, the CVE record puts 2.10.3 outside the affected range.
- This site's suggestion: list every CI job and developer machine that fetches Hex packages and confirm that none uses a mirror. Include proxy and cache settings in the search.
- This site's suggestion: if you publish or depend on private packages, check your lock files and publishing records for releases from 18:00 UTC on 23 November onwards. Hex says all 23 releases in the incident match its audit log; your own records are a separate check.
- This site's suggestion: if one of your Elixir or Erlang services decodes Erlang terms from untrusted input, have that path reviewed, whatever library versions it runs.
- This site's suggestion: where a hex.pm password was reused on another service, change it there too.
- This site's suggestion: keep a dated copy of Hex's post, which it says it will update.
The question for your own build
Hex has printed which question its logs cannot answer. When a registry says it saw no package changes but does not log database reads, what in your build can tell you whether an account of yours was read?
Key facts
Sources
- PrimarySecurity incident on hex.pm, dated 24 November 2026 on the page: the account, the timeline, the steps for users and the investigation checks with their limits. A living page, saved once by this site on 27 November 2026 at about 12:51 UTCHexaccessed 2026-11-27
- PrimaryCVE-2026-129514 record: CVSS 4.0 score and vector, affected ranges, impact on what the process user can read, and the statement that the flaw was exploitedCVE Program (record by EEF)accessed 2026-11-27
- PrimaryCVE-2026-124283 record for ash: score, vector, affected range, and the CISA-ADP assessmentCVE Program (record by EEF)accessed 2026-11-27
- PrimaryCVE-2026-133555 record for db_connection: score, vector, affected range, and the note on components that decode untrusted termsCVE Program (record by EEF)accessed 2026-11-27
- PrimaryNVD entry for CVE-2026-129514: status and the score it carriesNIST National Vulnerability Databaseaccessed 2026-11-27
- PrimaryNVD entry for CVE-2026-124283: status and the score it carriesNIST National Vulnerability Databaseaccessed 2026-11-27
- PrimaryNVD entry for CVE-2026-133555: status and the score it carriesNIST National Vulnerability Databaseaccessed 2026-11-27
- PrimaryKnown Exploited Vulnerabilities catalogue feed, version 2026.11.25: none of the three CVEs listed when fetchedCISAaccessed 2026-11-27


