Skip to main content
Network Thinking Solutions Logo

CVE-2026-43965

Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious build/packages/packages.toml content.

All CVEs
CVE-2026-43965Published 6/2/2026

Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious build/packages/packages.toml content.

Vendor advisory
CVSS5.6Medium

Overview

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.

Published
6/2/2026
Last modified
11/20/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
Gleam
Gleam
≥ v0.18.0-rc1-elixir, < v1.17.0-elixir

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ v0.18.0-rc1-erlang, < v1.17.0-erlang

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ v0.18.0-rc1-node, < v1.17.0-node

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ v0.18.0-rc1-node-slim, < v1.17.0-node-slim

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ v0.18.0-rc1-elixir-slim, < v1.17.0-elixir-slim

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ v0.18.0-rc1-erlang-slim, < v1.17.0-erlang-slim

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ v0.18.0-rc1-erlang-alpine, < v1.17.0-erlang-alpine

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ v0.18.0-rc1-elixir-alpine, < v1.17.0-elixir-alpine

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ v0.18.0-rc1-node-alpine, < v1.17.0-node-alpine

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ v0.18.0-rc1-scratch, < v1.17.0-scratch

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ 0.18.0-rc1, < 1.17.0

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Gleam
Gleam
≥ ed7aec0484f10d60978b63788c8a6497590855ab, < 690ca069817bee5f77a28fc3e360627c1da19291

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.6. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.