Skip to main content
EPSS 0.2%top 89%

CVE-2026-12261: CWE-284 Improper Access Control in nltk nltk/nltk

0
Medium
VulnerabilityCVE-2026-12261cvecve-2026-12261cwe-284
Published: 08/07/2026 (08/07/2026, 06:25:10 UTC)
Source: CVE Database V5
Vendor/Project: nltk
Product: nltk/nltk

Description

CVE-2026-12261 is a medium severity vulnerability in the nltk Python library's downloader component (nltk.downloader) affecting versions up to 3.9.4. The flaw allows cross-package resource and model poisoning because the downloader extracts package archives into shared namespaces without proper isolation and only validates package integrity after extraction. This enables one package to overwrite another's trusted resources, which remain active across interpreter restarts and can impact workflows relying on NLTK APIs.

CVSS v3.0

Score 5.3medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

Affected software

nltk

nltk/nltk

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 16:12:29 UTC

Technical Analysis

The vulnerability in nltk.downloader arises from improper access control (CWE-284) where package archives are extracted into shared namespaces such as 'corpora/' and 'taggers/' instead of isolated package-specific directories. Integrity checks occur only after extraction, allowing a malicious package to overwrite resources of other packages within the same namespace. These overwritten resources become immediately active through standard NLTK APIs and persist beyond interpreter restarts, potentially affecting machine learning pipelines and reproducibility-sensitive environments. This issue affects nltk versions up to 3.9.4.

Potential Impact

An attacker can perform cross-package resource and model poisoning by overwriting trusted resources of other packages within shared namespaces. This compromises the integrity of resources used by downstream workflows, including machine learning pipelines, potentially causing incorrect or malicious behavior without direct code execution. The persistence of the poisoned resources across interpreter restarts increases the risk of long-term impact on reproducibility and trustworthiness of NLTK-based environments.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid installing untrusted or unverified packages via nltk.downloader and consider isolating environments to prevent cross-package contamination. Monitor official nltk channels for updates addressing this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
@huntr_ai
Date Reserved
2026-06-15T10:13:29.195Z
Cvss Version
3.0
State
PUBLISHED

Threat ID: 6a757e2dbf8831d539e738e2

Added to database: 08/07/2026, 06:41:49 UTC

Last enriched: 08/14/2026, 16:12:29 UTC

Last updated: 09/21/2026, 22:49:51 UTC

Views: 78

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses