🔍 CVE-2026-104851

8.8
CVSS Score
HIGH
2026-10-02
2026-10-05 20:17
✅ 완료

🇰🇷 한글 설명

fsspec 라이브러리의 ReferenceFileSystem에서 Kerchunk 참조 JSON 문서를 처리할 때 jinja2 템플릿을 제한 없이 렌더링하여 발생하는 취약점입니다. 공격자가 제어하는 URL이나 인라인 문서를 통해 임의의 Python 코드를 실행할 수 있는 원격 코드 실행(RCE) 위험이 있습니다.

💡 쉬운 설명

파일 시스템을 다루는 프로그램이 외부에서 가져온 설정 파일을 읽을 때, 그 안에 숨겨진 악성 명령어를 검사 없이 실행해버리는 문제입니다. 이를 통해 해커가 사용자의 컴퓨터에서 마음대로 명령을 내릴 수 있습니다.

🇺🇸 원문 (English)

fsspec is a specification and Python implementation framework for filesystem interfaces. From 0.9.0 until 2026.6.0, fsspec.implementations.reference.ReferenceFileSystem evaluates fields from Kerchunk reference JSON documents through unrestricted jinja2.Template(...).render(...) calls in _process_references1._render_jinja, _process_templates, and _process_gen in fsspec/implementations/reference.py. A document supplied inline or fetched from an attacker-controlled URL can provide template expressions that execute Python code when the reference filesystem is opened, including through consumers such as xarray, before referenced data is read. The _process_gen path is reached whenever a document includes a gen array, while the other paths depend on template-related options and values. This issue is fixed in version 2026.6.0.

📍 영향받는 시스템

fsspec 0.9.0 ~ 2026.6.0 미만 버전

⚔️ 공격 벡터

공격자가 조작한 Kerchunk JSON 문서를 제공하거나 악성 URL을 통해 템플릿 표현식을 주입하여 실행

🛡️ 대응 방법

fsspec 라이브러리를 2026.6.0 이상 버전으로 업데이트

🔧 검증 코드

출력된 버전이 2026.6.0 미만이면 취약한 상태이며, 2026.6.0 이상이면 안전합니다.

Shell / Script
pip show fsspec | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python