CVE-2026-32146 json
Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification
published 2026-04-11 6 mo ago modified 2026-09-08 2 mo ago also EUVD-2026-21680
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 15%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Gleam Gleam 1.15.4, v1.15.4-elixir, v1.15.4-elixir-alpine, v1.15.4-elixir-slim, v1.15.4-erlang, v1.15.4-erlang-alpine, v1.15.4-erlang-slim, v1.15.4-node, v1.15.4-node-alpine, v1.15.4-node-slim, v1.15.4-scratch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-32146 updated cvss 8.6
gleam: Gleam compiler: Arbitrary file system modification and potential code execution via improper path validation in git dependency handling.
-
Red Hat Enterprise Linux 7 firefox Red Hat Enterprise Linux 8 firefox, mozjs60, thunderbird Red Hat Enterprise Linux 9 gjs, firefox, firefox-x11, thunderbird Red Hat Enterprise Linux 10 gjs, firefox, thunderbirdnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.3 | 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 |
| CISA ADP | 3.1 | 8.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| CNA | 4.0 | 8.3 | 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 |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected products
- Gleam Gleam
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 7
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf
patch
-
github.com
/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a
patch
-
github.com
/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j
vendor-advisory, related, exploit
-
cna.erlef.org
/cves/CVE-2026-32146.html
related, third-party-advisory
-
osv.dev
/vulnerability/EEF-CVE-2026-32146
related, third-party-advisory
-
access.redhat.com
/security/cve/CVE-2026-32146
vdb-entry
-
bugzilla.redhat.com
/show_bug.cgi?id=2457578
issue-tracking
- security.access.redhat.com /data/csaf/v2/vex/2026/cve-2026-32146.json
Sources
- CVE List CVE-2026-32146
- NVD CVE-2026-32146
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.