{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-104851","id":"CVE-2026-104851","title":"fsspec: Server-Side Template Injection in ReferenceFileSystem leads to Remote Code Execution","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.","descriptionLong":"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.","published":"2026-10-02T16:36:48.513Z","updated":"2026-10-28T02:30:31.524422611Z","reserved":"2026-10-02T14:38:43.244Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["fsspec filesystem_spec"],"affectedProducts":[{"vendor":"fsspec","product":"filesystem_spec","defaultStatus":null,"versions":[{"version":">= 0.9.0, < 2026.6.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"fsspec","purl":"pkg:pypi/fsspec","ranges":[">=0.9.0 <2026.6.0"],"fixed":["2026.6.0"],"advisory":"GHSA-27vj-qcqg-25rc"}],"cwes":["CWE-94","CWE-1336"],"aliases":["GHSA-27vj-qcqg-25rc","PYSEC-2026-4217"],"references":[{"url":"https://github.com/fsspec/filesystem_spec/security/advisories/GHSA-27vj-qcqg-25rc","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/fsspec/filesystem_spec/pull/2029","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/fsspec/filesystem_spec/pull/2039","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/fsspec/filesystem_spec/commit/86438783f93b1398ef245b92f0e6063b445b611c","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/fsspec/filesystem_spec/commit/a1c16ab3f07f354aa371c38f7b1b07ea7fd4c5c8","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/fsspec/filesystem_spec/releases/tag/2026.6.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104851.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104851","tags":["advisory"]},{"url":"https://github.com/fsspec/filesystem_spec","tags":["package"]},{"url":"https://pypi.org/project/fsspec","tags":["package"]},{"url":"https://github.com/advisories/GHSA-27vj-qcqg-25rc","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00475,"epssPercentile":0.41954,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-104851","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104851","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-104851","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-27vj-qcqg-25rc","ok":true,"note":"GHSA-27vj-qcqg-25rc"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-104851","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}