---
id: "CVE-2026-120335"
kind: "vulnerability"
aliases: ["CVE-2026-120335"]
title: "Farm: path traversal in model loader lets local files be read"
severity: "medium"
cvss: 4.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["farm", "nlp", "package", "python"]
not_affected_if: ["hardcoded-model-paths", "loader-unused", "no-untrusted-input"]
published_at: "2026-11-02T03:17:30+00:00"
first_seen_at: "2026-11-02T03:31:23+00:00"
updated_at: "2026-11-02T03:31:55+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120335", "first_seen_at": "2026-11-02T03:31:23+00:00"}]
---

# Farm: path traversal in model loader lets local files be read

The deepset-ai Farm library up to 0.8.0 fails to validate the embeddings_filename argument in WordEmbedding_LM.load, enabling path traversal. A local attacker can point the loader at files outside the intended directory.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed Farm version with `pip show farm-haystack` or `pip show farm` and see whether it is `0.8.0` or earlier
- Search your code for calls to `WordEmbedding_LM.load` that take a user-supplied `embeddings_filename`

## Timeline

- 2026-11-02T03:31:23+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-120335

## From the sources

A vulnerability has been found in deepset-ai farm up to 0.8.0. Affected is the function WordEmbedding_LM.load of the file farm/modeling/language_model.py of the component Model Package Loader. The manipulation of the argument embeddings_filename leads to path traversal. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way. This vulnerability only affects products that are no longer supported by the maintainer.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
