Skip to content
Threat Brief

← All advisories

CVE-2026-32146

High 8.3No known exploitationFix available

Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification

Record last updated

CVSS score

8.3

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.3%

Higher than 18% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-22

Patching and mitigation

Patch status
Fix available (source: NVD (reference tagged Patch))
Fix documented (source date)
Mitigation
* 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) Source (opens in a new tab)
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
GleamGleamfrom 1.16.0-rc1 before 1.16.0-rc21.16.0-rc2CVE Program
GleamGleamfrom 1.9.0-rc1 before 1.15.41.15.4CVE Program
GleamGleamfrom v1.16.0-rc1-elixir before v1.16.0-rc2-elixirv1.16.0-rc2-elixirCVE Program
GleamGleamfrom v1.16.0-rc1-elixir-alpine before v1.16.0-rc2-elixir-alpinev1.16.0-rc2-elixir-alpineCVE Program
GleamGleamfrom v1.16.0-rc1-elixir-slim before v1.16.0-rc2-elixir-slimv1.16.0-rc2-elixir-slimCVE Program
GleamGleamfrom v1.16.0-rc1-erlang before v1.16.0-rc2-erlangv1.16.0-rc2-erlangCVE Program
GleamGleamfrom v1.16.0-rc1-erlang-alpine before v1.16.0-rc2-erlang-alpinev1.16.0-rc2-erlang-alpineCVE Program
GleamGleamfrom v1.16.0-rc1-erlang-slim before v1.16.0-rc2-erlang-slimv1.16.0-rc2-erlang-slimCVE Program
GleamGleamfrom v1.16.0-rc1-node before v1.16.0-rc2-nodev1.16.0-rc2-nodeCVE Program
GleamGleamfrom v1.16.0-rc1-node-alpine before v1.16.0-rc2-node-alpinev1.16.0-rc2-node-alpineCVE Program
GleamGleamfrom v1.16.0-rc1-node-slim before v1.16.0-rc2-node-slimv1.16.0-rc2-node-slimCVE Program
GleamGleamfrom v1.16.0-rc1-scratch before v1.16.0-rc2-scratchv1.16.0-rc2-scratchCVE Program
GleamGleamfrom v1.9.0-rc1-elixir before v1.15.4-elixirv1.15.4-elixirCVE Program
GleamGleamfrom v1.9.0-rc1-elixir-alpine before v1.15.4-elixir-alpinev1.15.4-elixir-alpineCVE Program
GleamGleamfrom v1.9.0-rc1-elixir-slim before v1.15.4-elixir-slimv1.15.4-elixir-slimCVE Program
GleamGleamfrom v1.9.0-rc1-erlang before v1.15.4-erlangv1.15.4-erlangCVE Program
GleamGleamfrom v1.9.0-rc1-erlang-alpine before v1.15.4-erlang-alpinev1.15.4-erlang-alpineCVE Program
GleamGleamfrom v1.9.0-rc1-erlang-slim before v1.15.4-erlang-slimv1.15.4-erlang-slimCVE Program
GleamGleamfrom v1.9.0-rc1-node before v1.15.4-nodev1.15.4-nodeCVE Program
GleamGleamfrom v1.9.0-rc1-node-alpine before v1.15.4-node-alpinev1.15.4-node-alpineCVE Program
GleamGleamfrom v1.9.0-rc1-node-slim before v1.15.4-node-slimv1.15.4-node-slimCVE Program
GleamGleamfrom v1.9.0-rc1-scratch before v1.15.4-scratchv1.15.4-scratchCVE Program
GleamGleama4fde22445ab8e5cc79c2ff48971616cb570702cNot documentedCVE Program
lpilgleamfrom 1.9.0 before 1.15.41.15.4NIST NVD

Timeline

  1. Disclosure

    CVE record published by EEF

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by NVD (reference tagged Patch)

    Source: NVD (reference tagged Patch) (opens in a new tab)

Vendor guidance and references