Code Injection in fsspec
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
fsspecのReferenceFileSystemが、Kerchunk形式の参照JSONを処理する際にテンプレートを無制限に描画するため、細工されたJSONを開いた利用者の環境で任意のPythonコードが実行されるおそれがあります。影響を受けるのは2026.6.0より前のfsspecで、修正版の2026.6.0以降へ更新してください。
fsspecのReferenceFileSystemで、Pythonコードを実行可能なテンプレート評価の脆弱性。
fsspecのバージョン0.9.0から2026.6.0。
攻撃者が管理するURLからのコード実行が可能で、高リスク。
バージョン2026.6.0にアップデートする。
影響を受けるバージョンの使用を避け、信頼できないデータソースを使用しないようにする。
fsspecのバージョンを確認し、ユーザー提供のデータソースを監査する。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pipfsspec |
< 2026.6.0→ 2026.6.0 |
2026.6.0 |
| PyPIfsspec |
≥ 0.9.0, < 2026.6.0→ 2026.6.0 |
2026.6.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-104851 fsspec Fix available
- Ubuntu UBUNTU-CVE-2026-104851 fsspec No fixed version in this record
Original description The description as published by the source.
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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- advisory github.com
- package github.com
- package pypi.org
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com