Skip to content
Threat Brief

← All advisories

CVE-2026-43965

Medium 5.6No known exploitationFix available

Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion

Record last updated

CVSS score

5.6

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.2%

Higher than 14% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-22

Patching and mitigation

Patch status
Fix available (source: CVE record (EEF))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
GleamGleamfrom 0.18.0-rc1 before 1.17.01.17.0CVE Program
GleamGleamfrom ed7aec0484f10d60978b63788c8a6497590855ab before 690ca069817bee5f77a28fc3e360627c1da19291690ca069817bee5f77a28fc3e360627c1da19291CVE Program
GleamGleamfrom v0.18.0-rc1-elixir before v1.17.0-elixirv1.17.0-elixirCVE Program
GleamGleamfrom v0.18.0-rc1-elixir-alpine before v1.17.0-elixir-alpinev1.17.0-elixir-alpineCVE Program
GleamGleamfrom v0.18.0-rc1-elixir-slim before v1.17.0-elixir-slimv1.17.0-elixir-slimCVE Program
GleamGleamfrom v0.18.0-rc1-erlang before v1.17.0-erlangv1.17.0-erlangCVE Program
GleamGleamfrom v0.18.0-rc1-erlang-alpine before v1.17.0-erlang-alpinev1.17.0-erlang-alpineCVE Program
GleamGleamfrom v0.18.0-rc1-erlang-slim before v1.17.0-erlang-slimv1.17.0-erlang-slimCVE Program
GleamGleamfrom v0.18.0-rc1-node before v1.17.0-nodev1.17.0-nodeCVE Program
GleamGleamfrom v0.18.0-rc1-node-alpine before v1.17.0-node-alpinev1.17.0-node-alpineCVE Program
GleamGleamfrom v0.18.0-rc1-node-slim before v1.17.0-node-slimv1.17.0-node-slimCVE Program
GleamGleamfrom v0.18.0-rc1-scratch before v1.17.0-scratchv1.17.0-scratchCVE Program

Timeline

  1. Disclosure

    CVE record published by EEF

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (EEF)

    Source: CVE record (EEF) (opens in a new tab)

Vendor guidance and references