CVE-2026-96612
Last modified
CVE-2026-96612 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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). EPSS estimates a 0.40% chance of exploitation in the next 30 days.
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. 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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| hexpm | hex | >= 0.6.0, < 2.5.2 |
| hexpm | hex | >= 380f87054e1bc08ee13d2b5311bc01f98dad2fc6, < * |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-96612?
How severe is CVE-2026-96612?
How do I fix CVE-2026-96612?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-96603A vulnerability has been found in Abdurrab5 online-makeup-st…7.3
- CVE-2026-96604A vulnerability was identified in SoftNews Media Group DataL…7.3
- CVE-2026-96606A security flaw has been discovered in LB-Link BL-CPE600EU 5…5.3
- CVE-2026-96607Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2026-96609Robur Albatross 1.0.0 through 2.x before 2.7.2 does not limi…7.1
- CVE-2026-96611FFmpeg before 9.0 has a signed integer overflow in libavform…7.8
- CVE-2026-96613The Meari IoT Cloud Platform OpenAPI Service is vulnerable t…6.5
- CVE-2026-96614"ゲオアプリ" provided by GEO CORPORATION is vulnerable to imprope…5.1
- CVE-2026-96615Description NGINX Gateway Fabric has a vulnerability when it…6.5
- CVE-2026-96618Improper Handling of Highly Compressed Data (Data Amplificat…2.1
- CVE-2026-9662The Recover Exit For WooCommerce plugin for WordPress is vul…8.1
- CVE-2026-96620Claude Agent SDK is a Python SDK for Claude Code. Prior to 0…9.2
Are you affected by CVE-2026-96612?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
