CVE-2026-12261: CWE-284 Improper Access Control in nltk nltk/nltk
CVE-2026-12261 is a medium severity vulnerability in the nltk Python library's downloader component. It allows cross-package resource and model poisoning by extracting package archives into shared namespaces without proper isolation or pre-extraction integrity validation. This flaw enables one package to overwrite another's trusted resources, affecting workflows that rely on NLTK APIs and persisting across interpreter restarts.
AI Analysis
Technical Summary
The vulnerability exists in nltk.downloader in nltk versions up to 3.9.4. The downloader extracts package archives into shared namespaces such as corpora/ and taggers/ instead of isolated package-specific directories. It only validates package integrity 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 across interpreter restarts, potentially impacting downstream workflows including machine learning pipelines and environments sensitive to reproducibility.
Potential Impact
An attacker can poison resources and models of other packages by overwriting them during package installation. This can lead to the use of malicious or tampered data/models in applications relying on NLTK, potentially compromising the integrity of machine learning workflows and reproducibility. There is no direct confidentiality or availability impact reported. The vulnerability requires network access and user interaction to exploit due to the downloader's design.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should exercise caution when downloading and installing NLTK packages from untrusted sources. Avoid running the downloader in untrusted environments or with untrusted package sources to mitigate risk.
CVE-2026-12261: CWE-284 Improper Access Control in nltk nltk/nltk
Description
CVE-2026-12261 is a medium severity vulnerability in the nltk Python library's downloader component. It allows cross-package resource and model poisoning by extracting package archives into shared namespaces without proper isolation or pre-extraction integrity validation. This flaw enables one package to overwrite another's trusted resources, affecting workflows that rely on NLTK APIs and persisting across interpreter restarts.
CVSS v3.0
Score 5.3medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in nltk.downloader in nltk versions up to 3.9.4. The downloader extracts package archives into shared namespaces such as corpora/ and taggers/ instead of isolated package-specific directories. It only validates package integrity 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 across interpreter restarts, potentially impacting downstream workflows including machine learning pipelines and environments sensitive to reproducibility.
Potential Impact
An attacker can poison resources and models of other packages by overwriting them during package installation. This can lead to the use of malicious or tampered data/models in applications relying on NLTK, potentially compromising the integrity of machine learning workflows and reproducibility. There is no direct confidentiality or availability impact reported. The vulnerability requires network access and user interaction to exploit due to the downloader's design.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should exercise caution when downloading and installing NLTK packages from untrusted sources. Avoid running the downloader in untrusted environments or with untrusted package sources to mitigate risk.
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
- Remediation Level
- null
Threat ID: 6a757e2dbf8831d539e738e2
Added to database: 08/07/2026, 06:41:49 UTC
Last enriched: 08/07/2026, 06:56:51 UTC
Last updated: 08/07/2026, 07:38:26 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.