kcve.ai취약점 정보 · 내 자산 확인

CVE-2026-43965 Path Traversal in build/packages/packages.toml Allows Arbitrary Directory Deletion

설명

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 before 1.17.0.

영향 받는 제품 제품 1개

  • Gleam

    Gleam

    해결 버전 있음

    영향 받는 버전

    • v0.18.0-rc1-elixir 이상 v1.17.0-elixir 미만
    • v0.18.0-rc1-erlang 이상 v1.17.0-erlang 미만
    • v0.18.0-rc1-node 이상 v1.17.0-node 미만
    • v0.18.0-rc1-node-slim 이상 v1.17.0-node-slim 미만
    • v0.18.0-rc1-elixir-slim 이상 v1.17.0-elixir-slim 미만
    • v0.18.0-rc1-erlang-slim 이상 v1.17.0-erlang-slim 미만
    • v0.18.0-rc1-erlang-alpine 이상 v1.17.0-erlang-alpine 미만
    • v0.18.0-rc1-elixir-alpine 이상 v1.17.0-elixir-alpine 미만
    외 3개 구간 펼치기
    • v0.18.0-rc1-node-alpine 이상 v1.17.0-node-alpine 미만
    • v0.18.0-rc1-scratch 이상 v1.17.0-scratch 미만
    • 0.18.0-rc1 이상 1.17.0 미만

    해결 버전

    • v1.17.0-elixir 이상
    • v1.17.0-erlang 이상
    • v1.17.0-node 이상
    • v1.17.0-node-slim 이상
    • v1.17.0-elixir-slim 이상
    • v1.17.0-erlang-slim 이상
    • v1.17.0-erlang-alpine 이상
    • v1.17.0-elixir-alpine 이상
    외 3개 구간 펼치기
    • v1.17.0-node-alpine 이상
    • v1.17.0-scratch 이상
    • 1.17.0 이상

참고 자료 5건

‹ 목록

점검 지원 범위 문의

도입 문의