CVE-2026-103061
published medium CVSS 4.0 · 5.9Path traversal in Gleam via unvalidated package application names
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gleam | — | gleam-lang/gleamGleam · v0.32.4-elixir to < v1.19.2-elixir · v0.32.4-erlang to < v1.19.2-erlang · v0.32.4-node to < v1.19.2-node · v0.32.4-node-slim to < v1.19.2-node-slim · v0.32.4-elixir-slim to < v1.19.2-elixir-slim · v0.32.4-erlang-slim to < v1.19.2-erlang-slim · v0.32.4-erlang-alpine to < v1.19.2-erlang-alpine · v0.32.4-elixir-alpine to < v1.19.2-elixir-alpine · v0.32.4-node-alpine to < v1.19.2-node-alpine · v0.32.4-scratch to < v1.19.2-scratch · Other versions: unaffected | Affected | Not stated | EEF |
| Gleam | — | gleamGleam · 0.32.4 to < 1.19.2 · Other versions: unaffected | Affected | Not stated | EEF |
| Gleam | — | gleam-lang/gleamGleam · d13f27ee80aae7a521d2e9433c4deaf53f892574 and later (affected · git); changes: unaffected at 54bbb2b98af1505b6eed93c45b1936fc76412e5c, unaffected at d15c981fac6e533d70ac8ee89a6ef4dbf139adc3 · Other versions: unaffected | Version-specific | Not stated | EEF |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Leap-16.1 | gleamaarch64 | Advisory build | 1.19.2-bp161.1.1 | OPENSUSE-SU-2026:22361-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | gleamx86_64 | Advisory build | 1.19.2-bp161.1.1 | OPENSUSE-SU-2026:22361-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gleamaarch64 | Advisory build | 1.19.2-1.1 | OPENSUSE-SU-2026:12454-1 |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | gleamppc64le | Advisory build | 1.19.2-1.1 | OPENSUSE-SU-2026:12454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gleams390x | Advisory build | 1.19.2-1.1 | OPENSUSE-SU-2026:12454-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gleamx86_64 | Advisory build | 1.19.2-1.1 | OPENSUSE-SU-2026:12454-1 |
Description
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in gleam-lang gleam allows a malicious package publisher to delete a directory outside the project's build directory when a developer builds a project. A Hex package release's metadata carries an app field with the release's OTP application name. Gleam reads this field from the hex.pm release API when it downloads dependencies and uses it as the package's build directory name without validating it (hex_manifest_package in compiler-cli/src/dependencies.rs, ProjectPaths::build_directory_for_package). When a dependency fails to compile, Gleam deletes that directory with remove_dir_all. hex.pm didn't restrict the field to a directory name before 2026-10-12, so a publisher could set it to a value such as ../../../../target or an absolute path. When a project depends on such a release directly or transitively and the release fails to compile, gleam build, gleam check, gleam run, gleam test or gleam export deletes the directory the name resolves to. For a pure Gleam package no publisher code runs. This issue affects gleam: from 0.32.4 before 1.19.2.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gleam | Gleam | v0.32.4-elixir to < v1.19.2-elixir (affected · other)v0.32.4-erlang to < v1.19.2-erlang (affected · other)v0.32.4-node to < v1.19.2-node (affected · other)v0.32.4-node-slim to < v1.19.2-node-slim (affected · other)v0.32.4-elixir-slim to < v1.19.2-elixir-slim (affected · other)v0.32.4-erlang-slim to < v1.19.2-erlang-slim (affected · other)v0.32.4-erlang-alpine to < v1.19.2-erlang-alpine (affected · other)v0.32.4-elixir-alpine to < v1.19.2-elixir-alpine (affected · other)v0.32.4-node-alpine to < v1.19.2-node-alpine (affected · other)v0.32.4-scratch to < v1.19.2-scratch (affected · other)Default: unaffected | EEF · cna |
| Gleam | Gleam | 0.32.4 to < 1.19.2 (affected · semver)Default: unaffected | EEF · cna |
| Gleam | Gleam | d13f27ee80aae7a521d2e9433c4deaf53f892574 and later (affected · git); changes: unaffected at 54bbb2b98af1505b6eed93c45b1936fc76412e5c, unaffected at d15c981fac6e533d70ac8ee89a6ef4dbf139adc3Default: unaffected | EEF · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
6- EEF CNA record for CVE-2026-103061 https://cna.erlef.org/cves/CVE-2026-103061.html
- Fix commit 54bbb2b in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/54bbb2b98af1505b6eed93c45b1936fc76412e5c
- Introducing commit d13f27e in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/d13f27ee80aae7a521d2e9433c4deaf53f892574
- Fix commit d15c981 in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/d15c981fac6e533d70ac8ee89a6ef4dbf139adc3
- GitHub Advisory https://github.com/gleam-lang/gleam/security/advisories/GHSA-jhcr-c7qm-8589
- OSV record EEF-CVE-2026-103061 https://osv.dev/vulnerability/EEF-CVE-2026-103061
Provider assertions
2EEF · cna
Path traversal in Gleam via unvalidated package application names
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8ba9da4466e61da3e3e75e6b0c75405fd1f0e188d41853cd683ea45a9b33d90e
- Ingested
- 20 Nov 2026, 06:18:48 UTC
- Source record
- Official CVE record