개요
이 취약점이 무엇인지
Improper path validation vulnerability in the Gleam compiler's handling of git dependencies allows arbitrary file system modification during dependency download.
Dependency names from gleam.toml and manifest.toml are incorporated into filesystem paths without sufficient validation or confinement to the intended dependency directory, allowing attacker-controlled paths (via relative traversal such as ../ or absolute paths) to target filesystem locations outside that directory. When resolving git dependencies (e.g. via gleam deps download), the computed path is used for filesystem operations including directory deletion and creation.
This vulnerability occurs during the dependency resolution and download phase, which is generally expected to be limited to fetching and preparing dependencies within a confined directory. A malicious direct or transitive git dependency can exploit this issue to delete and overwrite arbitrary directories outside the intended dependency directory, including attacker-chosen absolute paths, potentially causing data loss. In some environments, this may be further leveraged to achieve code execution, for example by overwriting git hooks or shell configuration files.
This issue affects gleam: from 1.9.0-rc1 before 1.15.4 and from 1.16.0-rc1 before 1.16.0-rc2.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| gleamlpil | 1.9.0 | ≤ | 취약 | < | 1.15.4 | 1.15.4이상 |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 22줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| GleamGleam | v1.9.0-rc1-elixir | ≤ | 취약 | < | v1.15.4-elixir | v1.15.4-elixir이상 |
| v1.9.0-rc1-erlang | ≤ | 취약 | < | v1.15.4-erlang | v1.15.4-erlang이상 | |
| v1.9.0-rc1-node | ≤ | 취약 | < | v1.15.4-node | v1.15.4-node이상 | |
| v1.9.0-rc1-node-slim | ≤ | 취약 | < | v1.15.4-node-slim | v1.15.4-node-slim이상 | |
| v1.9.0-rc1-elixir-slim | ≤ | 취약 | < | v1.15.4-elixir-slim | v1.15.4-elixir-slim이상 | |
| v1.9.0-rc1-erlang-slim | ≤ | 취약 | < | v1.15.4-erlang-slim | v1.15.4-erlang-slim이상 | |
| v1.9.0-rc1-erlang-alpine | ≤ | 취약 | < | v1.15.4-erlang-alpine | v1.15.4-erlang-alpine이상 | |
| v1.9.0-rc1-elixir-alpine | ≤ | 취약 | < | v1.15.4-elixir-alpine | v1.15.4-elixir-alpine이상 | |
| v1.9.0-rc1-node-alpine | ≤ | 취약 | < | v1.15.4-node-alpine | v1.15.4-node-alpine이상 | |
| v1.9.0-rc1-scratch | ≤ | 취약 | < | v1.15.4-scratch | v1.15.4-scratch이상 | |
| v1.16.0-rc1-elixir | ≤ | 취약 | < | v1.16.0-rc2-elixir | v1.16.0-rc2-elixir이상 | |
| v1.16.0-rc1-erlang | ≤ | 취약 | < | v1.16.0-rc2-erlang | v1.16.0-rc2-erlang이상 | |
| v1.16.0-rc1-node | ≤ | 취약 | < | v1.16.0-rc2-node | v1.16.0-rc2-node이상 | |
| v1.16.0-rc1-node-slim | ≤ | 취약 | < | v1.16.0-rc2-node-slim | v1.16.0-rc2-node-slim이상 | |
| v1.16.0-rc1-elixir-slim | ≤ | 취약 | < | v1.16.0-rc2-elixir-slim | v1.16.0-rc2-elixir-slim이상 | |
| v1.16.0-rc1-erlang-slim | ≤ | 취약 | < | v1.16.0-rc2-erlang-slim | v1.16.0-rc2-erlang-slim이상 | |
| v1.16.0-rc1-erlang-alpine | ≤ | 취약 | < | v1.16.0-rc2-erlang-alpine | v1.16.0-rc2-erlang-alpine이상 | |
| v1.16.0-rc1-elixir-alpine | ≤ | 취약 | < | v1.16.0-rc2-elixir-alpine | v1.16.0-rc2-elixir-alpine이상 | |
| v1.16.0-rc1-node-alpine | ≤ | 취약 | < | v1.16.0-rc2-node-alpine | v1.16.0-rc2-node-alpine이상 | |
| v1.16.0-rc1-scratch | ≤ | 취약 | < | v1.16.0-rc2-scratch | v1.16.0-rc2-scratch이상 | |
| 1.9.0-rc1 | ≤ | 취약 | < | 1.15.4 | 1.15.4이상 | |
| 1.16.0-rc1 | ≤ | 취약 | < | 1.16.0-rc2 | 1.16.0-rc2이상 | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치2
기타5
- github.com/gleam-lang/gleam/commit/92aae3913570e8d8962f6399404777d313045bfa
- github.com/gleam-lang/gleam/commit/a4fde22445ab8e5cc79c2ff48971616cb570702c
- access.redhat.com/security/cve/CVE-2026-32146
- bugzilla.redhat.com/show_bug.cgi?id=2457578
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32146.json