CVE-2026-12252 json
Untrusted JAR Code Execution in Multiple Stanford Interface Classes in nltk/nltk
published 2026-07-04 4 mo ago modified 2026-10-25 14 d ago also GHSA-9r6g-266r-89x4 , PYSEC-2026-2085 , EUVD-2026-41656
- cvss
- 7.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 9%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi nltk 3.9.4
- nltk Debian 14 3.10.3-1
debian advisories DEBIAN-CVE-2026-12252
- python-nltk openSUSE Tumbleweed 3.10.3-1.1
opensuse advisories openSUSE-SU-2026:11587-1
- github.com/nltk/nltk@006f4b8 commit
- github.com/nltk/nltk@24777f0 commit
- github.com/nltk/nltk#3743 pull request
- github.com/nltk/nltk/releases/tag/v3.10.3 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-12252 updated cvss 7.8
nltk: nltk: Arbitrary Code Execution via Untrusted JAR File Loading
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9affected: workaround, no fix available
-
Red Hat Exploit Intelligence exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 Red Hat Lightspeed Core lightspeed-core/lightspeed-stack-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-ocp-rag-rhel9, openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-25/lightspeed-chatbot-rhel8 Red Hat OpenShift AI (RHOAI) rhoai/odh-ta-lmes-job-rhel9, rhoai/odh-llama-stack-core-rhel9, rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9, rhoai/odh-trustyai-nemo-guardrails-server-rhel9, rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9, rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 4 mo ago
Exploit prediction
0.19% chance of exploitation in the next 30 days, higher than 9% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | nltk | <3.9.4 |
3.9.4 |
Affected products
- nltk nltk/nltk
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/nltk/nltk/pull/3743
web
-
github.com
/nltk/nltk/commit/006f4b83d430147b067b81e2cddd226d6fa405c8
web
-
github.com
/nltk/nltk/commit/24777f0cb8c33ed2839d16e0f8169a3c312a6806
web
-
huntr.com
/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb
exploit, web, third-party-advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2026-12252
advisory
-
github.com
/nltk/nltk
package
-
github.com
/nltk/nltk/releases/tag/v3.10.3
web
-
github.com
/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-2085.yaml
web
-
github.com
/advisories/GHSA-9r6g-266r-89x4
advisory
Sources
- CVE List CVE-2026-12252
- GitHub Advisory GHSA-9r6g-266r-89x4
- NVD CVE-2026-12252
- OSV PYSEC-2026-2085
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.