CVE-2026-32146 Details
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 until 1.15.4.
A vulnerability exists in the Gleam compiler's management of git dependencies, specifically in versions 1.9.0-rc1 prior to 1.15.3 and 1.16.0-rc1. The issue arises from inadequate path validation, which permits attacker-controlled paths to manipulate the file system during dependency downloads. Dependency names from 'gleam.toml' and 'manifest.toml' are integrated into file system paths without proper validation or restriction to the designated dependency directory. This flaw enables relative path traversal (such as '../') or absolute paths to target locations outside the intended directory. Exploitation can lead to the deletion or overwriting of arbitrary directories, including those specified by the attacker, potentially causing data loss. In some cases, this vulnerability could be exploited for code execution by modifying git hooks or shell configuration files.
Users can update to Gleam versions 1.15.3 or 1.16.0-rc1, both of which include the necessary fix. For those using Git dependencies, it's advisable to review the dependency tree for any untrusted sources and pin dependencies to specific commit SHAs. Running dependency resolution commands in isolated environments, such as containers, can also help mitigate the risk.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-32146 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2457578 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32146.json | redhat-SADP | |
| https://cna.erlef.org/cves/CVE-2026-32146.html | EEF | Third Party Advisory |
| https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf | EEF | Patch |
| https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a | EEF | Patch |
| https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j | EEF | ExploitVendor Advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-32146 | EEF | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | redhat-SADP |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | EEF |
Affected Products
| Product | Versions |
|---|---|
| lpil gleam | >= 1.9.0, < 1.15.4 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 8, 2026 | CVE Modified | EEF |
| Sep 8, 2026 | CVE Modified | redhat-SADP |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | EEF |
| May 21, 2026 | Initial Analysis | [email protected] |
| Apr 14, 2026 | CVE Modified | EEF |
| Apr 11, 2026 | New CVE Received | EEF |