Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

NLTK JVM Launcher Bypass (CVE-2026-128138)

CVE-2026-128138 is a critical Java launcher argument validation flaw in NLTK 3.10.3.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-128138
Vendor
NLTK
Affected Product
NLTK Python package
Exploitation
Not confirmed
Published
2026-11-19

The 3.10.3 hardening checks one Java options channel, but a separate caller-controlled command channel can still influence the launcher. NLTK identifies 3.10.4 as the patched version.The researcher demonstrated conditional execution of Java bytecode through two public NLTK paths. This requires an embedding application to expose influence over a Java command argument and a readable local JAR or argument file. Importing NLTK alone does not meet those conditions.

What it allows

How Does CVE-2026-128138 Bypass the JVM Guard?

NLTK 3.10.3 validates dedicated Java options before constructing the child command. It then appends a separate command sequence without ensuring that its leading item is an ordinary Java main class. The Java launcher can interpret that item as a control argument instead of application input.

The researcher reports two demonstrated paths: direct use of the public Java helper and the StanfordSegmenter wrapper. In both cases, the reported tests executed a researcher-controlled JAR despite the default unsafe-JAR protections. These are controlled demonstrations, not evidence of attacks against deployed applications.

The practical boundary is the application that calls NLTK. An attacker would need influence over the relevant Java command token and access to a JAR or argument file readable by the NLTK process. If the conditions align, Java bytecode runs with that process’s privileges. This is our defensive reading of the advisory’s preconditions.

Treat the 9.8 base score alongside application reachability when doing vulnerability prioritization. An application that never exposes the Java helper or wrapper inputs does not present the same path described by the researcher. The score alone cannot establish that a remote request reaches these arguments.

Who is affected

Version Check

NLTK
Release LineAffected RangeFixed In
3.10.x3.10.3 to before 3.10.43.10.4
Release ranges source

For distribution packages and custom builds, check the supplier’s advisory.

The advisory specifically identifies 3.10.3 as affected; this range does not classify older releases.

Which NLTK Version Needs the CVE-2026-128138 Fix?

The advisory identifies NLTK 3.10.3 as affected and 3.10.4 as patched. Its confirmed test artifact was the official 3.10.3 Python wheel. The report describes this as an incomplete fix of the earlier Java hardening, rather than a claim about every historical NLTK release.

NLTK’s 3.10.4 release notes explicitly include the change that rejects Java launcher control arguments in the command channel. The advisory’s 28 September note said that the fix was merged but unreleased at that time. The 20 October release supersedes that dated status note.

Inventory deployed Python environments, including packaged application images and pinned dependencies. Verify the NLTK version running in each environment after updating to 3.10.4 or later. Record that confirmation in the patch management process.

While scheduling the update, review where applications pass caller-influenced values to NLTK Java wrappers. Keep those values under trusted application control and limit access to local Java artifacts. These are interim engineering checks, not a substitute for the 3.10.4 fix.

The Vulnerability Intelligence platform can sit alongside the dependency inventory as teams rank this CVE by affected application and exposure. The published advisory does not provide an application-independent detection signature.

Timeline

  1. 2026-08-20

    The NLTK fix for the command argument channel was merged, according to the advisory.

  2. 2026-10-20

    NLTK dated the 3.10.4 release and included the Java launcher argument fix in its release notes.

  3. 2026-11-15

    The NLTK GitHub Security Advisory was published.

  4. 2026-11-19

    NVD published the CVE-2026-128138 record.

What to do

  1. Find NLTK 3.10.3 installations

    Inventory Python environments, dependency locks and packaged images. Confirm which running applications use NLTK 3.10.3 and whether they invoke its Java helper or StanfordSegmenter.

  2. Update to NLTK 3.10.4 or later

    Use the published NLTK 3.10.4 release or a later version that contains the fix. Rebuild and redeploy applications that bundle the vulnerable package.

  3. Verify the running dependency

    Check the NLTK version inside each deployed runtime after the update. Confirm the application starts and its legitimate Java-backed features still function.

  4. Review application-controlled arguments

    Identify code paths where untrusted data could influence the first Java command token or StanfordSegmenter configuration. Restrict that influence while the update is being deployed.

  5. Check local activity if exposure exists

    Where the preconditions existed, review application and Java child-process records for unexpected launches. This is a local investigation suggestion, not a published NLTK detection signature.

What Brandefense can do

Frequently Asked Questions

Is importing NLTK enough to exploit CVE-2026-128138?

No. The advisory says practical exploitation requires an application to expose influence over the relevant Java argument path and a readable local JAR or argument file.

Which NLTK version fixes CVE-2026-128138?

NLTK identifies 3.10.4 as patched. Its release notes include the Java launcher argument change, and administrators should verify that deployed runtimes use that version or later.

Does the critical score mean every application is remotely exploitable?

No. The 9.8 CVSS 3.1 score describes base severity. Actual exposure depends on whether an application lets untrusted input reach the Java command argument path.

What can successful exploitation run?

The researcher demonstrated execution of Java bytecode from an external JAR. The child JVM uses the privileges of the process running NLTK.

Sources

  1. NLTK JVM Launcher Bypass AdvisoryNLTK GitHub Security Advisory
  2. NLTK v3.10.4 Release NotesNLTK
  3. CVE-2026-128138 RecordNIST NVD
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →