CVE-2026-32146Improper Path Validation in Git Dependency Handling Allows Arbitrary File System…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | firefox | Not affected | ||
| Red Hat Enterprise Linux 10 | gjs | Not affected | ||
| Red Hat Enterprise Linux 10 | gjs-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 9 | firefox | Not affected | ||
| Red Hat Enterprise Linux 9 | firefox-x11 | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 8 | firefox | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 7 | firefox | Not affected |
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Gleam: affected: v1.9.0-rc1-elixir to before v1.15.4-elixir, v1.9.0-rc1-erlang to before v1.15.4-erlang, v1.9.0-rc1-node to before v1.15.4-node, v1.9.0-rc1-node-slim to before v1.15.4-node-slim, v1.9.0-rc1-elixir-slim to before v1.15.4-elixir-slim, v1.9.0-rc1-erlang-slim to before v1.15.4-erlang-slim; fixed in
v1.15.4-elixir,v1.15.4-erlang,v1.15.4-node,v1.15.4-node-slim,v1.15.4-elixir-slim,v1.15.4-erlang-slim - Gleam: affected: 1.9.0-rc1 to before 1.15.4, 1.16.0-rc1 to before 1.16.0-rc2; fixed in
1.15.4,1.16.0-rc2 - Gleam: affected: a4fde22445ab8e5cc79c2ff48971616cb570702c and later; fixed in
2dc0467f822c75de94697a912755d172928ee40a,92aae3913570e8d8962f6399404777d313045bfa
Solution: Upgrade to Gleam 1.15.4 or later. Both patches must be applied: the original incomplete fix (1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf, backported as 55bb36e6d7febfbbc48c4d001e0ae13eb0312d78 to 1.15) and the follow-up fix (2dc0467f822c75de94697a912755d172928ee40a, backported as 92aae3913570e8d8962f6399404777d313045bfa to 1.15). Gleam 1.15.4 includes both.
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)
Vendor advisories:
- https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j (vendor-advisory)
- https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf (patch)
- https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a (patch)
- https://github.com/gleam-lang/gleam/commit/92aae3913570e8d8962f6399404777d313045bfa (patch)
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/a4fde22445ab8e5cc79c2ff48971616cb570702c
- https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a
- https://github.com/gleam-lang/gleam/commit/92aae3913570e8d8962f6399404777d313045bfa
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.