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

Published Jul 4, 2026
·
Updated

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.

Affected Software

2 affected components
nltk/nltk<=3.9.3
nltk nltk<=3.9.3

Event History

Jul 4, 2026
CVE Published
via MITRE·12:58 AM
Data Sourced
via MITRE·12:58 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-12252?

The severity of CVE-2026-12252 is high with a CVSS score of 7.8.

2

How do I fix CVE-2026-12252?

To fix CVE-2026-12252, upgrade to nltk/nltk version 3.9.4 or later.

3

What impact does CVE-2026-12252 have on my system?

CVE-2026-12252 can allow untrusted JAR code execution, potentially compromising system security.

4

Which versions of nltk/nltk are affected by CVE-2026-12252?

CVE-2026-12252 affects nltk/nltk versions 3.9.3 and earlier.

5

What are the vulnerable classes associated with CVE-2026-12252?

The vulnerable classes in CVE-2026-12252 are StanfordPOSTagger, StanfordNERTagger, StanfordParser, StanfordDependencyParser, and StanfordNeuralDependencyParser.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203