cve.bz

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

8.3 highExploit referenceEPSS 0.3%Fix available

High (8.3) in lpil gleam. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
Assigned by
EEF (CNA)
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-32146 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-32146?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-32146?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-32146 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Gleamfrom v1.9.0-rc1-elixir before v1.15.4-elixir
Gleamfrom v1.9.0-rc1-erlang before v1.15.4-erlang
Gleamfrom v1.9.0-rc1-node before v1.15.4-node
Gleamfrom v1.9.0-rc1-node-slim before v1.15.4-node-slim
Gleamfrom v1.9.0-rc1-elixir-slim before v1.15.4-elixir-slim
Gleamfrom v1.9.0-rc1-erlang-slim before v1.15.4-erlang-slim
Gleamfrom v1.9.0-rc1-erlang-alpine before v1.15.4-erlang-alpine
Gleamfrom v1.9.0-rc1-elixir-alpine before v1.15.4-elixir-alpine
Gleamfrom v1.9.0-rc1-node-alpine before v1.15.4-node-alpine
Gleamfrom v1.9.0-rc1-scratch before v1.15.4-scratch
Gleamfrom v1.16.0-rc1-elixir before v1.16.0-rc2-elixir
Gleamfrom v1.16.0-rc1-erlang before v1.16.0-rc2-erlang
Gleamfrom v1.16.0-rc1-node before v1.16.0-rc2-node
Gleamfrom v1.16.0-rc1-node-slim before v1.16.0-rc2-node-slim
Gleamfrom v1.16.0-rc1-elixir-slim before v1.16.0-rc2-elixir-slim
Gleamfrom v1.16.0-rc1-erlang-slim before v1.16.0-rc2-erlang-slim
Gleamfrom v1.16.0-rc1-erlang-alpine before v1.16.0-rc2-erlang-alpine
Gleamfrom v1.16.0-rc1-elixir-alpine before v1.16.0-rc2-elixir-alpine
Gleamfrom v1.16.0-rc1-node-alpine before v1.16.0-rc2-node-alpine
Gleamfrom v1.16.0-rc1-scratch before v1.16.0-rc2-scratch
Gleamfrom 1.9.0-rc1 before 1.15.4
Gleamfrom 1.16.0-rc1 before 1.16.0-rc2

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 10gjsNot affected
Red Hat Enterprise Linux 10thunderbirdNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8thunderbirdNot affected
Red Hat Enterprise Linux 9firefoxNot affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9thunderbirdNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-32146.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON