# CVE-2026-32146: Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.3
- **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:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-22
- **Published:** 2026-04-11T12:59:22.911Z
- **Modified:** 2026-11-20T06:17:24.440Z

## 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, \< \*

## 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

- 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)

## 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)

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j>
- patch: <https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf>
- patch: <https://github.com/gleam-lang/gleam/commit/a4fde22445ab8e5cc79c2ff48971616cb570702c>
- patch: <https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a>
- patch: <https://github.com/gleam-lang/gleam/commit/92aae3913570e8d8962f6399404777d313045bfa>
- other: <https://cna.erlef.org/cves/CVE-2026-32146.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-32146>
- other: <https://access.redhat.com/security/cve/CVE-2026-32146>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2457578>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32146.json>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-32146>

HTML: <https://flawdb.com/CVE-2026-32146> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-32146>
