Skip to main content

NLTK EUVDEUVD-2026-65440

| CVE-2026-79657 CRITICAL
Deserialization of Untrusted Data (CWE-502)
2026-08-25 VulnCheck GHSA-vp9c-2pjm-8925 GHSA-x99w-6fgc-pmfw PYSEC-2026-3735
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious pickle artifact with REDUCE gadget
  2. Delivery
    Distribute via model hub or download path
  3. Exploit
    Victim loads artifact with allowlisted loader
  4. Execution
    Invoke in-namespace callable during unpickling
  5. Impact
    Execute arbitrary commands in process 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

Requires the target application to deserialize an attacker-supplied or tampered NLTK pickle artifact (model/tokenizer) using NLTK's allowlisted 'safe' pickle loader on a version before 3.10.3; the payload must invoke an in-namespace callable reachable through an allowlisted module (e.g., ReppTokenizer._execute or numpy.f2py.crackfortran.myeval) via the pickle REDUCE opcode. Limiting factors: exploitation is gated on the victim loading untrusted artifact data - if all loaded models come from trusted, integrity-verified sources the path is not reached - and availability of specific gadgets depends on which modules (e.g., numpy) are importable in the victim environment.

Impact

The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) yields 9.3 (Critical) and reflects full compromise of confidentiality, integrity, and availability once a malicious artifact reaches a vulnerable loader. The practical trigger, however, is deserialization of an attacker-supplied pickle artifact: exploitation depends on an application loading an untrusted or tampered model/tokenizer via NLTK's allowlisted loader, which is a real limiting factor the raw network-vector score understates. There is no CISA KEV listing and no EPSS score was provided, and the advisory does not claim a public PoC, so this is currently a high-severity, high-plausibility issue rather than confirmed active exploitation. The danger is elevated by NLTK's ubiquity in ML/data pipelines and by the false sense of safety the allowlist provides - teams may deliberately load untrusted artifacts because they believe the 'safe' loader protects them. No conflicting signals in the core data; the main gap is the absence of EPSS/KEV to gauge real-world exploitation velocity.

Exploit ScenarioDerived

An attacker publishes a tampered tokenizer or tagger artifact (for example on a model-sharing hub or via a compromised download URL) that embeds a pickle REDUCE payload invoking an allowlisted in-namespace function such as numpy.f2py.crackfortran.myeval. A victim application on NLTK < 3.10.3 loads the artifact with the 'safe' allowlisted loader, and the crafted payload executes arbitrary OS commands in the process context. No public PoC is identified, but the gadget functions are named in the advisory, lowering the bar to weaponization.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 1.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 25, 2026

Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's pickle allowlist and run commands when a crafted model or tokenizer artifact is loaded. The allowlist trusts whole module namespaces rather than specific safe callables, so dangerous in-namespace functions can be invoked via pickle's REDUCE opcode. Reported by VulnCheck; no public exploit identified at time of analysis, though the root cause and gadget functions are documented in the advisory.

RemediationAI

Upgrade to NLTK 3.10.3 or later, which narrows the pickle allowlist to specific safe callables (Vendor-released patch: 3.10.3), per GHSA-x99w-6fgc-pmfw. Until upgrading, do not load NLTK model or tokenizer artifacts from untrusted or unverified sources, and pin/verify artifact integrity (checksums or signatures) for anything fetched from third-party hubs, mirrors, or user uploads; the trade-off is added operational overhead and breakage if pipelines rely on dynamically downloaded models. Where feasible, run artifact-loading code in an isolated, least-privilege sandbox (separate container/user, no outbound network, read-only filesystem) so a successful REDUCE gadget cannot reach production credentials or run commands with broad privileges. Review any application that exposes NLTK model loading to externally influenced paths and restrict it to a vetted, locally-controlled artifact directory. Advisory URLs: https://github.com/nltk/nltk/security/advisories/GHSA-x99w-6fgc-pmfw and https://www.vulncheck.com/advisories/nltk-before-3.10.3-remote-code-execution-via-unsafe-pickle-deserialization.

Affected VersionsENISA

nltk 0 <3.10.3

Affected Packages

pypi nltk fix: 3.10.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

