Path traversal in Hex via unvalidated dependency app names
CVE-2026-96612Published 12 Oct 2026, 15:39 UTC
Real-world risk
2.7/ 10Low
Routine
If the vulnerable configuration applies to you: 6.0
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.5
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in hexpm hex allows a malicious package publisher to delete a directory outside the project's deps directory and extract package files into it when a developer fetches dependencies. A package release's requirements carry an app label that names the dependency's OTP application. Hex takes this label from the repository's signed registry and uses it as the dependency's application name without validating it (Hex.RemoteConverger.deps/2, Hex.Mix.to_lock/1). Mix derives the dependency's checkout directory as deps/<app>, and Hex.SCM.update/1 runs File.rm_rf!/1 on that directory and unpacks the package into it. hex.pm only checks the label's length, so a publisher can set it to a value such as ../../target. When a project depends on such a release directly or transitively, mix deps.get or mix deps.update deletes the directory the label resolves to and writes the labelled package's files there. This happens before any dependency code is compiled. This issue affects hex: from 0.6.0 before 2.5.2.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| hexNiche | >= 0.6.0, < 2.5.2 | 2.5.2 |
What to do
Update to a fixed version: 2.5.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.5% chance of exploitation in 30 days (percentile 47), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.315
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.315 × threat 0.852.677
- Rounded to one decimal between 0.1 and 102.7
Exploitation and evidence timeline
- 12 Oct 2026 Published
- 3 Dec 2026 Risk 2.7 (cvss fallback)
Weakness
CWE-22
References
- https://github.com/hexpm/hex/security/advisories/GHSA-2vjj-c5hr-6xc3related, vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-96612.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2026-96612related
- https://github.com/hexpm/hex/commit/380f87054e1bc08ee13d2b5311bc01f98dad2fc6related
- https://github.com/hexpm/hex/commit/1b3e2ae8f0dd7273a2c2625b9e50b6c67c8568fbpatch
- https://github.com/hexpm/hex/commit/72279a8e2004b32b20d8767ff010c117193dd02cpatch
- CVE-2026-96612 on CVE.org