AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
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コンパイラの使用バージョンを確認し、影響を受けるバージョンであるかどうかを監査する。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| GleamGleam |
≥ a4fde22445ab8e5cc79c2ff48971616cb570702c (no fix yet)→ 2dc0467f822c75de94697a912755d172928ee40a, 92aae3913570e8d8962f6399404777d313045bfa |
2dc0467f822c75de94697a912755d172928ee40a, 92aae3913570e8d8962f6399404777d313045bfa |
Original description The description as published by the source.
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…
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory access.redhat.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- report bugzilla.redhat.com
- web cna.erlef.org
- web osv.dev
- web security.access.redhat.com
- web ghcr.io
- web github.com
- web github.com