CVE-2026-104851: fsspec: Server-Side Template Injection in ReferenceFileSystem leads to Remote Code Execution
Vulnerability summary
CVE-2026-104851 is a high (CVSS 8.8) Improper Control of Generation of Code vulnerability in fsspec filesystem_spec. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 41% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 02-10-2026PublishedVulnerability first disclosed.
- 05-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.47%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
Increase +0.16 pp
From 0.32% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of CodeThe product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-1336Improper Neutralization of Special Elements Used in a Template EngineThe product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard17 products
- airflow-2All versions (No fix recorded)
- airflow-core-2< 2.11.2-r13
- kserve-huggingfaceserver-cuda-13.3All versions (No fix recorded) | < 0.21.0-r4
- kserve-storage-controller< 0.21.0-r3
- mlrunAll versions (No fix recorded) | < 1.12.1-r1
Wolfi2 products
- kserve-storage-controller< 0.21.0-r3
- open-webui< 0.11.4-r5
Debian1 product
- fsspecAll versions (No fix recorded) | < 2026.9.0-1
Fsspec1 product
- filesystem_spec≥ 0.9.0, < 2026.6.0
Opensuse1 product
- python-fsspec&distro=openSUSE Leap 16.0< 2024.3.1-bp160.2.1
PyPI1 product
- fsspec≥ 0.9.0, < 2026.6.0
Ubuntu1 product
- fsspecAll versions (No fix recorded)
7 vendors · 24 products
References
16 links- github.com/fsspec/filesystem_spec/security/advisories/GHSA-27vj-qcqg-25rcX Refsource CONFIRMWEBREPORTAdvisory
- github.com/fsspec/filesystem_spec/commit/86438783f93b1398ef245b92f0e6063b445b611cX Refsource MISCWEBREPORTFIX
- github.com/fsspec/filesystem_spec/commit/a1c16ab3f07f354aa371c38f7b1b07ea7fd4c5c8X Refsource MISCWEBREPORTFIX
Show all 16 references
- pypi.org/project/fsspecPACKAGE