Skip to main content

gensim EUVDEUVD-2026-83795

| CVE-2026-94091 LOW
Deserialization of Untrusted Data (CWE-502)
2026-09-20 VulDB GHSA-9h85-xr59-9fh8
2.0
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious pickled gensim model
  2. Delivery
    Distribute via model hub or shared file
  3. Exploit
    Victim calls SaveLoad.load on file
  4. Execution
    pickle.load executes embedded payload
  5. Impact
    Arbitrary code execution in victim context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
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

Exploitation requires the victim to load an attacker-controlled serialized model file through gensim's SaveLoad.load / Load API (gensim/utils.py), which internally calls Python's unsafe pickle.load. The concrete precondition is untrusted-input trust: an application or user must load a model/vector file whose origin is not controlled (e.g., downloaded from a model hub, received as an attachment, or supplied by an external user). There is no remote server-side auto-trigger - the code executes only at deserialization time when load() is invoked on the malicious file (UI:P/UI:R). No authentication or special privileges are needed to craft or supply the file. Limiting factor: deployments that only load their own locally-generated models are not exposed; there is no vendor patch (maintainer closed the report unfixed), so the only mitigation is avoiding load() on untrusted files or wrapping it with a restricted unpickler.

Impact

This is a classic unsafe-pickle deserialization flaw (CWE-502) in gensim's SaveLoad.load (gensim/utils.py), reachable via the public Load API. The vendor CVSS 4.0 score of 5.1 substantially understates technical impact: pickle.load on attacker-controlled data yields arbitrary code execution, not the VC:L/VI:L/VA:L 'low' impacts VulDB assigned. However, the real-world priority is moderated by two facts. First, exploitation requires a victim to load an attacker-supplied model file (UI:P per vendor / UI:R in my mapping) - there is no server-side auto-trigger, so this behaves like the widely-documented 'do not unpickle untrusted data' anti-pattern rather than a remotely-triggerable server bug. Second, and importantly, the maintainer closed report #3663 the same day with no fix, PR, or comment, and the repo's last push (2025-11-01) predates the report, so this is effectively a won't-fix / by-design condition with no patch available. SSVC-wise: exploitation is 'PoC' (E:P, public exploit exists) but NOT automatable (requires human interaction to load a file), and technical impact is total (code execution) if the condition is met. There is no CISA KEV listing and no EPSS score in the input, consistent with a low-probability, non-wormable, targeted-only issue. Bottom line: real code-execution potential but gated behind an untrusted-file-load precondition that production deployments rarely satisfy - treat as a hygiene/hardening item, not an emergency. Note the vector conflict to verify: the vendor marks AV:N and PR:L, but exploitation hinges on getting a malicious file loaded and requires no privileges, so AV/PR should be re-examined against your actual deployment.

Exploit ScenarioDerived

