CVE-2026-32146: falha de alta gravidade em Gleam
Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification
Publicada em · Atualizada em
Aviso por e-mail quando ela entrar no KEV, ganhar PoC pública ou subir de nota.
21Vexday Risk Score
Sem sinal de exploração. Nenhum artefato público de exploração conhecido até agora.
ssvc Trackcvss 8.3epss 0.3%
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.
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
Produtos afetados
Gleam · GleamCVEs relacionadas — Gleam
No mesmo produto, das mais perigosas para as menos.
CVE-2026-103061MEDIUMPath traversal in Gleam via unvalidated package application namesEPSS 0.4%CVE-2026-32685MEDIUMPath Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and WriteEPSS 0.2%CVE-2026-43965MEDIUMPath Traversal in build/packages/packages.toml Allows Arbitrary Directory DeletionEPSS 0.2%CVE-2026-42795MEDIUMSymlink Following in Hex Package Export Allows Embedding Files Outside Project RootEPSS 0.2%CVE-2026-59247HIGHInsufficient verification of Hex package metadata in GleamEPSS 0.2%
Referências
https://access.redhat.com/security/cve/CVE-2026-32146https://bugzilla.redhat.com/show_bug.cgi?id=2457578https://cna.erlef.org/cves/CVE-2026-32146.htmlhttps://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcfhttps://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40ahttps://github.com/gleam-lang/gleam/commit/92aae3913570e8d8962f6399404777d313045bfahttps://github.com/gleam-lang/gleam/commit/a4fde22445ab8e5cc79c2ff48971616cb570702chttps://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8jhttps://osv.dev/vulnerability/EEF-CVE-2026-32146https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32146.json