CVE-2026-32146
High 8.3No known exploitationFix availableImproper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 18% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-22
Patching and mitigation
- Patch status
- Fix available (source: NVD (reference tagged Patch))
- Fix documented (source date)
- Mitigation
- * 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) Source (opens in a new tab)
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Gleam | Gleam | from 1.16.0-rc1 before 1.16.0-rc2 | 1.16.0-rc2 | CVE Program |
| Gleam | Gleam | from 1.9.0-rc1 before 1.15.4 | 1.15.4 | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-elixir before v1.16.0-rc2-elixir | v1.16.0-rc2-elixir | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-elixir-alpine before v1.16.0-rc2-elixir-alpine | v1.16.0-rc2-elixir-alpine | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-elixir-slim before v1.16.0-rc2-elixir-slim | v1.16.0-rc2-elixir-slim | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-erlang before v1.16.0-rc2-erlang | v1.16.0-rc2-erlang | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-erlang-alpine before v1.16.0-rc2-erlang-alpine | v1.16.0-rc2-erlang-alpine | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-erlang-slim before v1.16.0-rc2-erlang-slim | v1.16.0-rc2-erlang-slim | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-node before v1.16.0-rc2-node | v1.16.0-rc2-node | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-node-alpine before v1.16.0-rc2-node-alpine | v1.16.0-rc2-node-alpine | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-node-slim before v1.16.0-rc2-node-slim | v1.16.0-rc2-node-slim | CVE Program |
| Gleam | Gleam | from v1.16.0-rc1-scratch before v1.16.0-rc2-scratch | v1.16.0-rc2-scratch | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-elixir before v1.15.4-elixir | v1.15.4-elixir | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-elixir-alpine before v1.15.4-elixir-alpine | v1.15.4-elixir-alpine | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-elixir-slim before v1.15.4-elixir-slim | v1.15.4-elixir-slim | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-erlang before v1.15.4-erlang | v1.15.4-erlang | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-erlang-alpine before v1.15.4-erlang-alpine | v1.15.4-erlang-alpine | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-erlang-slim before v1.15.4-erlang-slim | v1.15.4-erlang-slim | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-node before v1.15.4-node | v1.15.4-node | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-node-alpine before v1.15.4-node-alpine | v1.15.4-node-alpine | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-node-slim before v1.15.4-node-slim | v1.15.4-node-slim | CVE Program |
| Gleam | Gleam | from v1.9.0-rc1-scratch before v1.15.4-scratch | v1.15.4-scratch | CVE Program |
| Gleam | Gleam | a4fde22445ab8e5cc79c2ff48971616cb570702c | Not documented | CVE Program |
| lpil | gleam | from 1.9.0 before 1.15.4 | 1.15.4 | NIST NVD |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by NVD (reference tagged Patch)
Vendor guidance and references
- Error immediately for invalid config (opens in a new tab)patch
- Fix commit 2dc0467 in gleam-lang/gleam (opens in a new tab)patch
- Fix commit 92aae39 in gleam-lang/gleam (opens in a new tab)patch
- Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification (opens in a new tab)vendor-advisory, related
- https://access.redhat.com/security/cve/CVE-2026-32146 (opens in a new tab)vdb-entry, x_refsource_redhat
- RHBZ#2457578 (opens in a new tab)issue-tracking, x_refsource_redhat
- EEF CNA record for CVE-2026-32146 (opens in a new tab)related, third party advisory
- Introducing commit a4fde22 in gleam-lang/gleam (opens in a new tab)related
- OSV record EEF-CVE-2026-32146 (opens in a new tab)related, third party advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32146.json (opens in a new tab)x_sadp-csaf-vex