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

Summary

CVECVE-2026-32146
StatePUBLISHED
AssignerEEF
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-04-11 14:16:03 UTC
Updated2026-05-21 20:14:02 UTC
DescriptionImproper 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.

Risk And Classification

Primary CVSS: v4.0 8.3 HIGH from 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

EPSS: 0.000490000 probability, percentile 0.152430000 (date 2026-05-27)

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


VersionSourceTypeScoreSeverityVector
4.06b3ad84c-e1a6-4bf7-a703-f496b71e49dbSecondary8.3HIGHCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H/E:X/C...
4.0CNACVSS8.3HIGHCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H
3.1[email protected]Primary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS v4.0 Breakdown

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Confidentiality
None
Integrity
High
Availability
None
Sub Conf.
High
Sub Integrity
High
Sub Availability
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Lpil Gleam All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Gleam Gleam affected 1.9.0-rc1 * semver Not specified
CNA Gleam Gleam affected 1.9.0-rc1 * semver Not specified
CNA Gleam Gleam affected a4fde22445ab8e5cc79c2ff48971616cb570702c * git Not specified
CNA Gleam Gleam affected v1.9.0-rc1-elixir v1.15.4-elixir other Not specified
CNA Gleam Gleam affected v1.9.0-rc1-erlang v1.15.4-erlang other Not specified
CNA Gleam Gleam affected v1.9.0-rc1-node v1.15.4-node other Not specified
CNA Gleam Gleam affected v1.9.0-rc1-node-slim v1.15.4-node-slim other Not specified
CNA Gleam Gleam affected v1.9.0-rc1-elixir-slim v1.15.4-elixir-slim other Not specified
CNA Gleam Gleam affected v1.9.0-rc1-erlang-slim v1.15.4-erlang-slim other Not specified
CNA Gleam Gleam affected v1.9.0-rc1-erlang-alpine v1.15.4-erlang-alpine other Not specified
CNA Gleam Gleam affected v1.9.0-rc1-elixir-alpine v1.15.4-elixir-alpine other Not specified
CNA Gleam Gleam affected v1.9.0-rc1-node-alpine v1.15.4-node-alpine other Not specified
CNA Gleam Gleam affected v1.9.0-rc1-scratch v1.15.4-scratch other Not specified

References

ReferenceSourceLinkTags
github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf 6b3ad84c-e1a6-4bf7-a703-f496b71e49db github.com Patch
osv.dev/vulnerability/EEF-CVE-2026-32146 6b3ad84c-e1a6-4bf7-a703-f496b71e49db osv.dev Third Party Advisory
cna.erlef.org/cves/CVE-2026-32146.html 6b3ad84c-e1a6-4bf7-a703-f496b71e49db cna.erlef.org Third Party Advisory
github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a 6b3ad84c-e1a6-4bf7-a703-f496b71e49db github.com Patch
github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j 6b3ad84c-e1a6-4bf7-a703-f496b71e49db github.com Exploit, Vendor Advisory
github.com/gleam-lang/gleam/commit/55bb36e6d7febfbbc48c4d001e0ae13eb0312d78 MITRE github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: John Downey (en)

CNA: Louis Pilfold (en)

CNA: Jonatan Männchen / EEF (en)

Additional Advisory Data

Solutions

CNA: 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.

Workarounds

CNA: * 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)

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report