CVE-2026-32146
Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification
Mitigation
- Upgrade Gleam to 1.16.0-rc2 or later.
- Vendor workaround: * 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)
Who should check
- Anyone running Gleam >= v1.9.0-rc1-elixir, < v1.15.4-elixir; >= v1.9.0-rc1-erlang, < v1.15.4-erlang; >= v1.9.0-rc1-node, < v1.15.4-node; >= v1.9.0-rc1-node-slim, < v1.15.4-node-slim; >= v1.9.0-rc1-elixir-slim, < v1.15.4-elixir-slim; >= v1.9.0-rc1-erlang-slim, < v1.15.4-erlang-slim; >= v1.9.0-rc1-erlang-alpine, < v1.15.4-erlang-alpine; >= v1.9.0-rc1-elixir-alpine, < v1.15.4-elixir-alpine; >= v1.9.0-rc1-node-alpine, < v1.15.4-node-alpine; >= v1.9.0-rc1-scratch, < v1.15.4-scratch; …
- Anyone running Gleam >= 1.9.0-rc1, < 1.15.4; >= 1.16.0-rc1, < 1.16.0-rc2
- Anyone running Gleam >= a4fde22445ab8e5cc79c2ff48971616cb570702c, < *
Vulnerability facts
- Affected
- Gleam >= v1.9.0-rc1-elixir, < v1.15.4-elixir; >= v1.9.0-rc1-erlang, < v1.15.4-erlang; >= v1.9.0-rc1-node, < v1.15.4-node; >= v1.9.0-rc1-node-slim, < v1.15.4-node-slim; >= v1.9.0-rc1-elixir-slim, < v1.15.4-elixir-slim; >= v1.9.0-rc1-erlang-slim, < v1.15.4-erlang-slim; >= v1.9.0-rc1-erlang-alpine, < v1.15.4-erlang-alpine; >= v1.9.0-rc1-elixir-alpine, < v1.15.4-elixir-alpine; >= v1.9.0-rc1-node-alpine, < v1.15.4-node-alpine; >= v1.9.0-rc1-scratch, < v1.15.4-scratch; …; Gleam >= 1.9.0-rc1, < 1.15.4; >= 1.16.0-rc1, < 1.16.0-rc2; Gleam >= a4fde22445ab8e5cc79c2ff48971616cb570702c, < *
- Fixed in
- Gleam 1.15.4, Gleam 1.16.0-rc2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.3 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: Active
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
- CWE
- CWE-22
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Gleam | >= v1.9.0-rc1-elixir, < v1.15.4-elixir; >= v1.9.0-rc1-erlang, < v1.15.4-erlang; >= v1.9.0-rc1-node, < v1.15.4-node; >= v1.9.0-rc1-node-slim, < v1.15.4-node-slim; >= v1.9.0-rc1-elixir-slim, < v1.15.4-elixir-slim; >= v1.9.0-rc1-erlang-slim, < v1.15.4-erlang-slim; >= v1.9.0-rc1-erlang-alpine, < v1.15.4-erlang-alpine; >= v1.9.0-rc1-elixir-alpine, < v1.15.4-elixir-alpine; >= v1.9.0-rc1-node-alpine, < v1.15.4-node-alpine; >= v1.9.0-rc1-scratch, < v1.15.4-scratch; … | — | cvelist |
| Gleam | >= 1.9.0-rc1, < 1.15.4; >= 1.16.0-rc1, < 1.16.0-rc2 | — | cvelist |
| Gleam | >= a4fde22445ab8e5cc79c2ff48971616cb570702c, < * | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-32146. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-32146.md Affected: Gleam >= v1.9.0-rc1-elixir, < v1.15.4-elixir; >= v1.9.0-rc1-erlang, < v1.15.4-erlang; >= v1.9.0-rc1-node, < v1.15.4-node; >= v1.9.0-rc1-node-slim, < v1.15.4-node-slim; >= v1.9.0-rc1-elixir-slim, < v1.15.4-elixir-slim; >= v1.9.0-rc1-erlang-slim, < v1.15.4-erlang-slim; >= v1.9.0-rc1-erlang-alpine, < … Fixed in: Gleam 1.15.4, Gleam 1.16.0-rc2 Steps: 1. Search this machine and project for Gleam: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf
- https://github.com/gleam-lang/gleam/commit/a4fde22445ab8e5cc79c2ff48971616cb570702c
- https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a
- https://github.com/gleam-lang/gleam/commit/92aae3913570e8d8962f6399404777d313045bfa
FAQ
Is CVE-2026-32146 being exploited?
There is no confirmed exploitation: CVE-2026-32146 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-32146?
High: CVSS 8.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-32146?
Gleam >= v1.9.0-rc1-elixir, < v1.15.4-elixir; >= v1.9.0-rc1-erlang, < v1.15.4-erlang; >= v1.9.0-rc1-node, < v1.15.4-node; >= v1.9.0-rc1-node-slim, < v1.15.4-node-slim; >= v1.9.0-rc1-elixir-slim, < v1.15.4-elixir-slim; >= v1.9.0-rc1-erlang-slim, < v1.15.4-erlang-slim; >= v1.9.0-rc1-erlang-alpine, < v1.15.4-erlang-alpine; >= v1.9.0-rc1-elixir-alpine, < v1.15.4-elixir-alpine; >= v1.9.0-rc1-node-alpine, < v1.15.4-node-alpine; >= v1.9.0-rc1-scratch, < v1.15.4-scratch; …; Gleam >= 1.9.0-rc1, < 1.15.4; >= 1.16.0-rc1, < 1.16.0-rc2; Gleam >= a4fde22445ab8e5cc79c2ff48971616cb570702c, < *.
Is there a fix for CVE-2026-32146?
Yes. Fixed in Gleam 1.15.4, Gleam 1.16.0-rc2. Upgrade Gleam to 1.16.0-rc2 or later. Vendor workaround: * 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)
How do I check if I'm affected by CVE-2026-32146?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.