{"id":"CVE-2026-96612","aliases":[],"cve":{"records":[{"id":"CVE-2026-96612","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-10-01T09:00:02.103Z","published":"2026-10-12T15:39:49.862Z","modified":"2026-11-11T13:28:28.140Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-11T13:28:28.140Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-10-16T17:41:58.545Z"}],"references":[{"url":"https://github.com/hexpm/hex/security/advisories/GHSA-2vjj-c5hr-6xc3","tags":["related","vendor-advisory"],"source":"EEF"},{"url":"https://cna.erlef.org/cves/CVE-2026-96612.html","tags":["related"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-96612","tags":["related"],"source":"EEF"},{"url":"https://github.com/hexpm/hex/commit/380f87054e1bc08ee13d2b5311bc01f98dad2fc6","tags":["related"],"source":"EEF"},{"url":"https://github.com/hexpm/hex/commit/1b3e2ae8f0dd7273a2c2625b9e50b6c67c8568fb","tags":["patch"],"source":"EEF"},{"url":"https://github.com/hexpm/hex/commit/72279a8e2004b32b20d8767ff010c117193dd02c","tags":["patch"],"source":"EEF"}],"weaknesses":[{"id":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*","versionEndExcluding":"2.5.2","versionStartIncluding":"0.6.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-10-16T17:41:34.850974Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"total"}]}]},"title":"Path traversal in Hex via unvalidated dependency app names","titleSource":"EEF","descriptionSource":"EEF","description":"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.\n\nA 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.\n\nThis issue affects hex: from 0.6.0 before 2.5.2.","score":7.5,"severity":"high","published":"2026-10-12T15:39:49.862Z","modified":"2026-11-11T13:28:28.140Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"hexpm","name":"hex","platforms":[],"versions":[{"version":"0.6.0","status":"affected","lessThan":"2.5.2","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:otp/hex?repository_url=https:%2F%2Fgithub.com%2Fhexpm%2Fhex&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Fhexpm%2Fhex.git","cpes":["cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-96612"},{"vendor":"hexpm","name":"hex","platforms":[],"versions":[{"version":"380f87054e1bc08ee13d2b5311bc01f98dad2fc6","status":"affected","lessThan":"*","versionType":"git","changes":[{"at":"1b3e2ae8f0dd7273a2c2625b9e50b6c67c8568fb","status":"unaffected"},{"at":"72279a8e2004b32b20d8767ff010c117193dd02c","status":"unaffected"}]}],"defaultStatus":"unaffected","packageURL":"pkg:github/hexpm/hex","cpes":["cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-96612"}],"remediation":[{"text":"Upgrade Hex to 2.5.2 or later, for example with mix local.hex. Hex then skips package releases that give a dependency an application name other than a letter followed by letters, digits, _ and -, and warns about them. Resolution fails if no other release of the package fits the requirements.","source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-96612"},{"text":"Before running mix deps.get on a mix.lock from an untrusted change, check that every key in mix.lock is a plain application name without /, \\ or ... There's no workaround for new dependency resolution with mix deps.update or mix deps.get without a lock entry.","source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-96612"}],"references":["https://github.com/hexpm/hex/security/advisories/GHSA-2vjj-c5hr-6xc3","https://cna.erlef.org/cves/CVE-2026-96612.html","https://osv.dev/vulnerability/EEF-CVE-2026-96612","https://github.com/hexpm/hex/commit/380f87054e1bc08ee13d2b5311bc01f98dad2fc6","https://github.com/hexpm/hex/commit/1b3e2ae8f0dd7273a2c2625b9e50b6c67c8568fb","https://github.com/hexpm/hex/commit/72279a8e2004b32b20d8767ff010c117193dd02c"],"sources":[{"name":"CVE","id":"CVE-2026-96612","modified":"2026-11-11T13:28:28.140Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-96612"}],"assessments":[{"source":"EEF","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.5}],"sourceAffected":[],"observedAt":"2026-11-11T14:49:22.582Z","kev":{"status":"not-listed","checkedAt":"2026-11-15T03:00:33.317Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-11T16:50:34.255Z","attemptedAt":"2026-11-11T16:50:34.255Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-11T16:50:34.085Z","attemptedAt":"2026-11-11T16:50:34.085Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-11T16:50:34.054Z","attemptedAt":"2026-11-11T16:50:34.054Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-11T16:50:33.844Z","attemptedAt":"2026-11-11T16:50:33.844Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-96612","url":"https://www.first.org/epss/","probability":0.00443,"percentile":0.38846,"date":"2026-11-10","checkedAt":"2026-11-11T16:50:33.844Z"},{"source":"ENISA EUVD","id":"EUVD-2026-97508","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-97508","modified":"Nov 11, 2026, 1:28:28 PM","score":7.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","checkedAt":"2026-11-11T16:50:34.054Z"},{"source":"NVD","id":"CVE-2026-96612","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96612","modified":"2026-11-11T14:17:51.277","score":7.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","checkedAt":"2026-11-11T16:50:34.255Z"}],"aiSummary":{"text":"Hex versions from 0.6.0 before 2.5.2 have a path traversal vulnerability, allowing a malicious package publisher to delete a directory outside the project's deps directory. A publisher can set an unvalidated app label to a value such as ../../target. This issue affects hex when a developer fetches dependencies.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-11T15:01:29.923Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-96612"}]}}