🔍 CVE-2026-32146

7.8
CVSS Score
HIGH
2026-04-11
2026-09-08 01:17
✅ 완료

🇰🇷 한글 설명

Gleam 컴파일러의 git 의존성 처리에서 경로 검증이 불충분하여, 악의적인 의존성이 상대 경로(../) 또는 절대 경로를 통해 의도된 디렉토리 외부의 임의의 파일 시스템 위치를 삭제하고 덮어쓸 수 있습니다. git 훅이나 쉘 설정 파일을 변조하여 코드 실행까지 가능합니다.

💡 쉬운 설명

Gleam에서 라이브러리를 다운로드할 때 악의적인 라이브러리가 컴퓨터의 다른 중요한 폴더를 삭제하거나 파일을 변조할 수 있습니다. 이를 통해 데이터 손실이나 악의적인 코드 실행이 발생할 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Gleam 1.9.0-rc1 ~ 1.15.4

⚔️ 공격 벡터

악의적인 git 의존성(직접 또는 간접)을 추가하여 의존성 다운로드 시 경로 traversal 공격으로 시스템 임의 위치 파일 삭제/변조

🛡️ 대응 방법

Gleam을 1.15.5 이상으로 즉시 업그레이드하고 신뢰할 수 없는 출처의 의존성 사용 금지

🔧 검증 코드

출력된 버전이 1.15.5 이상이면 안전함. 1.15.4 이하면 즉시 업그레이드 필요

Shell / Script
gleam --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Git