Skip to content

Code Injection in fsspec

CVE-2026-104851 First seen on SecPulse

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以降へ更新してください。

What is the problem

fsspecのReferenceFileSystemで、Pythonコードを実行可能なテンプレート評価の脆弱性。

Affected scope

fsspecのバージョン0.9.0から2026.6.0。

Severity

攻撃者が管理するURLからのコード実行が可能で、高リスク。

How to fix

バージョン2026.6.0にアップデートする。

Workaround

影響を受けるバージョンの使用を避け、信頼できないデータソースを使用しないようにする。

Detection

fsspecのバージョンを確認し、ユーザー提供のデータソースを監査する。

Affected packages

PackageAffected → Fixed
pipfsspec
< 2026.6.0→ 2026.6.0
PyPIfsspec
≥ 0.9.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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details