CVE-2026-120334 Details
Description
A flaw has been found in deepset-ai farm up to 0.8.0. This impacts the function EmbeddingTokenizer.from_pretrained of the file farm/modeling/tokenization.py of the component Tokenizer Loader. Executing a manipulation of the argument vocab_filename can lead to path traversal. The attack may be performed from remote. The exploit has been published 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.
A path traversal vulnerability has been identified in deepset AI FARM versions through 0.8.0. The issue arises in the Tokenizer Loader component, specifically within the EmbeddingTokenizer.from_pretrained function in the file farm/modeling/tokenization.py. The vulnerability allows for arbitrary file reading by manipulating the vocab_filename argument, which is not properly validated before being used to construct a file path. This flaw can be exploited remotely, particularly by supplying a malicious model package that is loaded by the victim's process.
Users are advised to validate the vocab_filename path before opening it, ensuring it remains within the package directory and rejecting absolute paths. Until a patch is available, only load FARM model packages from trusted sources or pre-validate the vocab_filename in the language_model_config.json before using it.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 2, 2026CISA-ADP
Assessed Nov 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/3em0/cve_repo/blob/main/2026/Path_Traversal_in_FARM_Tokenizer_Load_via_Attacker-Controlled_vocab_filename.md | [email protected] | ExploitTechnical Analysis |
| https://vuldb.com/cve/CVE-2026-120334 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/1016276 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/429659 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/429659/cti | [email protected] | AdvisoryContent Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| deepset-ai FARM | 0.8.1-snapshot (semver) 0.8.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 2, 2026 | CVE Modified | CISA-ADP |
| Nov 2, 2026 | New CVE Received | [email protected] |
Volerion