An attacker crafts a malicious gensim model file whose pickle stream carries a __reduce__ payload, then distributes it via a model hub, shared dataset, email attachment, or compromised download. When a data scientist or an application calls gensim's load()/SaveLoad.load on that file, the embedded payload executes arbitrary code in the victim's process. A public exploit reference exists (GitHub issue #3663).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 20, 2026

Deserialization of untrusted data in gensim's SaveLoad.load (gensim/utils.py) lets an attacker execute arbitrary code on any host that loads a crafted model file, affecting gensim versions up to and including 4.4.0 as well as the current develop HEAD. The flaw is reachable through the public model-loading API and requires the victim to load an attacker-supplied serialized model or vector file (no authentication is needed to craft or deliver the file; the assessed CVSS:3.1 vector is AV:N/AC:L/PR:N/UI:R with high confidentiality, integrity and availability impact, while the vendor-feed CVSS 4.0 score of 5.1 reflects a lower PR:L/E:P reading of the same issue). Publicly available exploit code exists, and because the maintainer closed issue #3663 without a comment, PR, or fix, no vendor patch is available and defense currently depends entirely on refusing to load untrusted files or wrapping the load path in a restricted unpickler.

RemediationAI

No vendor-released patch identified at time of analysis: issue piskvorky/gensim#3663 was closed by the maintainer without a comment, PR, or fix and the unsafe pickle.load in gensim/utils.py is still unguarded at develop HEAD, so upgrading within gensim does not currently remove the flaw. The primary control is to stop passing untrusted data to the Load API: load only model/vector files that your own pipeline produced or whose SHA-256 you verified against a vendor-published digest, and never call KeyedVectors.load, Word2Vec.load, Doc2Vec.load, FastText.load or LdaModel.load directly on user uploads, email attachments, or artifacts pulled from a public model hub. Where loading third-party models is unavoidable, replace pickle.load in gensim/utils.py with a restricted unpickler (a pickle.Unpickler subclass whose find_class allowlist permits only gensim/numpy/scipy types you actually need); this neutralizes the common __reduce__ payloads but will break loading of any model whose stream references other classes, so validate your model corpus first. Prefer non-pickle formats when the data allows it, such as exporting and reloading embeddings through gensim's word2vec text/binary format loaders or shipping vectors as raw .npy arrays and constructing the model yourself; the trade-off is loss of non-vector model state (vocabulary, training parameters) and larger, slower-to-parse files. Defense in depth for pipelines that must deserialize untrusted files: run deserialization in a disposable sandbox or unprivileged container with no network egress and a read-only filesystem, and apply resource limits so a payload cannot pivot beyond that boundary. Static scanning of uploaded artifacts with a pickle-aware tool (for example fickling or a pickle-opcode linter) can flag suspicious GLOBAL/REDUCE opcodes before load is called, but it is a detection aid, not a fix. Monitor https://github.com/piskvorky/gensim/ for an upstream correction, since no current release version addresses CVE-2026-94091.

Affected VersionsENISA

gensim 4.0
gensim 4.3
gensim 4.4.0
gensim 4.2
gensim 4.1

Affected Packages

euvd gensim no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

CWE-502 (Deserialization of Untrusted Data) in Python. gensim's SaveLoad utility in gensim/utils.py deserializes models with pickle.load (via its unpickle() helper), and models such as Word2Vec, Doc2Vec, FastText, LdaModel and KeyedVectors all route save/load through this code path. Python pickle is not a data format but a bytecode-like object graph format: a malicious payload can place arbitrary callables in the stream via the __reduce__ protocol (for example os.system or subprocess.Popen plus eval), so unpickling attacker-controlled bytes executes code in the loading process with that process's privileges. The CPE cpe:2.3:a:piskvorky:gensim:*:*:*:*:*:*:*:* is version-wildcarded, which over-matches every released gensim version; the CVE description narrows real exposure to 4.4.0 and earlier, and the reporter notes the unsafe pickle.load at develop HEAD remains unguarded because the repo's last push (2025-11-01) predates the report. The attack surface is not a network service by itself: the vulnerability only fires at the moment load() is invoked on a file whose origin the victim does not control, which is why the independent assessment requires UI:R even though the assessed vector is AV:N/PR:N.

Know when Gensim 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 (VulDB) PRIMARY 2.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 8.8 HIGH

Pickle deserialization yields full code execution (C/I/A:H); no privileges to supply a file (PR:N), but a victim must load the malicious file (UI:R), with files commonly distributed over the network (AV:N).

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:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Sep 20, 2026 - 23:22 NVD
MEDIUM LOW
CVSS changed
Sep 20, 2026 - 23:22 NVD
5.1 (MEDIUM) 2.0 (LOW)
CVE Published
Sep 20, 2026 - 22:15 cve.org
MEDIUM 5.1

DescriptionCVE.org

A weakness has been identified in piskvorky gensim up to 4.4.0. The impacted element is the function Load of the file gensim/utils.py of the component Model Loader. This manipulation of the argument fname causes deserialization. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. Maintainer closed #3663 same-day with no comment, PR, or fix; repo's last push (2025-11-01) predates the report, so the unsafe pickle.load in SaveLoad.load remains unguarded at develop HEAD.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
gensim is a very widely used Python NLP/topic-modeling library (word2vec, LDA)
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

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