CVE 목록
Medium5.1

CVE-2026-42795

공개
2026년 6월 2일
수정
2026년 11월 20일
조회
0
상태
Deferred
관련 내용 구글 검색하기한국어English
번역 대상이 아니에요. 원문(영어)만 제공돼요.
5.1Medium

개요

이 취약점이 무엇인지

Symlink following vulnerability in Gleam's Hex package export allows files outside the project root to be embedded in the generated package tarball.

The file collection helpers (gleam_files, native_files, private_files) in compiler-cli/src/fs.rs use follow_links(true) when walking publishable directories such as src/ and priv/. The collected paths are added to the package archive via add_path_to_tar in compiler-cli/src/publish.rs without verifying that the resolved target remains within the project root. A symlink placed under a publishable directory will cause gleam export hex-tarball or gleam publish to embed the contents of the symlink target into the generated Hex package.

An attacker with write access to the project repository can place a symlink in src/ or priv/ pointing to an arbitrary file. When a maintainer or CI pipeline runs gleam publish or gleam export hex-tarball, local files readable by the publisher (such as secrets, tokens, or SSH keys) are silently embedded into the published package artifact.

This issue affects gleam: from 0.10.0-rc1 before 1.17.0.

실제 악용 사례 · 아직 확인된 사례가 없어요

CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.

패치 현황

어떤 버전이 위험하고, 몇 버전으로 올리면 되는지

제품시작끝이 버전 이상으로
GleamGleamv0.10.0-rc1-elixir≤취약<v1.17.0-elixirv1.17.0-elixir이상
v0.10.0-rc1-erlang≤취약<v1.17.0-erlangv1.17.0-erlang이상
v0.10.0-rc1-node≤취약<v1.17.0-nodev1.17.0-node이상
v0.10.0-rc1-node-slim≤취약<v1.17.0-node-slimv1.17.0-node-slim이상
v0.10.0-rc1-elixir-slim≤취약<v1.17.0-elixir-slimv1.17.0-elixir-slim이상
v0.10.0-rc1-erlang-slim≤취약<v1.17.0-erlang-slimv1.17.0-erlang-slim이상
v0.10.0-rc1-erlang-alpine≤취약<v1.17.0-erlang-alpinev1.17.0-erlang-alpine이상
v0.10.0-rc1-elixir-alpine≤취약<v1.17.0-elixir-alpinev1.17.0-elixir-alpine이상
v0.10.0-rc1-node-alpine≤취약<v1.17.0-node-alpinev1.17.0-node-alpine이상
v0.10.0-rc1-scratch≤취약<v1.17.0-scratchv1.17.0-scratch이상
0.10.0-rc1≤취약<1.17.01.17.0이상

할당 기관(CNA) 레코드 기준 (NVD 분석 전). 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.

참고 링크

NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.