CVE-2026-32146
published high CVSS 4.0 · 8.3Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gleam | — | gleam-lang/gleamGleam · v1.9.0-rc1-elixir to < v1.15.4-elixir · v1.9.0-rc1-erlang to < v1.15.4-erlang · v1.9.0-rc1-node to < v1.15.4-node · v1.9.0-rc1-node-slim to < v1.15.4-node-slim · v1.9.0-rc1-elixir-slim to < v1.15.4-elixir-slim · v1.9.0-rc1-erlang-slim to < v1.15.4-erlang-slim · v1.9.0-rc1-erlang-alpine to < v1.15.4-erlang-alpine · v1.9.0-rc1-elixir-alpine to < v1.15.4-elixir-alpine · v1.9.0-rc1-node-alpine to < v1.15.4-node-alpine · v1.9.0-rc1-scratch to < v1.15.4-scratch · v1.16.0-rc1-elixir to < v1.16.0-rc2-elixir · v1.16.0-rc1-erlang to < v1.16.0-rc2-erlang · v1.16.0-rc1-node to < v1.16.0-rc2-node · v1.16.0-rc1-node-slim to < v1.16.0-rc2-node-slim · v1.16.0-rc1-elixir-slim to < v1.16.0-rc2-elixir-slim · v1.16.0-rc1-erlang-slim to < v1.16.0-rc2-erlang-slim · v1.16.0-rc1-erlang-alpine to < v1.16.0-rc2-erlang-alpine · v1.16.0-rc1-elixir-alpine to < v1.16.0-rc2-elixir-alpine · v1.16.0-rc1-node-alpine to < v1.16.0-rc2-node-alpine · v1.16.0-rc1-scratch to < v1.16.0-rc2-scratch · Other versions: unaffected | Affected | Not stated | EEF |
| Gleam | — | gleamGleam · 1.9.0-rc1 to < 1.15.4 · 1.16.0-rc1 to < 1.16.0-rc2 · Other versions: unaffected | Affected | Not stated | EEF |
| Gleam | — | gleam-lang/gleamGleam · a4fde22445ab8e5cc79c2ff48971616cb570702c and later (affected · git); changes: unaffected at 2dc0467f822c75de94697a912755d172928ee40a, unaffected at 92aae3913570e8d8962f6399404777d313045bfa · Other versions: unaffected | Version-specific | Not stated | EEF |
| Red Hat Enterprise Linux | 7, 8, 9, 10 | firefox | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 9, 10 | gjs | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 8, 9, 10 | thunderbird | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 8 | mozjs60 | Unaffected | Not required | redhat-SADP |
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 before 1.15.4 and from 1.16.0-rc1 before 1.16.0-rc2.
A flaw was found in the Gleam compiler. A malicious direct or transitive git dependency can exploit an improper path validation vulnerability in the Gleam compiler's handling of git dependencies during dependency download. This allows for arbitrary file system modification, including the deletion and creation of directories outside the intended dependency directory, potentially leading to data loss. In certain environments, this could be further leveraged to achieve arbitrary code execution.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.6 | high | redhat-SADP · adp | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gleam | Gleam | v1.9.0-rc1-elixir to < v1.15.4-elixir (affected · other)v1.9.0-rc1-erlang to < v1.15.4-erlang (affected · other)v1.9.0-rc1-node to < v1.15.4-node (affected · other)v1.9.0-rc1-node-slim to < v1.15.4-node-slim (affected · other)v1.9.0-rc1-elixir-slim to < v1.15.4-elixir-slim (affected · other)v1.9.0-rc1-erlang-slim to < v1.15.4-erlang-slim (affected · other)v1.9.0-rc1-erlang-alpine to < v1.15.4-erlang-alpine (affected · other)v1.9.0-rc1-elixir-alpine to < v1.15.4-elixir-alpine (affected · other)v1.9.0-rc1-node-alpine to < v1.15.4-node-alpine (affected · other)v1.9.0-rc1-scratch to < v1.15.4-scratch (affected · other)v1.16.0-rc1-elixir to < v1.16.0-rc2-elixir (affected · other)v1.16.0-rc1-erlang to < v1.16.0-rc2-erlang (affected · other)v1.16.0-rc1-node to < v1.16.0-rc2-node (affected · other)v1.16.0-rc1-node-slim to < v1.16.0-rc2-node-slim (affected · other)v1.16.0-rc1-elixir-slim to < v1.16.0-rc2-elixir-slim (affected · other)v1.16.0-rc1-erlang-slim to < v1.16.0-rc2-erlang-slim (affected · other)v1.16.0-rc1-erlang-alpine to < v1.16.0-rc2-erlang-alpine (affected · other)v1.16.0-rc1-elixir-alpine to < v1.16.0-rc2-elixir-alpine (affected · other)v1.16.0-rc1-node-alpine to < v1.16.0-rc2-node-alpine (affected · other)v1.16.0-rc1-scratch to < v1.16.0-rc2-scratch (affected · other)Default: unaffected | EEF · cna |
| Gleam | Gleam | 1.9.0-rc1 to < 1.15.4 (affected · semver)1.16.0-rc1 to < 1.16.0-rc2 (affected · semver)Default: unaffected | EEF · cna |
| Gleam | Gleam | a4fde22445ab8e5cc79c2ff48971616cb570702c and later (affected · git); changes: unaffected at 2dc0467f822c75de94697a912755d172928ee40a, unaffected at 92aae3913570e8d8962f6399404777d313045bfaDefault: unaffected | EEF · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
10- https://access.redhat.com/security/cve/CVE-2026-32146
- RHBZ#2457578 https://bugzilla.redhat.com/show_bug.cgi?id=2457578
- EEF CNA record for CVE-2026-32146 https://cna.erlef.org/cves/CVE-2026-32146.html
- Error immediately for invalid config https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf
- Fix commit 2dc0467 in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a
- Fix commit 92aae39 in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/92aae3913570e8d8962f6399404777d313045bfa
- Introducing commit a4fde22 in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/a4fde22445ab8e5cc79c2ff48971616cb570702c
- Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j
- OSV record EEF-CVE-2026-32146 https://osv.dev/vulnerability/EEF-CVE-2026-32146
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32146.json
Provider assertions
3EEF · cna
Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification
redhat-SADP · adp
gleam: Gleam compiler: Arbitrary file system modification and potential code execution via improper path validation in git dependency handling.
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 44246cf43bbfeed3ee502fc3fd4e0784cc7df80a4d65b78d2bc1478423132820
- Ingested
- 20 Nov 2026, 06:18:48 UTC
- Source record
- Official CVE record