CVE-2026-43965
Last modified
CVE-2026-43965 is a medium-severity vulnerability rated 5.6/10 on the CVSS scale. 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). EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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 until 1.17.0.
Metrics
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-43965?
How severe is CVE-2026-43965?
How do I fix CVE-2026-43965?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-43948wger is a free, open-source workout and fitness manager. Pri…9.9
- CVE-2026-4395Heap-based buffer overflow in the KCAPI ECC code path of wc_…9.8
- CVE-2026-43951Out-of-bounds Read vulnerability in Apache HTTP Server with …6.5
- CVE-2026-43958A flaw was found in rrdcached, a component of rrdtool. A loc…7.8
- CVE-2026-4396Improper certificate validation in Devolutions Hub Reporting…8.1
- CVE-2026-43964Postfix before 3.8.16, 3.9 before 3.9.10, and 3.10 before 3.…7.5
- CVE-2026-43966Improper Neutralization of CRLF Sequences in HTTP Headers ('…6.3
- CVE-2026-43967Inefficient Algorithmic Complexity vulnerability in absinthe…7.5
- CVE-2026-43968Improper Neutralization of CRLF Sequences ('CRLF Injection')…4
- CVE-2026-43969Improper Neutralization of CRLF Sequences ('CRLF Injection')…3.2
- CVE-2026-43970Improper Handling of Highly Compressed Data (Data Amplificat…8.2
- CVE-2026-43972Origin Validation Error vulnerability in ninenines gun (gun_…6.3
Are you affected by CVE-2026-43965?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
