Summary
Path traversal in Lpil (CVE-2026-32146). Successful exploitation can lead to full system takeover. Exploitable via gleam.toml.
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 until 1.15.4.
Workaround
- Avoid using untrusted git dependencies, especially without pinning to a specific commit SHA
- Review dependency trees carefully, including transitive git dependencies
- Run dependency resolution commands in…
Source: NIST National Vulnerability Database NVD GitHub Advisory
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
Gleamコンパイラのgit依存関係処理における不適切なパス検証により、依存関係のダウンロード中に任意のファイルシステムの改ざんが可能となる脆弱性が存在します。攻撃者はgleam.tomlやmanifest.tomlの値を利用して、意図されたディレクトリ外のファイルやディレクトリに対し、不正なファイル削除や作成を行うことができます。最悪の場合、コード実行につながる可能性があります。この問題はGleam 1.9.0-rc1から1.15.4まで影響します。
Gleamコンパイラのgit依存関係における不適切なパス検証による任意ファイルシステム改ざんの脆弱性。
Gleam 1.9.0-rc1から1.15.4のバージョン。
不正なファイルシステム操作が可能で、最悪の場合コード実行につながる可能性がある。
Gleamのバージョンを1.15.5以降にアップグレードしてください。
情報なし
Gleamコンパイラの使用バージョンを確認し、影響を受けるバージョンであるかどうかを監査する。
References
- advisory cna.erlef.org
- advisory osv.dev
- exploit github.com
- patch github.com
- patch github.com
- web access.redhat.com
- web bugzilla.redhat.com
- web security.access.redhat.com