Arbitrary directory deletion via unsanitized package keys
Published Jun 2, 2026 · Updated Jun 2, 2026
Path traversal in Gleam before 1.17.0 allows attackers to delete arbitrary directories via a malicious package manifest. LocalPackages::read_from_disc accepts absolute and parent-relative package keys, paths.build_packages_package joins them to the build tree, and remove_dir_all recursively deletes the resulting path without verifying containment. Exploitation requires a victim to run gleam deps download in the crafted project, and deletion is limited to directories writable by that process.
Summary
What happened
Path traversal in Gleam before 1.17.0 allows attackers to delete arbitrary directories via a malicious package manifest. LocalPackages::read_from_disc accepts absolute and parent-relative package keys, paths.build_packages_package joins them to the build tree, and remove_dir_all recursively deletes the resulting path without verifying containment. Exploitation requires a victim to run gleam deps download in the crafted project, and deletion is limited to directories writable by that process.
The record
- CVE
- CVE-2026-43965
- Published
- Jun 2, 2026
- Updated
- Jun 2, 2026
- Vendor
- Gleam
- Product
- Gleam
- Classifications
- CWE-22, T1204.002, T1485
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 2, 2026CVE publishedPublication date reported by the CVE source.
- Jun 2, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0.18.0-rc1 <1.17.0
- Affected versionversion=ed7aec0484f10d60978b63788c8a6497590855ab <690ca069817bee5f77a28fc3e360627c1da19291
- Affected versionversion=v0.18.0-rc1-elixir-alpine <v1.17.0-elixir-alpine
- Affected versionversion=v0.18.0-rc1-elixir-slim <v1.17.0-elixir-slim
- Affected versionversion=v0.18.0-rc1-elixir <v1.17.0-elixir
- Affected versionversion=v0.18.0-rc1-erlang-alpine <v1.17.0-erlang-alpine
- Affected versionversion=v0.18.0-rc1-erlang-slim <v1.17.0-erlang-slim
- Affected versionversion=v0.18.0-rc1-erlang <v1.17.0-erlang
- Affected versionversion=v0.18.0-rc1-node-alpine <v1.17.0-node-alpine
- Affected versionversion=v0.18.0-rc1-node-slim <v1.17.0-node-slim
- Affected versionversion=v0.18.0-rc1-node <v1.17.0-node
- Affected versionversion=v0.18.0-rc1-scratch <v1.17.0-scratch
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-jqvf-f6p2-wrv3 proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo