cve.bz

CVE-2026-96612 Path traversal in Hex via unvalidated dependency app names

7.5 highEPSS 0.4%

High (7.5) in hexpm hex. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

7.5 high
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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
Assigned by
EEF (CNA)
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-96612 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-96612?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-96612?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-96612 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
hexpm hexfrom 0.6.0 before 2.5.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13erlang-hexno fix listedDEBIAN-CVE-2026-96612
Debian14erlang-hex2.5.3-2DEBIAN-CVE-2026-96612
Ubuntu24.04:LTS, 26.04:LTS, 26.10erlang-hexno fix listedUBUNTU-CVE-2026-96612

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is evaluated as having an Important security impact because malicious package metadata can cause arbitrary file deletion and file creation outside the intended workspace, leading to potential code execution in developer environments or CI/CD pipelines. This issue is triggered during dependency resolution before any package code is executed or compiled, elevating the risk beyond typical dependency flaws. However, exploitation requires user interaction to import or resolve a project manifest containing a compromised or untrusted dependency.

ProductPackageStateAdvisory
Ansible Automation Orchestrator 2026ansible-automation-platform/automation-orchestrator-backend-rhel9Under investigation
Confidential Cluster Operatorconfidential-clusters-beta/attestation-key-register-rhel9Under investigation
Confidential Cluster Operatorconfidential-clusters-beta/compute-pcrs-rhel9Under investigation
Confidential Cluster Operatorconfidential-clusters-beta/confidential-cluster-operator-bundleUnder investigation
Confidential Cluster Operatorconfidential-clusters-beta/confidential-cluster-rhel9-operatorUnder investigation
Confidential Cluster Operatorconfidential-clusters-beta/registration-server-rhel9Under investigation
Confidential Compute Attestationagent-sandbox/agent-sandbox-routerUnder investigation
Confidential Compute Attestationbuild-of-trustee/trustee-rhel9Under investigation
Confidential Compute Attestationopenshift-sandboxed-containers/osc-podvm-builder-rhel9Under investigation
Confidential Compute Attestationopenshift-sandboxed-containers/osc-podvm-payload-rhel9Under investigation
Lightspeed Services for Advanced Cluster Managementlightspeed-services-acm/ocp-rules-rhel9Under investigation
Logging Subsystem for Red Hat OpenShiftopenshift-logging/vector-rhel9Under investigation
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Under investigation
OpenShift Lightspeedopenshift-lightspeed/lightspeed-to-dataverse-exporter-rhel9Under investigation
Pen Drive Powered by Red Hat Lightspeedpen-drive/pen-drive-scanner-rhel9Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/lightspeed-rhel8Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-chatbot-rhel8Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-rhel8Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/controller-rhel9Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/de-minimal-rhel9Under investigation
113 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-96612.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON