Skip to main content

NLTK Weka classifier EUVDEUVD-2026-130489

| CVE-2026-129221 MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-11-19 GitHub_M GHSA-9ffx-rrgx-mhgx
5.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Contribute crafted class label to training data
  2. Exploit
    NLTK ARFF_Formatter writes unescaped label into @ATTRIBUTE declaration
  3. Execution
    Injected @ATTRIBUTE/@DATA directives break out of label set
  4. Impact
    Corrupted ARFF schema causes integrity loss or processing failure

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

Exploitation requires that the target application actually uses NLTK's Weka classifier integration (nltk.classify.weka) and calls WekaClassifier.train() or ARFF_Formatter.from_train() on training data whose class labels the attacker can influence or contribute. The concrete prerequisite is attacker control over one or more class-label strings in the training set; no manual file editing and no user interaction (UI:N) are needed because the normal training workflow writes the malformed ARFF automatically. Limiting factors that reduce realistic risk: the attacker must have a channel to submit labels into the training pipeline (PR:L), the affected product version must be <=3.10.3, and the Weka/ARFF code path is an uncommon feature of NLTK deployments, so most NLTK users are not exposed. Impact is limited to integrity loss / processing failure of the ARFF classifier input (C:N, I:L/A:L) - no code execution or data disclosure is described in the sources.

Impact

This is a genuine but moderate-severity integrity issue, not a critical priority. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L = 5.4 Medium) tells the real story: no confidentiality impact (C:N), only limited integrity and availability impact (I:L/A:L), and it requires some level of privilege/access (PR:L) in the sense that the attacker must be able to contribute class labels into training data consumed by NLTK's Weka classifier. There is no CISA KEV listing and no EPSS score in the supplied data, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch-on-normal-cadence item. A full proof-of-concept is published in the GHSA advisory and a Huntr bounty report, so weaponization effort is trivial - but POC availability is a distinct signal from active exploitation and should not be conflated with it. The dominant mitigating factor is reachability: exploitation only matters for applications that call WekaClassifier.train()/ARFF_Formatter.from_train() with attacker-influenced labels, a niche code path. No SSVC decision vector was supplied in the input, so automatable/technical-impact framing cannot be quoted. Net: real and worth patching, but it is a medium-CVSS, low-real-world-urgency issue rather than an emergency.

Exploit ScenarioDerived

An application ingests user-contributed training examples (for example a collaborative or multi-tenant ML pipeline) and feeds their class labels into NLTK's Weka classifier. An attacker submits a training example whose label embeds ARFF metacharacters such as 'safe}\n@ATTRIBUTE injected NUMERIC\n@DATA\n0,owned\n%', which the normal training workflow writes verbatim into the generated ARFF file, breaking out of the label set and injecting attacker-controlled schema/data directives that corrupt the classifier input. A complete, self-contained proof-of-concept (requiring only NLTK, not Weka) is published in the GHSA-9ffx-rrgx-mhgx advisory and the referenced Huntr report.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 19, 2026

ARFF schema injection in NLTK's Weka classifier integration affects NLTK through 3.10.3 and lets an attacker who can contribute class labels insert ARFF directives into generated training files, corrupting the classifier schema or records and causing integrity loss or processing failure. The flaw is medium severity (CVSS 5.4, CWE-74), requires the target application to use nltk.classify.weka with attacker-influenced labels, and is not described as enabling code execution or data disclosure. A public proof-of-concept reference is included in the advisory but is not confirmed as an end-to-end exploit against a deployed classifier, active exploitation is not confirmed in the available intelligence, and the vendor-stated fix is version 3.10.4.

RemediationAI

Vendor-released patch: 3.10.4. Upgrade to NLTK 3.10.4 or later, and verify the installed build contains fix commit 56031eabc1ac6e5a109cb78bb18d10e0b7589594; the advisory is https://github.com/nltk/nltk/security/advisories/GHSA-9ffx-rrgx-mhgx and the fix PR is https://github.com/nltk/nltk/pull/3768. Because the supplied fix-status note says the fix was merged on develop without a release tag containing that commit at that time, confirm package provenance or install from a source that includes the commit rather than relying only on the version string. If upgrading is not immediately possible, remove exposure by not passing attacker-controlled class labels to WekaClassifier.train() or ARFF_Formatter.from_train(), or pre-sanitize labels to alphanumeric characters, underscores, hyphens, spaces, and single quotes while stripping newlines and ARFF metacharacters; this can reject or alter legitimate labels and is less complete than the vendor fix. The sources document no other workaround.

Affected VersionsENISA

nltk < 3.10.4

Affected Packages

pypi nltk fix: 3.10.4

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

ARFF is Weka's text-based attribute-relation file format, and NLTK's nltk.classify.weka.ARFF_Formatter builds an @ATTRIBUTE '-label-' nominal declaration from training labels. Prior to 3.10.4, header_section joins self._labels directly with commas and does not quote or escape them, so a label containing } and newline characters can close the nominal set and inject attacker-controlled @ATTRIBUTE, @DATA, and comment lines; the vulnerability is CWE-74 because special elements are not neutralized before being consumed by the downstream ARFF/Weka parser. The reachable path is WekaClassifier.train() or ARFF_Formatter.from_train() with attacker-influenced training data, matching the assessed vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L, where PR:L reflects the need for a channel to contribute labels; no code execution or confidentiality impact is described. The CPE cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* identifies the NLTK package, and the fix sanitizes labels by replacing control characters, stripping disallowed characters, escaping single quotes, and quoting label tokens in the header.

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 (GitHub_M) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
vuln.today AI 5.4 MEDIUM

Attacker needs a channel to supply training labels (PR:L) but no user interaction; impact is limited integrity/availability corruption of ARFF input with no confidentiality loss (C:N).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Red Hat 5.4 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 19:34 EUVD
CVE Published
Nov 19, 2026 - 17:15 cve.org
MEDIUM 5.4

DescriptionCVE.org

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.4, nltk.classify.weka.ARFF_Formatter writes attacker-controlled class labels into the Weka ARFF @ATTRIBUTE '-label-' declaration without safely formatting the label tokens. Crafted labels can alter the generated ARFF schema or records, corrupting classifier input and causing integrity loss or processing failure. This issue is fixed in version 3.10.4.

Blast Radius

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

Ecosystem-wide dependent count for version 3.10.4.

Threat Intelligence Overview

EPSS Score
0.4%
Top 61% exploitable
Prevalence
High
NLTK is a very widely used Python NLP library; Weka classifier path is niche
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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

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

More in Nltk

View all
CVE-2026-79657 CRITICAL POC
9.3 Aug 25

Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p

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-126297 HIGH POC
8.7 Nov 13

CPU exhaustion in NLTK's ConllCorpusReader.srl_instances() lets an attacker who supplies a crafted CoNLL SRL corpus pin

CVE-2026-126298 HIGH POC
8.7 Nov 13

CPU exhaustion in NLTK's Tree.chomsky_normal_form() right-factor binarization affects NLTK through 3.10.3 and lets remot

CVE-2026-126299 HIGH POC
8.7 Nov 13

Quadratic CPU exhaustion in NLTK's CCG lexicon parser (nltk.ccg.lexicon.fromstring, also re-exported as nltk.ccg.chart.f

CVE-2026-126303 HIGH POC
8.7 Nov 13

Denial of service in NLTK before 3.10.4 allows remote attackers to pin a CPU core and exhaust bounded worker pools by ca

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

Vendor StatusVendor

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