本文へ移動
English version →

Gleamの依存関係処理で任意のフォルダを改ざんされる脆弱性

CVE-2026-32146 SecPulse初出

概要

Gleamコンパイラーで、gitに依存関係を取得する際にパス検証が不十分な問題が見つかりました。悪意のあるgit依存関係により、依存関係ディレクトリの外にあるディレクトリを削除・上書きされ、データが失われるおそれがあります。影響を受けるのは1.9.0-rc1から1.15.4までのGleamです。修正版の1.15.4以降へ更新してください。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

Gleamコンパイラーで、gitに依存関係を取得する際にパス検証が不十分な問題が見つかりました。悪意のあるgit依存関係により、依存関係ディレクトリの外にあるディレクトリを削除・上書きされ、データが失われるおそれがあります。影響を受けるのは1.9.0-rc1から1.15.4までのGleamです。修正版の1.15.4以降へ更新してください。

何が問題か

Gleamコンパイラのgit依存関係における不適切なパス検証による任意ファイルシステム改ざんの脆弱性。

影響範囲

Gleam 1.9.0-rc1から1.15.4のバージョン。

重要度

不正なファイルシステム操作が可能で、最悪の場合コード実行につながる可能性がある。

修正方法

Gleamのバージョンを1.15.5以降にアップグレードしてください。

暫定回避

情報なし

検知方法

Gleamコンパイラの使用バージョンを確認し、影響を受けるバージョンであるかどうかを監査する。

影響パッケージ

パッケージ影響を受ける版 → 修正版
GleamGleam
a4fde22445ab8e5cc79c2ff48971616cb570702c 以上(修正版なし)→ 2dc0467f822c75de94697a912755d172928ee40a, 92aae3913570e8d8962f6399404777d313045bfa
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Summary

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.

Workarounds

  • Avoid using untrusted git dependencies, especially without pinning to a specific commit SHA
  • Review dependency trees carefully, including transitive git dep…

出典: NIST National Vulnerability Database NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく