Description
A vulnerability in `nltk.downloader` in nltk/nltk versions <= 3.9.4 allows for cross-package resource and model poisoning. The downloader extracts package archives into shared namespaces such as `corpora/` and `taggers/` instead of package-isolated roots, and validates package integrity only after the archive has been written and extracted. This design flaw enables one package to overwrite another package's trusted resources within the same namespace, making the changes immediately active through ordinary NLTK APIs. This issue persists across fresh interpreter restarts and can affect downstream workflows, including machine learning pipelines and reproducibility-sensitive environments.
Published: 2026-08-07
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in the nltk downloader allows a package to write files into shared namespaces such as corpora/ and taggers/ without isolation, and the integrity check occurs only after extraction. This permits one package to overwrite another package’s trusted resources, injecting malicious or altered data that is immediately usable through normal NLTK APIs. The injected resources can alter text‑processing results, affect downstream machine learning pipelines, and compromise the reproducibility of experiments that rely on stable corpus and tagger contents.

Affected Systems

The vulnerability is present in nltk/nltk up to and including version 3.9.4. Any environment that loads these versions of the library, whether in a local script, a server application, or a data‑science notebook, is potentially impacted. No specific operating system or deployment model is mentioned, so the issue applies broadly wherever the vulnerable library is installed.

Risk and Exploitability

With a CVSS score of 5.3 the risk is moderate; the EPSS score is not listed, and the vulnerability is not in the CISA KEV catalog. The design flaw implies that an attacker who can influence the package download process—for example, by introducing a malicious package to an untrusted or compromised repository—can replace trusted model or corpus files. The changes persist across interpreter restarts, so the impact is durable. The attack vector is inferred to be local or via compromised package source rather than from an external network port.

Generated by OpenCVE AI on August 7, 2026 at 07:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade python-nltk to any release newer than 3.9.4 to remove the flawed downloader implementation
  • Before upgrading, clear or validate the contents of the corpora/ and taggers/ directories to ensure no poisoned files remain
  • Configure your environment to use isolated resource directories or maintain a minimal set of trusted packages, and verify integrity checks before extraction

Generated by OpenCVE AI on August 7, 2026 at 07:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 07 Aug 2026 07:45:00 +0000

Type Values Removed Values Added
First Time appeared Nltk
Nltk nltk/nltk
Vendors & Products Nltk
Nltk nltk/nltk

Fri, 07 Aug 2026 06:45:00 +0000

Type Values Removed Values Added
Description A vulnerability in `nltk.downloader` in nltk/nltk versions <= 3.9.4 allows for cross-package resource and model poisoning. The downloader extracts package archives into shared namespaces such as `corpora/` and `taggers/` instead of package-isolated roots, and validates package integrity only after the archive has been written and extracted. This design flaw enables one package to overwrite another package's trusted resources within the same namespace, making the changes immediately active through ordinary NLTK APIs. This issue persists across fresh interpreter restarts and can affect downstream workflows, including machine learning pipelines and reproducibility-sensitive environments.
Title Improper Access Control in nltk/nltk
Weaknesses CWE-284
References
Metrics cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: @huntr_ai

Published:

Updated: 2026-08-07T06:25:10.976Z

Reserved: 2026-06-15T10:13:29.195Z

Link: CVE-2026-12261

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T07:30:09Z

Weaknesses