Skip to content

Path Traversal in Lpil

CVE-2026-32146 First seen on SecPulse

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以降へ更新してください。

What is the problem

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

Affected scope

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

Severity

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

How to fix

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

Workaround

情報なし

Detection

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

Affected packages

PackageAffected → Fixed
GleamGleam
≥ a4fde22445ab8e5cc79c2ff48971616cb570702c (no fix yet)→ 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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details