{"id":"CVE-2026-105668","published":"2026-10-12T15:31:58Z","modified":"2026-11-20T06:01:13Z","title":"Hex release-age cooldown is lifted package-wide when the locked release is retired","vendor":"hexpm","product":"hex","tier":"tail","description":{"text":"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.\n\nThe 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.\n\nThis issue affects hex: from 2.5.0 before 2.5.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0058,"percentile":0.41592,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/hexpm/hex/security/advisories/GHSA-pqhp-5x9x-69h7","tags":["related","vendor-advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-105668.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-105668","tags":["related"]},{"url":"https://github.com/hexpm/hex/commit/b4e665d46be8a5f81e8cbbe4c3a67058a19cf133","tags":["related"]},{"url":"https://github.com/hexpm/hex/commit/1b6fddfeadd98ed26a143f60356efade0494e2ae","tags":["patch"]},{"url":"https://github.com/hexpm/hex/commit/eed2bdf85320ae9e244629511c03f5f3f8c5d0b5","tags":["patch"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":8.32},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"hexpm","affectedVersions":[{"vendor":"hexpm","product":"hex","versions":[">= 2.5.0, < 2.5.2"]},{"vendor":"hexpm","product":"hex","versions":[">= b4e665d46be8a5f81e8cbbe4c3a67058a19cf133"]}],"fixedVersions":[{"vendor":"hexpm","product":"hex","versions":["1b6fddfeadd98ed26a143f60356efade0494e2ae","eed2bdf85320ae9e244629511c03f5f3f8c5d0b5"]}],"solutions":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-538","name":"The cooldown exists to keep a compromised release out of projects until it can be detected and retired. An attacker who controls a package owner account can defeat it by also retiring the currently locked release, so a malicious release reaches projects that rely on the local cooldown as soon as they run mix deps.update, including automated dependency update jobs. The malicious release's code then runs when the dependency is compiled."}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T17:37:56.690913Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-97503","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hexpm-hex-cve-2026-103503","parents":[{"from":"CVE-2026-103503","to":"CVE-2026-105668","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/hex/state.ex","lib/mix/tasks/hex.config.ex"],"commits":["https://github.com/hexpm/hex/commit/c9b26a46928bfcd546773571e09c1d05f4cd9fb7","https://github.com/hexpm/hex/commit/5f5a2136c7cf5991b6e8a30d645ca9f8e74b0785","https://github.com/hexpm/hex/commit/b4e665d46be8a5f81e8cbbe4c3a67058a19cf133","https://github.com/hexpm/hex/commit/1b6fddfeadd98ed26a143f60356efade0494e2ae"],"basis":"rarely changed file"}]}]}}