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

- Severity: High 8.3 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-11T12:59:22.911Z
- Modified: 2026-11-25T06:30:21.785Z
- Also known as: EEF-CVE-2026-32146, GHSA-vq5j-55vx-wq8j
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

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

(As written by CVE List.)

## Affected

- gleam-lang/gleam: from v1.9.0-rc1-elixir before v1.15.4-elixir; from v1.9.0-rc1-erlang before v1.15.4-erlang; from v1.9.0-rc1-node before v1.15.4-node; from v1.9.0-rc1-node-slim before v1.15.4-node-slim; from v1.9.0-rc1-elixir-slim before v1.15.4-elixir-slim; from v1.9.0-rc1-erlang-slim before v1.15.4-erlang-slim; from v1.9.0-rc1-erlang-alpine before v1.15.4-erlang-alpine; from v1.9.0-rc1-elixir-alpine before v1.15.4-elixir-alpine; from v1.9.0-rc1-node-alpine before v1.15.4-node-alpine; from v1.9.0-rc1-scratch before v1.15.4-scratch; from v1.16.0-rc1-elixir before v1.16.0-rc2-elixir; from v1.16.0-rc1-erlang before v1.16.0-rc2-erlang; and 9 more
- gleam: from 1.9.0-rc1 before 1.15.4; from 1.16.0-rc1 before 1.16.0-rc2
- firefox: no versions given
- gjs: no versions given
- thunderbird: no versions given
- mozjs60: no versions given
- https://github.com/gleam-lang/gleam: from a4fde22445ab8e5cc79c2ff48971616cb570702c before 2dc0467f822c75de94697a912755d172928ee40a; before 92aae3913570e8d8962f6399404777d313045bfa
- lpil gleam: from 1.9.0 before 1.15.4

## Every score

- EEF: CVSS:4.0 8.3 High `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`
- redhat-SADP: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-32146.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-32146> (related, third-party-advisory)
- <https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf> (fix, patch)
- <https://github.com/gleam-lang/gleam/commit/a4fde22445ab8e5cc79c2ff48971616cb570702c> (related, web)
- <https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a> (fix, patch)
- <https://github.com/gleam-lang/gleam/commit/92aae3913570e8d8962f6399404777d313045bfa> (fix, patch)
- <https://access.redhat.com/security/cve/CVE-2026-32146> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2457578> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32146.json>

## Sources

- CVE List: [CVE-2026-32146](https://www.cve.org/CVERecord?id=CVE-2026-32146), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-32146](https://osv.dev/vulnerability/EEF-CVE-2026-32146), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-32146](https://nvd.nist.gov/vuln/detail/CVE-2026-32146), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-32146 · Whole record: https://cve.day/CVE-2026-32146.json · Rebuilt by cve.day 2026-11-25T22:59:18.567Z
