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

- Severity: High 7.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-04T00:58:58.930Z
- Modified: 2026-10-25T15:10:00.147Z
- Also known as: GHSA-9r6g-266r-89x4, PYSEC-2026-2085
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

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

## Every score

- @huntr_ai: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb> (exploit, evidence, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12252> (advisory)
- <https://github.com/nltk/nltk/pull/3743> (web)
- <https://github.com/nltk/nltk/commit/006f4b83d430147b067b81e2cddd226d6fa405c8> (web)
- <https://github.com/nltk/nltk/commit/24777f0cb8c33ed2839d16e0f8169a3c312a6806> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/v3.10.3> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-2085.yaml> (web)
- <https://github.com/advisories/GHSA-9r6g-266r-89x4> (advisory)

## Sources

- CVE List: [CVE-2026-12252](https://www.cve.org/CVERecord?id=CVE-2026-12252), CVE Terms of Use, modified 2026-07-06
- GitHub Advisory Database: [GHSA-9r6g-266r-89x4](https://github.com/advisories/GHSA-9r6g-266r-89x4), CC-BY-4.0, modified 2026-10-02
- NVD: [CVE-2026-12252](https://nvd.nist.gov/vuln/detail/CVE-2026-12252), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2085](https://osv.dev/vulnerability/PYSEC-2026-2085), CC-BY-4.0, modified 2026-10-15

---

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