# CVE-2026-12261: Improper Access Control in nltk/nltk

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 12% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-07T06:25:10.976Z
- Modified: 2026-10-23T21:10:00.157Z
- Also known as: GHSA-ffj6-66c4-86gw, PYSEC-2026-3954
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- nltk nltk/nltk: from unspecified up to latest
- nltk (PyPI): before 3.10.0
- nltk nltk: up to 3.9.4

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://huntr.com/bounties/8b8c381e-08a8-4e4f-bb46-a320c96a364f> (exploit, permissions-required, report, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12261> (advisory)
- <https://github.com/nltk/nltk/pull/3625> (web)
- <https://github.com/nltk/nltk/commit/7a5740af89feeb739193db766e11e85dfe78339c> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/v3.10.0> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3954.yaml> (web)
- <https://github.com/advisories/GHSA-ffj6-66c4-86gw> (advisory)

## Sources

- CVE List: [CVE-2026-12261](https://www.cve.org/CVERecord?id=CVE-2026-12261), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-ffj6-66c4-86gw](https://github.com/advisories/GHSA-ffj6-66c4-86gw), CC-BY-4.0, modified 2026-10-02
- NVD: [CVE-2026-12261](https://nvd.nist.gov/vuln/detail/CVE-2026-12261), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-3954](https://osv.dev/vulnerability/PYSEC-2026-3954), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-12261 · Whole record: https://cve.day/CVE-2026-12261.json · Rebuilt by cve.day 2026-11-25T22:59:31.832Z
