Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessContribute crafted class label to training data
-
ExploitNLTK ARFF_Formatter writes unescaped label into @ATTRIBUTE declaration
-
ExecutionInjected @ATTRIBUTE/@DATA directives break out of label set
-
ImpactCorrupted 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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- 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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p
Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic
Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions through its data dow
StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc
Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to
CPU exhaustion in NLTK's ConllCorpusReader.srl_instances() lets an attacker who supplies a crafted CoNLL SRL corpus pin
CPU exhaustion in NLTK's Tree.chomsky_normal_form() right-factor binarization affects NLTK through 3.10.3 and lets remot
Quadratic CPU exhaustion in NLTK's CCG lexicon parser (nltk.ccg.lexicon.fromstring, also re-exported as nltk.ccg.chart.f
Denial of service in NLTK before 3.10.4 allows remote attackers to pin a CPU core and exhaust bounded worker pools by ca
Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers
Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse
XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s
EUVD-2026-130489
GHSA-9ffx-rrgx-mhgx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB