{"id":4095,"date":"2026-09-04T18:43:00","date_gmt":"2026-09-04T10:43:00","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-43965"},"modified":"2026-09-04T18:43:00","modified_gmt":"2026-09-04T10:43:00","slug":"cve-2026-43965","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-43965","title":{"rendered":"CVE-2026-43965 &#8211; Path traversal vulnerability in Gleam&#8217;s dependency management allows arbitrary directory d"},"content":{"rendered":"<p>Path traversal vulnerability in Gleam&#8217;s dependency management allows arbitrary directory deletion via malicious build\/packages\/packages.toml content.<\/p>\n<p>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.<\/p>\n<p>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&#8217;s system to be recursively deleted.<\/p>\n<p>This issue affects Gleam from 0.18.0-rc1 until 1.17.0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Path traversal vulnerability in Gleam&#8217;s dependency management allows arbitrary directory deletion via malicious build\/packages\/packages.toml content.<\/p>\n<p>Package keys read from build\/packages\/packages.to<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-4095","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/4095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}