Impact
The vulnerability is a Path Traversal flaw (CWE‑22) in Gleam’s dependency resolver. When a malicious build/packages/packages.toml file is processed, the keys are concatenated with the build directory and passed directly to a file delete routine. Because no bounds check is performed, an attacker can specify keys that reference absolute paths or include traversal sequences, causing the program to delete any directory the user process can reach. The primary impact is the accidental or intentional removal of arbitrary directories, potentially disrupting application data, configuration, or the host filesystem.
Affected Systems
GLEAM, the functional language runtime, is affected in all releases from 0.18.0‑rc1 up to and including 1.17.0. Users running these versions on any operating system and executing "gleam deps download" on a project that contains a malicious build/packages/packages.toml are at risk. No other products or vendor versions are explicitly listed as vulnerable in the current CNA data.
Risk and Exploitability
The CVSS score is 5.6, indicating a moderate severity. Exploitation requires a local or delegated user who is able to trigger a dependency download; an attacker can supply a malicious repository that the victim will clone and run. The EPSS score is not available, so current exploitation likelihood is unclear, but the missing protection makes it feasible for a determined attacker. The vulnerability is not listed in CISA’s KEV catalog, but its impact on file integrity and availability makes it a priority for remediation.
OpenCVE Enrichment