Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| fsspec | filesystem_spec | >= 0.9.0, < 2026.6.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | fsspec | 2026.9.0-1 | — |
| Debian 13 | fsspec | No fix yet | — |
| Debian 12 | fsspec | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | fsspec | No fix yet | — |
| Ubuntu 26.04 LTS | fsspec | No fix yet | — |
| Ubuntu 24.04 LTS | fsspec | No fix yet | — |
| Ubuntu 22.04 LTS | fsspec | No fix yet | — |
| Ubuntu 20.04 LTS | fsspec | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | python-fsspec | 2024.3.1-bp160.2.1 | openSUSE-SU-2026:22028-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | kserve-storage-controller | 0.21.0-r3 | — |
| Wolfi rolling | open-webui | 0.11.4-r5 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
federiconbaez/cortex9-fsspec-reference-jinja-ssti-model ★ 0 · Nov 9, 2026
Offline educational model of CVE-2026-104851 (fsspec ReferenceFileSystem Jinja SSTI)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | fsspec | >= 0.9.0, < 2026.6.0 | 2026.6.0 | GHSA-27vj-qcqg-25rc |
Advisories 2
- WID-SEC-2026-4111 Red Hat Ansible Automation Platform: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- openSUSE-SU-2026:22028-1 Security update for python-fsspec SUSE / openSUSE Security Updates · Oct 7, 2026
References
- https://github.com/fsspec/filesystem_spec/security/advisories/GHSA-27vj-qcqg-25rc
- https://github.com/fsspec/filesystem_spec/pull/2029
- https://github.com/fsspec/filesystem_spec/pull/2039
- https://github.com/fsspec/filesystem_spec/commit/86438783f93b1398ef245b92f0e6063b445b611c
- https://github.com/fsspec/filesystem_spec/commit/a1c16ab3f07f354aa371c38f7b1b07ea7fd4c5c8
- https://github.com/fsspec/filesystem_spec/releases/tag/2026.6.0