NLTK is one of the most widely used Python libraries for natural language processing, distributing and loading serialized model/tokenizer artifacts (taggers, tokenizers, etc.) that are stored as Python pickles. To mitigate the well-known danger of unpickling untrusted data (CWE-502, Deserialization of Untrusted Data), NLTK introduced 'safe' loaders backed by an allowlist. The flaw is that the allowlist authorizes entire module namespaces instead of an explicit set of safe callables, so any callable reachable in a trusted module - such as nltk's ReppTokenizer._execute or numpy.f2py.crackfortran.myeval - becomes usable as a pickle REDUCE gadget. Because pickle's REDUCE opcode calls an arbitrary callable with attacker-controlled arguments, these in-namespace functions can be chained to execute OS commands during artifact deserialization. Affected component per CPE is cpe:2.3:a:nltk:nltk (all versions prior to 3.10.3).

Know when Nltk 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 (VulnCheck) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Full RCE gives C/I/A High, but exploitation requires the victim to load an attacker-supplied pickle artifact, so UI:R; no attacker-side privileges needed (PR:N).

3.1 AV:N/AC:L/PR:N/UI:R/S:N/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
SUSE CRITICAL
Red Hat 8.8 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

2
Patch available
Aug 25, 2026 - 13:02 EUVD
CVE Published
Aug 25, 2026 - 11:33 cve.org
CRITICAL 9.3

DescriptionCVE.org

NLTK versions before 3.10.3 contain a remote code execution vulnerability in allowlisted pickle loaders that trust entire module namespaces instead of specific safe callables. Attackers can craft malicious pickle payloads invoking dangerous in-namespace functions like ReppTokenizer._execute and numpy.f2py.crackfortran.myeval through pickle REDUCE to execute arbitrary commands during model or tokenizer artifact loading.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 6,216 pypi packages depend on nltk (3,092 direct, 3,205 indirect)

Ecosystem-wide dependent count for version 3.10.3.

Executive ViewAI

Why It Matters

NLTK versions before 3.10.3 enable arbitrary code execution when users load attacker-crafted NLP models or tokenizers, creating critical risk for any organization using this library in production systems. An attacker can achieve complete system compromise by distributing malicious model artifacts, affecting applications that process external NLP data. Immediate identification of affected systems and protective controls are essential.

Business Impact: Severe
Compensating Controls

Restrict NLTK to loading only internal, cryptographically signed models; disable dynamic model loading where feasible; implement strict input validation and process sandboxing for untrusted NLP data; enable detailed logging and alerts on model loading activities; implement network segmentation to contain impact if system compromise occurs; establish an artifact provenance verification process requiring documentation of all model sources.

Threat Intelligence Overview

EPSS Score
1.2%
Top 35% exploitable
Prevalence
High
NLTK is a very widely used Python NLP library across ML and data pipelines
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 1.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

67
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
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.

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

More in Nltk

View all
CVE-2026-78683 CRITICAL POC
9.4 Aug 25

Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic

CVE-2025-14009 HIGH POC
8.8 Feb 18

Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions through its data dow

CVE-2026-63312 HIGH POC
8.7 Aug 22

StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc

CVE-2026-62384 HIGH POC
8.7 Aug 22

Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to

CVE-2026-66393 HIGH POC
8.7 Aug 22

Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers

CVE-2026-62388 HIGH POC
8.7 Aug 22

Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse

CVE-2026-78681 HIGH POC
8.7 Aug 25

XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s

CVE-2026-78682 HIGH POC
8.7 Aug 25

Server-side request forgery in NLTK before 3.10.3 allows unauthenticated remote attackers to reach internal HTTP service

CVE-2026-70626 HIGH POC
8.6 Aug 22

Symlink escape in NLTK's CorpusReader.open() allows local attackers to read arbitrary files outside the designated corpu

CVE-2026-62385 HIGH POC
8.2 Aug 22

Path traversal in NLTK's FramenetCorpusReader and NKJPCorpusReader (all versions before 3.10.0) enables unauthenticated

CVE-2021-43854 HIGH POC
7.5 Dec 23

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research a

CVE-2021-3828 HIGH POC
7.5 Sep 27

nltk is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerability is r

Vendor StatusVendor

SUSE

Severity: Critical

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