CVE-2026-105668Hex release-age cooldown is lifted package-wide when the locked release is retired
Protection Mechanism Failure vulnerability in hexpm hex allows the owner of a package, or an attacker who has taken over the owner's account, to get a newly published release past the release-age cooldown. The cooldown (cooldown config, HEX_COOLDOWN) withholds versions younger than the configured age during dependency resolution. When the release of a package locked in mix.lock is retired or has a security advisory, Hex.RemoteConverger.build_cooldown_bypass/3 and Hex.RemoteConverger.unsafe_lock_bypass/1 lift the cooldown for every version of that package and of every package the locked release depends on, so that mix deps.update can move off the unsafe release. Retiring a release needs the same package owner permission as publishing one. An attacker who publishes a malicious release can retire the currently locked release, and the next mix deps.update that unlocks the package selects the new release regardless of its age. Hex.Registry.Cooldown.versions/2 checks the bypass by package name alone, so the bypass also covers packages with the same name in other repositories. Cooldown configured through an organization dependency policy is not affected. This issue affects hex: from 2.5.0 before 2.5.2.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | erlang-hex | Fix pending | UBUNTU-CVE-2026-105668 | |
| Ubuntu 26.04 | erlang-hex | Under investigation | UBUNTU-CVE-2026-105668 | |
| Ubuntu 24.04 | erlang-hex | Under investigation | UBUNTU-CVE-2026-105668 | |
| Debian 14 | erlang-hex | Fixed | 2.5.3-2 | DEBIAN-CVE-2026-105668 |
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- hexpm hex: affected: 2.5.0 to before 2.5.2; fixed in
2.5.2 - hexpm hex: affected: b4e665d46be8a5f81e8cbbe4c3a67058a19cf133 and later; fixed in
1b6fddfeadd98ed26a143f60356efade0494e2ae
Solution: Upgrade Hex to 2.5.2 or later, for example with mix local.hex. A retired locked release then no longer lifts the release-age cooldown for its package. A locked release with a security advisory still lifts it for its package and the direct dependencies of the locked release, only in the repository the package is locked from.
Workaround: Enforce the cooldown through an organization dependency policy instead of the local cooldown setting, or run mix hex.audit before mix deps.update and don't update a package whose locked release was retired until its replacement has been reviewed.
Vendor advisories:
- https://github.com/hexpm/hex/security/advisories/GHSA-pqhp-5x9x-69h7 (vendor-advisory)
- https://github.com/hexpm/hex/commit/1b6fddfeadd98ed26a143f60356efade0494e2ae (patch)
- https://github.com/hexpm/hex/commit/eed2bdf85320ae9e244629511c03f5f3f8c5d0b5 (patch)
References
- https://github.com/hexpm/hex/security/advisories/GHSA-pqhp-5x9x-69h7
- https://cna.erlef.org/cves/CVE-2026-105668.html
- https://osv.dev/vulnerability/EEF-CVE-2026-105668
- https://github.com/hexpm/hex/commit/b4e665d46be8a5f81e8cbbe4c3a67058a19cf133
- https://github.com/hexpm/hex/commit/1b6fddfeadd98ed26a143f60356efade0494e2ae
- https://github.com/hexpm/hex/commit/eed2bdf85320ae9e244629511c03f5f3f8c5d0b5
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.