Home

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.

PUBLISHED Reserved 2026-03-10 | Published 2026-04-11 | Updated 2026-05-04 | Assigner EEF




HIGH: 8.3CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H

Problem types

CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Product status

Default status
unaffected

1.9.0-rc1 (semver) before *
affected

Default status
unaffected

1.9.0-rc1 (semver) before *
affected

a4fde22445ab8e5cc79c2ff48971616cb570702c (git) before *
affected

Default status
unaffected

v1.9.0-rc1-elixir (other) before v1.15.4-elixir
affected

v1.9.0-rc1-erlang (other) before v1.15.4-erlang
affected

v1.9.0-rc1-node (other) before v1.15.4-node
affected

v1.9.0-rc1-node-slim (other) before v1.15.4-node-slim
affected

v1.9.0-rc1-elixir-slim (other) before v1.15.4-elixir-slim
affected

v1.9.0-rc1-erlang-slim (other) before v1.15.4-erlang-slim
affected

v1.9.0-rc1-erlang-alpine (other) before v1.15.4-erlang-alpine
affected

v1.9.0-rc1-elixir-alpine (other) before v1.15.4-elixir-alpine
affected

v1.9.0-rc1-node-alpine (other) before v1.15.4-node-alpine
affected

v1.9.0-rc1-scratch (other) before v1.15.4-scratch
affected

Credits

John Downey remediation developer

Louis Pilfold analyst

Jonatan Männchen / EEF coordinator

References

github.com/.../gleam/security/advisories/GHSA-vq5j-55vx-wq8j vendor-advisory related

cna.erlef.org/cves/CVE-2026-32146.html related

osv.dev/vulnerability/EEF-CVE-2026-32146 related

github.com/...ommit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf patch

github.com/...ommit/2dc0467f822c75de94697a912755d172928ee40a patch

cve.org (CVE-2026-32146)

nvd.nist.gov (CVE-2026-32146)

Download JSON