Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification
Summary
| CVE | CVE-2026-32146 |
|---|---|
| State | PUBLISHED |
| Assigner | EEF |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-11 14:16:03 UTC |
| Updated | 2026-05-21 20:14:02 UTC |
| Description | Improper path validation vulnerability in the Gleam compiler's handling of git dependencies allows arbitrary file system modification during dependency download. Dependency names from gleam.toml and manifest.toml are incorporated into filesystem paths without sufficient validation or confinement to the intended dependency directory, allowing attacker-controlled paths (via relative traversal such as ../ or absolute paths) to target filesystem locations outside that directory. When resolving git dependencies (e.g. via gleam deps download), the computed path is used for filesystem operations including directory deletion and creation. This vulnerability occurs during the dependency resolution and download phase, which is generally expected to be limited to fetching and preparing dependencies within a confined directory. A malicious direct or transitive git dependency can exploit this issue to delete and overwrite arbitrary directories outside the intended dependency directory, including attacker-chosen absolute paths, potentially causing data loss. In some environments, this may be further leveraged to achieve code execution, for example by overwriting git hooks or shell configuration files. This issue affects Gleam from 1.9.0-rc1 until 1.15.4. |
Risk And Classification
Primary CVSS: v4.0 8.3 HIGH from 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H/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
EPSS: 0.000490000 probability, percentile 0.152430000 (date 2026-05-27)
Problem Types: CWE-22 | CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | Secondary | 8.3 | HIGH | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H/E:X/C... |
| 4.0 | CNA | CVSS | 8.3 | HIGH | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H |
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVSS v4.0 Breakdown
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H/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
CVSS v3.1 Breakdown
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Gleam | Gleam | affected 1.9.0-rc1 * semver | Not specified |
| CNA | Gleam | Gleam | affected 1.9.0-rc1 * semver | Not specified |
| CNA | Gleam | Gleam | affected a4fde22445ab8e5cc79c2ff48971616cb570702c * git | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-elixir v1.15.4-elixir other | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-erlang v1.15.4-erlang other | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-node v1.15.4-node other | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-node-slim v1.15.4-node-slim other | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-elixir-slim v1.15.4-elixir-slim other | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-erlang-slim v1.15.4-erlang-slim other | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-erlang-alpine v1.15.4-erlang-alpine other | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-elixir-alpine v1.15.4-elixir-alpine other | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-node-alpine v1.15.4-node-alpine other | Not specified |
| CNA | Gleam | Gleam | affected v1.9.0-rc1-scratch v1.15.4-scratch other | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | github.com | Patch |
| osv.dev/vulnerability/EEF-CVE-2026-32146 | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | osv.dev | Third Party Advisory |
| cna.erlef.org/cves/CVE-2026-32146.html | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | cna.erlef.org | Third Party Advisory |
| github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | github.com | Patch |
| github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | github.com | Exploit, Vendor Advisory |
| github.com/gleam-lang/gleam/commit/55bb36e6d7febfbbc48c4d001e0ae13eb0312d78 | MITRE | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: John Downey (en)
CNA: Louis Pilfold (en)
CNA: Jonatan Männchen / EEF (en)
Additional Advisory Data
Solutions
CNA: Upgrade to Gleam 1.15.4 or later. Both patches must be applied: the original incomplete fix (1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf, backported as 55bb36e6d7febfbbc48c4d001e0ae13eb0312d78 to 1.15) and the follow-up fix (2dc0467f822c75de94697a912755d172928ee40a, backported as 92aae3913570e8d8962f6399404777d313045bfa to 1.15). Gleam 1.15.4 includes both.
Workarounds
CNA: * Avoid using untrusted git dependencies, especially without pinning to a specific commit SHA * Review dependency trees carefully, including transitive git dependencies * Run dependency resolution commands in a restricted or isolated environment (e.g. containers)