Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker publishes malicious Gleam package
-
DeliveryDeveloper adds package to gleam.toml
-
ExploitDeveloper runs gleam deps download
-
ExecutionCompiler processes untrusted path in dependency name
-
PersistArbitrary directories created/deleted via path traversal
-
ImpactCode execution via hook or config overwrite
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Local attacker must modify gleam.toml or manifest.toml with malicious dependency names containing path traversal sequences (../ or absolute paths). Victim must run 'gleam deps download' command. Affects Gleam compiler versions with improper git dependency path validation. |
| Impact | CVSS 6.2 reflects local attack vector (AV:L) and user interaction (UI:A) - a developer must run gleam deps download, limiting blast radius compared to network-based vulnerabilities. CVSS scope is changed (S:H), indicating the attack can impact system integrity (SI:H) and availability (SA:A) beyond the compiler process itself. Exploitation probability is real: path traversal is trivial to execute once a malicious dependency is in the dependency chain (either directly controlled by an attacker or via supply-chain compromise of an existing package). No EPSS score or KEV status provided, but the combination of straightforward exploitation mechanics, high scope impact, and supply-chain attack surface (transitive dependency risk) elevates real-world priority despite the CVSS base of 6.2. The requirement for user interaction (running deps download) is a practical gate that reduces widespread automated exploitation, but targeted attacks against projects using vulnerable Gleam versions remain high-risk. |
| Exploit ScenarioDerived | An attacker publishes a legitimate-sounding Gleam package or compromises an existing package repository entry, injecting a malicious dependency with a name like '../../../etc' or an absolute path such as '/tmp/evil'. When a developer (or CI/CD pipeline) adds this dependency to gleam.toml and runs gleam deps download, the compiler's unvalidated path handling causes the dependency resolver to create or delete directories at the attacker-specified location. The attacker can overwrite critical files such as ~/.bashrc, git hooks in .git/hooks/, or other configuration files, leading to code execution when the user's shell starts or commits code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 11, 2026
Path traversal in Gleam compiler versions 1.9.0-rc1 through 1.15.3 and 1.16.0-rc1 allows arbitrary file system modification when resolving git dependencies, enabling attackers to delete and overwrite directories outside the intended dependency folder via malicious dependency names containing relative or absolute paths. A user must invoke dependency download (e.g., gleam deps download) for exploitation; attackers can leverage this to cause data loss or achieve code execution by overwriting git hooks or shell configuration files. Vendor-released patches are available.
RemediationAI
Upgrade Gleam to a patched version immediately; consult the vendor advisory at https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j for exact fixed release numbers (patches are available via GitHub commits 1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf and 55bb36e6d7febfbbc48c4d001e0ae13eb0312d78). As a workaround pending patching, avoid adding untrusted or unfamiliar git dependencies to gleam.toml, and audit existing dependencies for any with suspicious names containing path-like sequences. Restrict execution of gleam deps download to trusted development environments and use dependency lock files (manifest.toml) to prevent unexpected transitive dependency updates.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Gleam compiler incorporates dependency names from gleam.toml and manifest.toml directly into filesystem paths during git dependency resolution without proper validation or path canonicalization. The root cause is a CWE-22 path traversal vulnerability: dependency names containing sequences like '../' or absolute paths are not sanitized before being used in filesystem operations (directory creation, deletion, file write). The affected code path is triggered during the dependency download phase, which normally operates within a confined directory structure. When a malicious dependency (either directly declared or transitive) includes path traversal sequences in its name, the computed paths escape the intended dependency directory and can target arbitrary locations on the filesystem accessible to the process running the compiler.
Know when Gleam gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
Lifecycle Timeline
4DescriptionCVE.org
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.3 and 1.16.0-rc1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Package integrity bypass in the Gleam build tool (compiler-cli) versions 0.18.0 up to 1.18.0 lets an adversary-in-the-mi
The Gleam build tool (versions 0.32.4 up to but not including 1.19.2) derives the on-disk build directory for each depen
EUVD-2026-21680
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB