{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-43965","published":"2026-06-02T14:16:54.053000Z","last_modified":"2026-11-20T06:17:27.730000Z","status":"Deferred","cvss":{"version":"4.0","score":5.6,"severity":"MEDIUM","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","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","primary":false},"auth":true,"cwes":["CWE-22"],"cpes":[],"cpes_truncated":false,"vendors":["gleam"],"products":["gleam/gleam"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":34,"links":{"html_es":"/es/cve/CVE-2026-43965/","html_en":"/en/cve/CVE-2026-43965/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-43965","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-43965"},"untrusted":{"vendor_name":"Gleam","product_name":"Gleam","desc_en":"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.","affected":[{"untrusted_vendor":"Gleam","untrusted_product":"Gleam","versions":[]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-43965.html","tags":[]},{"url":"https://github.com/gleam-lang/gleam/commit/690ca069817bee5f77a28fc3e360627c1da19291","tags":[]},{"url":"https://github.com/gleam-lang/gleam/commit/ed7aec0484f10d60978b63788c8a6497590855ab","tags":[]},{"url":"https://github.com/gleam-lang/gleam/security/advisories/GHSA-jqvf-f6p2-wrv3","tags":[]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-43965","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:21143-1","url":"https://www.suse.com/support/update/","published":"2026-06-23T09:40:09+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for gleam"}},{"source":"suse","id":"openSUSE-SU-2026:10953-1","url":"https://www.suse.com/support/update/","published":"2026-06-04T00:00:00+00:00","severity":"medium","exploited":false,"untrusted":{"title":"gleam-1.17.0-1.1 on GA media"}}]}