جزئیات آسیبپذیری
CVE-2026-32146
Improper Path Validation in Git Dependency Handling Allows Arbitrary File System Modification
شرح رسمی (انگلیسی)
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.
امتیازهای CVSS
| امتیاز | نسخه | منبع | بردار |
|---|---|---|---|
| 8.3بالا | 4.0 | CVEProject cvelistV5 (CNA) (EEF) | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H |
| 8.6بالا | 3.1 | CVEProject cvelistV5 (CNA) (redhat-SADP) | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
محصولات آسیبپذیر
| فروشنده | محصول | نسخهها | منبع |
|---|---|---|---|
| Gleam | Gleam | 1.9.0-rc1 ≤ v | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | 1.9.0-rc1 ≤ v | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | a4fde22445ab8e5cc79c2ff48971616cb570702c ≤ v | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-elixir ≤ v < v1.15.4-elixir | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-elixir-alpine ≤ v < v1.15.4-elixir-alpine | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-elixir-slim ≤ v < v1.15.4-elixir-slim | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-erlang ≤ v < v1.15.4-erlang | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-erlang-alpine ≤ v < v1.15.4-erlang-alpine | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-erlang-slim ≤ v < v1.15.4-erlang-slim | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-node ≤ v < v1.15.4-node | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-node-alpine ≤ v < v1.15.4-node-alpine | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-node-slim ≤ v < v1.15.4-node-slim | CVEProject cvelistV5 (CNA) |
| Gleam | Gleam | v1.9.0-rc1-scratch ≤ v < v1.15.4-scratch | CVEProject cvelistV5 (CNA) |
منابع و راهنماها
۸- https://github.com/gleam-lang/gleam/security/advisories/GHSA-vq5j-55vx-wq8j vendor-advisoryrelated
- https://cna.erlef.org/cves/CVE-2026-32146.html related
- https://osv.dev/vulnerability/EEF-CVE-2026-32146 related
- https://github.com/gleam-lang/gleam/commit/1aa5d8e594b0aa240bb213fce6ee19c65e6d5bcf patch
- https://github.com/gleam-lang/gleam/commit/2dc0467f822c75de94697a912755d172928ee40a patch
- https://access.redhat.com/security/cve/CVE-2026-32146 vdb-entryx_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2457578 issue-trackingx_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32146.json x_sadp-csaf-vex
اطلاعات
- تاریخ انتشار
- ۱۴۰۵/۰۱/۲۲
- آخرین بهروزرسانی
- ۱۴۰۵/۰۶/۱۷
- وضعیت
- منتشرشده
- صادرکننده (CNA)
- EEF
پیشبینی بهرهبرداری (EPSS)
ارزیابی SSVC (CISA)
- قابل خودکارسازی
- خیر
- وضعیت بهرهبرداری
- اثبات مفهوم
- اثر فنی
- جزئی
ضعفها (CWE)
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')