Read the docs

NLTK incomplete fix allows JVM sandbox bypass via launcher tokens

Priority HIGH 82CWE-77Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 3 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-77.

Summary

NLTK on PyPI from 3.10.3 before 3.10.4 is affected. The JVM hardening added in 3.10.3 validates Java launcher options but appends the caller-supplied command without checking that its first token is a main class, which is an improper neutralization of argument delimiters (CWE-88). An unauthenticated remote attacker who can reach nltk.internals.java can run Java bytecode of their choice without the unsafe-JAR opt-in. The source describes this as an incomplete fix for the earlier hardening.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.3 until 3.10.4, the NLTK 3.10.3 JVM hardening validates Java launcher tokens in the options channel but appends the caller-controlled cmd sequence without requiring its first token to be a main class. Supplying -jar or an @argfile through nltk.internals.java or StanfordSegmenter.java_class can therefore execute attacker-selected Java bytecode without the unsafe-JAR opt-in. This issue is fixed in version 3.10.4.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00726 50th percentileScored 2026-11-30
Fix Partial nltk (nltk): 3.10.4nltk (PyPI): 3.10.4Red Hat: 3 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
nltknltk3.10.3 to before 3.10.43.10.4Patch availableCNA
—nltk (PyPI)3.10.3 to before 3.10.43.10.4Patch availableGHSA-x8q7-6c7m-52gw
  • nltk Vendornltk Affected 3.10.3 to before 3.10.4 Fixed in 3.10.4 Patch available CNA
  • nltk (PyPI) Vendor— Affected 3.10.3 to before 3.10.4 Fixed in 3.10.4 Patch available GHSA-x8q7-6c7m-52gw

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*——nltk
  • cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* Versions — — ·nltk

Remediation

Upgrade the nltk package on PyPI to version 3.10.4. Red Hat rates the flaw Important and lists Lightspeed Core, OpenShift Lightspeed and Red Hat OpenShift AI (RHOAI) as affected with the plan none_available.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA nltk (nltk) Fixed in 3.10.4
  • Fix · GHSA-x8q7-6c7m-52gw nltk (PyPI) Fixed in 3.10.4 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Lightspeed CoreAffectedNo fix yet
OpenShift LightspeedAffectedNo fix yet
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet
Not affected: 4 products
  • Lightspeed Core
  • OpenShift Lightspeed
  • Red Hat Ansible Automation Platform 2
  • Red Hat OpenShift AI (RHOAI)

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-128138
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-20 Alias added: GHSA-x8q7-6c7m-52gw
  4. 2026-11-20 Fix available: PyPI/[email protected] · GHSA-x8q7-6c7m-52gw
  5. 2026-11-20 CVSS score added · GHSA-x8q7-6c7m-52gw
  6. 2026-11-20 Weakness changed · GHSA-x8q7-6c7m-52gw
  7. 2026-11-20 6 new references · GHSA-x8q7-6c7m-52gw
  8. 2026-11-20 Affected versions changed · Red Hat
  9. 2026-11-20 CVSS score added · Red Hat
  10. 2026-11-25 EPSS moved to the below the 50th percentile
  11. 2026-11-26 EPSS moved to the 50th–90th percentile

References

  • TI-2026-00629 Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading CVSS 3.0CRITICAL 10.0
  • TI-2025-12800 Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution CVSS 3.0CRITICAL 10.0
  • TI-2026-55173 NLTK before 3.10.3 JVM Argument Injection via Per-Call Options CVSS 4.0CRITICAL 9.3
  • TI-2026-55155 NLTK before 3.10.3 Remote Code Execution via Unsafe Pickle Deserialization CVSS 4.0CRITICAL 9.3
  • TI-2026-91242 Symlink escape in NLTK YCOECorpusReader lets attackers read files CVSS 4.0HIGH 8.7
  • TI-2026-91241 Uncontrolled resource consumption in NLTK parser enables denial of service CVSS 4.0HIGH 8.7
See all 77 →

Sources