Skip to main content

fsspec ReferenceFileSystem EUVDEUVD-2026-91720

| CVE-2026-104851 HIGH
Code Injection (CWE-94)
2026-10-02 GitHub_M GHSA-27vj-qcqg-25rc
8.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Host malicious Kerchunk reference JSON at attacker URL
  2. Delivery
    Victim opens ReferenceFileSystem (e.g. via xarray)
  3. Exploit
    fsspec renders gen/template fields via jinja2
  4. Execution
    Python code executes before data read
  5. Impact
    Remote code execution in victim process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim application must open or consume an fsspec ReferenceFileSystem (Kerchunk) reference document whose contents are attacker-controlled - supplied inline or fetched from an attacker-controlled URL - including indirectly through consumers like xarray. The _process_gen path executes attacker templates automatically with NO special configuration whenever the document contains a gen array; the _render_jinja and _process_templates paths additionally require template-related options/values to be set. Limiting factors: exploitation requires user interaction (the reference filesystem must actually be opened, matching UI:R) and requires the deployment to feed untrusted reference JSON into fsspec - applications that only process trusted, internally-generated references are not exposed. The fix makes jinja interpretation opt-in (simple_templates/simple_references default to the safe, non-evaluating behavior), confirming that affected versions evaluated these fields by default.

Impact

Signals are largely consistent and point to a genuine high-priority issue rather than an inflated CVSS score. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R) describes a network-reachable, low-complexity, unauthenticated code-injection flaw (CWE-94) whose only gating factor is that a victim must open or consume a reference document - a routine action in data/ML pipelines. A vendor patch is confirmed (GHSA-27vj-qcqg-25rc, fixed in 2026.6.0), and the fix commit ships a regression test that executes attacker-controlled Python via a Kerchunk gen array, demonstrating the code path is trivially reachable in the default pre-patch configuration. No EPSS score, no CISA KEV listing, and no explicit POC flag were supplied in the input, so exploitation probability and in-the-wild status cannot be quantified; absence of KEV means this is NOT confirmed as actively exploited. The most important nuance the raw 8.8 obscures is attack surface: full impact requires the application to feed untrusted or attacker-influenceable reference JSON (inline or from an attacker-controlled URL) into ReferenceFileSystem, so environments that only open trusted, locally-generated Kerchunk references face substantially lower real-world risk than the network vector alone implies - verify how reference documents are sourced before triaging.

Exploit ScenarioDerived

A data engineer opens a Kerchunk reference dataset (directly or via a consumer such as xarray) whose JSON was supplied by an attacker inline or fetched from an attacker-controlled URL. Because fsspec renders template fields through unrestricted jinja2 before any data is read, the malicious template expression executes arbitrary Python in the victim's process the moment the reference filesystem is opened. The fix commit includes a regression test proving execution (a {{ 1 / 0 }} payload in a gen array), so a working proof-of-concept of the mechanism is publicly visible in the repository, though no standalone weaponized exploit was reported in the input.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 02, 2026

Opening an attacker-controlled Kerchunk reference document with fsspec's ReferenceFileSystem can execute arbitrary Python code, because versions from 0.9.0 up to (but not including) 2026.6.0 render reference fields through unrestricted jinja2 templates instead of treating them as inert data. The vulnerability is exploitable by unauthenticated attackers but requires user interaction: the victim application - or a downstream consumer such as xarray - must actually open the malicious document, which can be supplied inline or fetched from an attacker-controlled URL, and the gen-array code path triggers with no special configuration at all. Rated CVSS 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, CWE-94), it is addressed by the vendor's 2026.6.0 release, which makes jinja interpretation opt-in; no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade fsspec (filesystem_spec) to 2026.6.0, the first release in which jinja interpretation of reference manifests is opt-in via the new simple_references/simple_templates options; the fix landed through pull requests #2029 (https://github.com/fsspec/filesystem_spec/pull/2029) and #2039 (https://github.com/fsspec/filesystem_spec/pull/2039), with commits 86438783f93b1398ef245b92f0e6063b445b611c and a1c16ab3f07f354aa371c38f7b1b07ea7fd4c5c8. After upgrading, keep the defaults - do not set simple_templates=False or simple_references=False unless the manifest is generated and validated internally, since that flag restores the dangerous jinja2.Template(...).render(...) behavior. Until the upgrade can be deployed, do not construct a ReferenceFileSystem from manifests that are attacker-supplied, fetched from untrusted URLs, or bundled with untrusted datasets; where such manifests must be processed, sandbox the consuming process (unprivileged container, no credentials, restricted egress) and validate or strip 'templates' and 'gen' sections before passing the document to fsspec - noting that stripping gen/templates breaks legitimate Kerchunk features such as virtual Zarr/Parquet aggregation, and that restricting network access alone does not protect against inline manifests. Full details are in the GitHub advisory at https://github.com/fsspec/filesystem_spec/security/advisories/GHSA-27vj-qcqg-25rc.

Affected VersionsENISA

filesystem_spec 0.9.0, < 2026.6.0

Affected Packages

pypi fsspec fix: 2026.6.0
euvd filesystem_spec_0_9_0 fix: 2026.6.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

fsspec implements the Kerchunk/reference-filesystem specification, in which a JSON manifest maps virtual keys to concrete storage locations and byte ranges, and may also include 'templates' and 'gen' sections that programmatically expand references. In affected code, ReferenceFileSystem evaluated the string values of these fields by calling jinja2.Template(...).render(...) inside _process_references1._render_jinja, _process_templates, and _process_gen in fsspec/implementations/reference.py. Because jinja2 exposes attribute traversal and callable access to the underlying Python runtime, a manifest authored by an attacker can embed expressions that execute arbitrary Python when the filesystem object is constructed - before any referenced dataset byte is read. The CWE-94 (Improper Control of Generation of Code / Code Injection) root cause is that untrusted reference-manifest data was treated as executable template source rather than as data, and the unsafe evaluation happened by default. The vendor fix introduces simple_references/simple_templates switches that default to the safe, non-evaluating behavior; the regression test added in PR #2029 demonstrates the difference directly, showing a gen entry containing '{{ 1 / 0 }}' being ignored by default but raising ZeroDivisionError when simple_templates=False is passed.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Attacker-supplied reference document yields unauthenticated (PR:N) code execution with full C/I/A impact, but the victim must open the document (UI:R) and complexity is low (AC:L).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.8 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Oct 02, 2026 - 17:02 EUVD
CVE Published
Oct 02, 2026 - 16:36 cve.org
HIGH 8.8

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 8 pypi packages depend on fsspec (8 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.9.0.

Technical POC Analysis

Server-side template injection (CWE-94, and CWE-1336 as a second class per the advisory) in fsspec/implementations/reference.py.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

fsspec's ReferenceFileSystem library - used across data engineering, analytics, and scientific computing pipelines, often indirectly through tools such as xarray - can execute attacker-supplied Python code when a user or downstream process opens a malicious Kerchunk reference document, affecting any team that ingests data files from external or untrusted sources. The flaw requires no authentication and no special configuration; only that a victim opens the crafted document, which may be delivered inline or fetched from an attacker-controlled URL. Because successful exploitation yields full code execution with high confidentiality and integrity impact on the host running the data workload, this should be treated as a priority remediation for affected environments.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
High
fsspec is a widely deployed core dependency across the Python data/ML ecosystem
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy