CVE-2026-43965
published medium CVSS 4.0 · 5.6Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gleam | — | gleam-lang/gleamGleam · v0.18.0-rc1-elixir to < v1.17.0-elixir · v0.18.0-rc1-erlang to < v1.17.0-erlang · v0.18.0-rc1-node to < v1.17.0-node · v0.18.0-rc1-node-slim to < v1.17.0-node-slim · v0.18.0-rc1-elixir-slim to < v1.17.0-elixir-slim · v0.18.0-rc1-erlang-slim to < v1.17.0-erlang-slim · v0.18.0-rc1-erlang-alpine to < v1.17.0-erlang-alpine · v0.18.0-rc1-elixir-alpine to < v1.17.0-elixir-alpine · v0.18.0-rc1-node-alpine to < v1.17.0-node-alpine · v0.18.0-rc1-scratch to < v1.17.0-scratch · Other versions: unaffected | Affected | Not stated | EEF |
| Gleam | — | gleamGleam · 0.18.0-rc1 to < 1.17.0 · Other versions: unaffected | Affected | Not stated | EEF |
| Gleam | — | gleam-lang/gleamGleam · ed7aec0484f10d60978b63788c8a6497590855ab to < 690ca069817bee5f77a28fc3e360627c1da19291 · Other versions: unaffected | Affected | Not stated | EEF |
| SUSE / openSUSE | openSUSE-Leap-16.0 | gleamaarch64 | Advisory build | 1.17.0-bp160.1.1 | OPENSUSE-SU-2026:21143-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | gleamx86_64 | Advisory build | 1.17.0-bp160.1.1 | OPENSUSE-SU-2026:21143-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gleamaarch64 | Advisory build | 1.17.0-1.1 | OPENSUSE-SU-2026:10953-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gleamppc64le | Advisory build | 1.17.0-1.1 | OPENSUSE-SU-2026:10953-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gleams390x | Advisory build | 1.17.0-1.1 | OPENSUSE-SU-2026:10953-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | gleamx86_64 | Advisory build | 1.17.0-1.1 | OPENSUSE-SU-2026:10953-1 |
Description
Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious build/packages/packages.toml content. Package keys read from build/packages/packages.toml by LocalPackages::read_from_disc are passed without validation to paths.build_packages_package(), which constructs a filesystem path by joining the project build directory with the attacker-controlled key. The resulting path is then passed to fs::delete_directory (which calls remove_dir_all). No check is performed to ensure the path remains within the intended build/packages/ directory. Both absolute paths and relative traversal sequences (e.g. ../) are accepted as package keys, allowing deletion of arbitrary directories. An attacker who can cause a victim to run gleam deps download on a project containing a malicious build/packages/packages.toml (e.g. by committing the normally-gitignored file to a repository) can cause arbitrary directories on the victim's system to be recursively deleted. This issue affects gleam: from 0.18.0-rc1 before 1.17.0.
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.6 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:L/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.18.0-rc1-elixir to < v1.17.0-elixir (affected · other)v0.18.0-rc1-erlang to < v1.17.0-erlang (affected · other)v0.18.0-rc1-node to < v1.17.0-node (affected · other)v0.18.0-rc1-node-slim to < v1.17.0-node-slim (affected · other)v0.18.0-rc1-elixir-slim to < v1.17.0-elixir-slim (affected · other)v0.18.0-rc1-erlang-slim to < v1.17.0-erlang-slim (affected · other)v0.18.0-rc1-erlang-alpine to < v1.17.0-erlang-alpine (affected · other)v0.18.0-rc1-elixir-alpine to < v1.17.0-elixir-alpine (affected · other)v0.18.0-rc1-node-alpine to < v1.17.0-node-alpine (affected · other)v0.18.0-rc1-scratch to < v1.17.0-scratch (affected · other)Default: unaffected | EEF · cna |
| Gleam | Gleam | 0.18.0-rc1 to < 1.17.0 (affected · semver)Default: unaffected | EEF · cna |
| Gleam | Gleam | ed7aec0484f10d60978b63788c8a6497590855ab to < 690ca069817bee5f77a28fc3e360627c1da19291 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
5- EEF CNA record for CVE-2026-43965 https://cna.erlef.org/cves/CVE-2026-43965.html
- Fix commit 690ca06 in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/690ca069817bee5f77a28fc3e360627c1da19291
- Introducing commit ed7aec0 in gleam-lang/gleam https://github.com/gleam-lang/gleam/commit/ed7aec0484f10d60978b63788c8a6497590855ab
- Path Traversal in build/packages/packages.toml allows arbitrary directory deletion https://github.com/gleam-lang/gleam/security/advisories/GHSA-jqvf-f6p2-wrv3
- OSV record EEF-CVE-2026-43965 https://osv.dev/vulnerability/EEF-CVE-2026-43965
Provider assertions
2EEF · cna
Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6daf8a6ef31e9be6c1d0e985c7459b3046b3f437dda3296db58edfa2a6915ee1
- Ingested
- 20 Nov 2026, 06:18:48 UTC
- Source record
- Official CVE record