{"vuln_id":"CVE-2026-43965","aliases":["GHSA-jqvf-f6p2-wrv3"],"description":"Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious build/packages/packages.toml content.\n\nPackage 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.\n\nAn 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.\n\nThis issue affects gleam: from 0.18.0-rc1 before 1.17.0.","published_at":"2026-06-02T14:16:54.053000Z","modified_at":"2026-11-20T06:17:27.730000Z","first_seen_at":"2026-11-21T19:15:46.262926Z","severity":"medium","severity_source":"nvd","cvss_score":5.6,"cvss_vector":"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","cwe":["CWE-22"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00229,"epss_percentile":0.13729,"nvd_status":"Deferred","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-43965"},"matched_alias":null,"items":[{"id":3178,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-43965: Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious build/packages/packages.toml content. Package k…","summary":"Path traversal vulnerability in Gleam's dependency management allows arbitrary directory deletion via malicious build/packages/packages.toml content.\n\nPackage 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.\n\nAn 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.\n\nThis issue affects gleam: from 0.18.0-rc1 before 1.17.0.\n\nReferences:\nhttps://cna.erlef.org/cves/CVE-2026-43965.html\nhttps://github.com/gleam-lang/gleam/commit/690ca069817bee5f77a28fc3e360627c1da19291\nhttps://github.com/gleam-lang/gleam/commit/ed7aec0484f10d60978b63788c8a6497590855ab\nhttps://github.com/gleam-lang/gleam/security/advisories/GHSA-jqvf-f6p2-wrv3\nhttps://osv.dev/vulnerability/EEF-CVE-2026-43965\nhttps://github.com/gleam-lang/gleam/security/advisories/GHSA-jqvf-f6p2-wrv3","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43965","published_at":"2026-06-02T14:16:54.053000Z","updated_at":"2026-11-20T06:17:27.730000Z","fetched_at":"2026-11-21T19:15:31.478779Z","severity":"medium","cvss_score":5.6,"epss":0.00229,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-43965","vuln_ids":["CVE-2026-43965","GHSA-JQVF-F6P2-WRV3"],"tags":["CWE-22"],"cluster_id":3229,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3178","html":"https://vulnwatch.ve1ve2.com/item/3178"}}]}