개요
이 취약점이 무엇인지
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.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| GleamGleam | v0.18.0-rc1-elixir | ≤ | 취약 | < | v1.17.0-elixir | v1.17.0-elixir이상 |
| v0.18.0-rc1-erlang | ≤ | 취약 | < | v1.17.0-erlang | v1.17.0-erlang이상 | |
| v0.18.0-rc1-node | ≤ | 취약 | < | v1.17.0-node | v1.17.0-node이상 | |
| v0.18.0-rc1-node-slim | ≤ | 취약 | < | v1.17.0-node-slim | v1.17.0-node-slim이상 | |
| v0.18.0-rc1-elixir-slim | ≤ | 취약 | < | v1.17.0-elixir-slim | v1.17.0-elixir-slim이상 | |
| v0.18.0-rc1-erlang-slim | ≤ | 취약 | < | v1.17.0-erlang-slim | v1.17.0-erlang-slim이상 | |
| v0.18.0-rc1-erlang-alpine | ≤ | 취약 | < | v1.17.0-erlang-alpine | v1.17.0-erlang-alpine이상 | |
| v0.18.0-rc1-elixir-alpine | ≤ | 취약 | < | v1.17.0-elixir-alpine | v1.17.0-elixir-alpine이상 | |
| v0.18.0-rc1-node-alpine | ≤ | 취약 | < | v1.17.0-node-alpine | v1.17.0-node-alpine이상 | |
| v0.18.0-rc1-scratch | ≤ | 취약 | < | v1.17.0-scratch | v1.17.0-scratch이상 | |
| 0.18.0-rc1 | ≤ | 취약 | < | 1.17.0 | 1.17.0이상 | |
할당 기관(CNA) 레코드 기준 (NVD 분석 전). 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.