Skip to main content

Gleam CVE-2026-32146

| EUVDEUVD-2026-21680 HIGH
Path Traversal (CWE-22)
2026-04-11 EEF
8.3
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker publishes malicious Gleam package
  2. Delivery
    Developer adds package to gleam.toml
  3. Exploit
    Developer runs gleam deps download
  4. Execution
    Compiler processes untrusted path in dependency name
  5. Persist
    Arbitrary directories created/deleted via path traversal
  6. Impact
    Code 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Gleam 1.9.0-rc1 <*
Gleam a4fde22445ab8e5cc79c2ff48971616cb570702c <*

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

Vendor (EEF) PRIMARY 8.3 HIGH
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
SUSE HIGH
Red Hat 8.6 HIGH

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

4
Severity Changed
Apr 14, 2026 - 10:22 NVD
MEDIUM HIGH
CVSS changed
Apr 14, 2026 - 10:22 NVD
6.2 (MEDIUM) 8.3 (HIGH)
Patch released
Apr 11, 2026 - 13:30 nvd
Patch available
CVE Published
Apr 11, 2026 - 12:59 nvd
HIGH 8.3

DescriptionCVE.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

EPSS Score
0.0%
Top 97% exploitable
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy